Methods summary
public static
|
#
makeArray( type $meta, type $data )
Turn a StdClass object into an array using an array of meta data objects.
Turn a StdClass object into an array using an array of meta data objects.
Parameters
- $meta
type $meta An array of stdClass objects, each object representing a field's metadata
(_db_fields). You can use Table::getMeta($tableName) to get this.
- $data
type $data An array of stdClass objects, each object a record. (the result of
DB::table('tableName')->get() not ->first() )
|
public static
|
#
makeArrayA( type $metaA, type $data )
Turn a StdClass object into an array using an array of meta data arrays.
Turn a StdClass object into an array using an array of meta data arrays.
Parameters
- $metaA
type $meta An array of arrays, each one representing a field's metadata (_db_fields)
- $data
type $data An array of stdClass objects, each object a record
|
public static
|
#
pick( mixed $result, mixed $fieldName )
check if a StdObj exists as an object and then returns a field from it.
check if a StdObj exists as an object and then returns a field from it.
|