Class ElggAttributeLoader
Loads ElggEntity attributes from DB or validates those passed in via constructor
public
|
|
protected
array
|
|
protected
array
|
|
protected
|
|
public
array
|
#
getRequiredAttributes( mixed $row )
Get all required attributes for the entity, validating any that are passed in. Returns empty array if can't be loaded (Check $failure_reason). |
protected
array
|
#
filterAddedColumns( array $row )
Filter out keys returned by the query which should not appear in the entity's attributes |
protected static
array
|
$primary_attr_names | array(
'guid',
'type',
'subtype',
'owner_guid',
'container_guid',
'site_guid',
'access_id',
'time_created',
'time_updated',
'last_action',
'enabled',
) |
#
names of attributes in all entities |
protected
array
|
$secondary_attr_names | array() |
#
names of secondary attributes required for the entity |
protected
string
|
$required_type |
|
#
entity type (not class) required for fetched primaries |
protected
array
|
$initialized_attributes |
|
|
protected
string
|
$class |
|
#
class of object being loaded |
public
boolean
|
$requires_access_control | true |
#
should access control be considered when fetching entity? |
public
callable
|
$primary_loader | 'get_entity_as_row' |
#
function used to load attributes from {prefix}entities table |
public
callable
|
$secondary_loader | '' |
#
function used to load attributes from secondary table |
public
callable
|
$full_loader | '' |
#
function used to load all necessary attributes |