$id
$id :
FormattedId(string $prefix, string $pad_string = '0', integer $pad_length = 5, integer $pad_type = STR_PAD_LEFT) : string
expose the formatted object id provide an interface to extract the current id with formatting options
string | $prefix | A prefix |
string | $pad_string | The pad character |
integer | $pad_length | The padding length |
integer | $pad_type | The padding type |
The formatted id
GetState() : \FAA\Obj\Result
Expose the state Provide an interface to extract the current status
the object status
GetPlainOriginalAttribute(string $key, string $language = '') : mixed
Get original value get a plain resolved attribute value from the local storage
string | $key | The searched attribute key |
string | $language | The searched language key or false for all |
The found value
Contains(array $filter, string $language = null) : boolean
Check if attribute contains the search string
Matches the filters against the given attribute selected
array | $filter | List of filters with operation, target attribute and value attr string The attribute to check op string The search operator e.g. LIKE value string The search string * matches all |
string | $language | The loader value to get the attributes in |
When matching true
GetPlainOfRevision(string $hash, boolean $tolerate_error = false) : \FAA\Obj\Result
Fetch a certain version of a file based on the given hash
string | $hash | The git revision hash |
boolean | $tolerate_error | Ignore index errors on demand |
A system result object
GetListOfRevisions() : \FAA\Obj\Result
List versions
Load and provide a list of stored revisions for this objects. Will use git to determinate this list.
A system result object
Delete(boolean $skip = false) : \FAA\Obj\Result
Do delete Delete entity from file system and git repository This method can delete this content object from our local storage system
boolean | $skip | Skip hooks on demand |
A default system result set
Convert(string $target) : \FAA\Obj\Result
Convert to other object type
string | $target | The target name |
The conversion result
Copy(mixed $target = null) : \FAA\Obj\Result
clone object entry in file system and git repository store the current payload inside the system storage and commit the changes to the local repository
mixed | $target | For compatibility reasons with several subtypes this argument is required |
A default system result set
Save(boolean $force_new_id = false) : \FAA\Obj\Result
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
ToPlainReducedObject(array $fields, string $language = null) : Object
Convert to reduced plain data set Translate and expose the current data attribute as plain resolved object with filtered attributes
array | $fields | List of attributes to show |
string | $language | A system language code or empty for raw setup |
A simple attribute based php object
ToPlainObject(string $language = null, boolean $with_parent = true) : \stdClass
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 | $with_parent | When set to true the attributes will be resolved witch parent attributes included |
A simple attribute based php object
loadFromSrc()
Load data from source
Fetch the content master file for this entry by given path The data will be stored in the local data property, when the data is encrypted it will be locally decrypted This function has not return value but a side effect on status. It will handle the cases when an entity is encryped in a transparent way
setPlainSubAttribute(array $target, mixed $value, string $path)
set a sub attribute update or add a plain attribute to this object this method will resolve the . separated path until the end of the limb is reached and $this->data was updated
array | $target | A reference tho the this->data branch the update is target of |
mixed | $value | The new value |
string | $path | The remaining path components to target |