$resolved_content
$resolved_content :
__construct(string $root,integer $id = null,string $language = null,string $sub_type = 'relation')
Relation constructor.
string | $root | The root folder, cal also be the id |
integer | $id | The relation id or, null for new relations |
string | $language | The local language |
string | $sub_type | A possible sub type |
CopyWithContent(string $target,string $position = null,integer $order = -1): \FAA\Obj\Result
Move to other folder
string | $target | Path to the target folder |
string | $position | The target position |
integer | $order | The new order offset |
A system result object
IsValid(array $filter = array()): boolean
Is valid for filter
Test if a relation is valid for the defined time span, enabled and has a certain content type assigned
array | $filter | A set of filters date_to int A timestamp for date to, when empty use time() date_from int A timestamp for date from, when empty use time() ignore_active bool When true, the is active flag is not checked content_types array List of allowed content types |
ToPlainObject(string $language = null,boolean $resolve = true): Object
Convert to plain data set translate and expose the current data attribute as plain resolved object
string | $language | A system language code or empty for raw setup |
boolean | $resolve | When set to true the sub content will also be resolve, parent attributers are always present |
A simple attribute based php object
RawObject(string $language = null): \FAA\Obj\Generic\BaseContent
Resolve to raw object
Fetches the linked raw object from storage based on the assigned values. This method is cached locally.
string | $language | Language code |
A system base content object
Delete(boolean $skip = false,boolean $full = false): \FAA\Obj\Result
Delete relation
Delete the relation and on demand remove the assigned content
boolean | $skip | Skip hooks on demand |
boolean | $full | When true, the sub content will be deleted |
A system result object
Save(boolean $force_new_id = false): \FAA\Obj\Result
Store relation
Save object entry in file system and git repository store the current payload inside the system storage and commit the changes to the local repository
boolean | $force_new_id | Indicate force new id on demand (local id empty) |
A default system result set