Definition at line 12 of file AttributeLoader.php.
 
◆ __construct()
      
        
          | Elgg\AttributeLoader::__construct  | 
          ( | 
            | 
          $class,  | 
        
        
           | 
           | 
            | 
          $required_type,  | 
        
        
           | 
           | 
          array  | 
          $initialized_attrs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | string | $class | class of object being loaded  | 
    | string | $required_type | entity type this is being used to populate  | 
    | array | $initialized_attrs | attributes after initializeAttributes() has been run  | 
  
   
- Exceptions
 - 
  
  
 
Definition at line 114 of file AttributeLoader.php.
 
 
◆ checkType()
  
  
      
        
          | Elgg\AttributeLoader::checkType  | 
          ( | 
            | 
          $row | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Check that the type is correct. 
- Parameters
 - 
  
  
 
- Returns
 - void 
 
- Exceptions
 - 
  
  
 
Definition at line 157 of file AttributeLoader.php.
 
 
◆ filterAddedColumns()
  
  
      
        
          | Elgg\AttributeLoader::filterAddedColumns  | 
          ( | 
            | 
          $row | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Filter non-attribute keys into $this->additional_select_values. 
- Parameters
 - 
  
    | array | $row | All columns from the query  | 
  
   
- Returns
 - array Columns acceptable for the entity's attributes 
 
Definition at line 270 of file AttributeLoader.php.
 
 
◆ getAdditionalSelectValues()
      
        
          | Elgg\AttributeLoader::getAdditionalSelectValues  | 
          ( | 
           | ) | 
           | 
        
      
 
Get values selected from the database that are not attributes. 
- Returns
 - array 
 
Definition at line 169 of file AttributeLoader.php.
 
 
◆ getRequiredAttributes()
      
        
          | Elgg\AttributeLoader::getRequiredAttributes  | 
          ( | 
            | 
          $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).
This function splits loading between "primary" attributes (those in {prefix}entities table) and "secondary" attributes (e.g. those in {prefix}objects_entity), but can load all at once if a combined loader is available.
- Parameters
 - 
  
    | mixed | $row | a row loaded from DB (array or \stdClass) or a GUID  | 
  
   
- Returns
 - array will be empty if failed to load all attributes (access control or entity doesn't exist)
 
- Exceptions
 - 
  
  
 
Definition at line 186 of file AttributeLoader.php.
 
 
◆ isMissingPrimaries()
  
  
      
        
          | Elgg\AttributeLoader::isMissingPrimaries  | 
          ( | 
            | 
          $row | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Get primary attributes missing that are missing. 
- Parameters
 - 
  
  
 
- Returns
 - array 
 
Definition at line 136 of file AttributeLoader.php.
 
 
◆ isMissingSecondaries()
  
  
      
        
          | Elgg\AttributeLoader::isMissingSecondaries  | 
          ( | 
            | 
          $row | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Get secondary attributes that are missing. 
- Parameters
 - 
  
  
 
- Returns
 - array 
 
Definition at line 146 of file AttributeLoader.php.
 
 
◆ $additional_select_values
  
  
      
        
          | Elgg\AttributeLoader::$additional_select_values = array() | 
         
       
   | 
  
protected   | 
  
 
 
◆ $class
  
  
      
        
          | Elgg\AttributeLoader::$class | 
         
       
   | 
  
protected   | 
  
 
 
◆ $full_loader
      
        
          | Elgg\AttributeLoader::$full_loader = '' | 
        
      
 
 
◆ $initialized_attributes
  
  
      
        
          | Elgg\AttributeLoader::$initialized_attributes | 
         
       
   | 
  
protected   | 
  
 
 
◆ $integer_attr_names
  
  
      
        
          | Elgg\AttributeLoader::$integer_attr_names | 
         
       
   | 
  
staticprotected   | 
  
 
Initial value:= array(
        'guid',
        'owner_guid',
        'container_guid',
        'site_guid',
        'access_id',
        'time_created',
        'time_updated',
        'last_action',
        
        'prev_last_action',
        'last_login',
        'prev_last_login'
    )
 
Definition at line 36 of file AttributeLoader.php.
 
 
◆ $null_attr_names
  
  
      
        
          | Elgg\AttributeLoader::$null_attr_names | 
         
       
   | 
  
staticprotected   | 
  
 
Initial value:= array(
        'name',
        'title',
        'description',
        'url',
    )
 
Definition at line 54 of file AttributeLoader.php.
 
 
◆ $primary_attr_names
  
  
      
        
          | Elgg\AttributeLoader::$primary_attr_names | 
         
       
   | 
  
staticprotected   | 
  
 
Initial value:= array(
        'guid',
        'type',
        'subtype',
        'owner_guid',
        'container_guid',
        'site_guid',
        'access_id',
        'time_created',
        'time_updated',
        'last_action',
        'enabled',
    )
 
Definition at line 19 of file AttributeLoader.php.
 
 
◆ $primary_loader
◆ $required_type
  
  
      
        
          | Elgg\AttributeLoader::$required_type | 
         
       
   | 
  
protected   | 
  
 
 
◆ $requires_access_control
      
        
          | Elgg\AttributeLoader::$requires_access_control = true | 
        
      
 
 
◆ $secondary_attr_names
  
  
      
        
          | Elgg\AttributeLoader::$secondary_attr_names = array() | 
         
       
   | 
  
protected   | 
  
 
 
◆ $secondary_loader
      
        
          | Elgg\AttributeLoader::$secondary_loader = '' | 
        
      
 
 
The documentation for this class was generated from the following file: