public function MigrateDestinationUserRelationships::fields in Migrate Extras 7.2
Same name and namespace in other branches
- 6.2 user_relationships.inc \MigrateDestinationUserRelationships::fields()
Derived classes must implement fields(), returning a list of available destination fields.
Parameters
Migration $migration: Optionally, the migration containing this destination.
Return value
array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.
Overrides MigrateDestination::fields
File
- ./
user_relationships.inc, line 88 - Import User Relationships.
Class
- MigrateDestinationUserRelationships
- Destination class implementing migration into user_relationships table.
Code
public function fields() {
return array(
'rid' => 'Relationship ID',
'requester_id' => 'User ID of relationship requestor',
'requestee_id' => 'User ID of relationship requestee',
'approved' => 'Whether the requestee approved the relationship',
'created_at' => 'Timestamp when the relationship was created',
'updated_at' => 'Timestamp when the relationship was last updated',
'flags' => 'UR_OK (0) or UR_BANNED (1)',
'op' => 'Default value is \'approve\'. Sent as second param to user_relationships_save_relationship().',
);
}