Method |
Description |
|
__construct ( Jarves $jarves, Symfony\Component\DependencyInjection\ContainerInterface $container ) |
|
|
add ( string $objectKey, array $values, mixed $targetPk = null, string $position = 'first', boolean $targetObjectKey = null, array $options = [] ) : mixed |
Adds a item. |
|
checkField ( string $objectKey, string $field ) : boolean |
Checks if a field in a object exists. |
|
cleanup ( ) |
Clears the instances cache. |
|
clear ( string $objectKey ) : boolean |
Removes all items. |
|
get ( string $objectKey, mixed $pk, array $options = [] ) : array | null |
Returns the single row of a object. |
|
getBranch ( $objectKey, mixed $pk = null, array $condition = null, integer $depth = 1, mixed $scope = null, array $options = [] ) : mixed |
|
|
getBranchChildrenCount ( string $objectKey, mixed $pk = null, array $condition = null, mixed $scope = null, array $options = [] ) : array |
Counts the items of $objectKey filtered by $condition |
|
getBundleName ( $objectKey ) : null | string |
Cuts of the object name of the object key. |
|
getCount ( string $objectKey, array $condition = null, array $options = [] ) : array |
Counts the items of $objectKey filtered by $condition |
|
getCountFromUrl ( $internalUrl ) : array |
Counts the items of $internalUrl |
|
getCroppedObjectId ( string $url ) : string |
This just cut off object:/// and returns the primary key part as plain text. |
|
getDefinition ( string $objectKey ) : Object | null |
Get object's definition. |
|
getFromUrl ( $internalUrl ) : array |
Returns the object for the given url. Same arguments as in jarvesObjects::get() but given by a string. |
|
getList ( string $objectKey, array $filter = null, array $options = [] ) : array | boolean |
Returns the list of objects. |
|
getName ( string $objectKey ) : string | null |
Cuts of the namespace/module name of a object key. |
|
getNamespace ( string $objectKey ) : string |
Returns the namespace of the bundle of the object key. |
|
getObjectKey ( string $url ) : string |
Returns the object key (not id) from an object url. |
|
getObjectPk ( string $objectKey, array $item ) : string |
Return only the primary keys of pItem as object. |
|
getObjectUrlId ( string $objectKey, array $pk ) : string |
Returns the id of an object item for the usage in urls (internal url's) - urlencoded. |
|
getParent ( string $objectKey, mixed $pk, array $options = null ) : mixed |
Returns the parent item per url. Only if the object is nested. |
|
getParentFromUrl ( string $objectUrl ) : array |
Returns the parent item. Only if the object is nested. |
|
getParentPk ( string $objectKey, mixed $pk ) : array |
Returns the parent pk. |
|
getParentPkFromUrl ( string $objectUrl ) : array |
Returns the parent pk from a url. |
|
getParents ( string $objectKey, mixed $pk, array $options = null ) : mixed |
Returns all parents, incl. the root object (if root is an object, it returns this object entry as well) |
|
getParentsFromUrl ( string $objectUrl ) : mixed |
Returns all parents per url, incl. the root object (if root is an object, it returns this object entry as well) |
|
getPrimaries ( $objectId ) : array |
Returns a hash of all primary fields. |
|
getPrimaryList ( $objectId ) : array |
Return a list of all primary keys. |
|
getPublicUrl ( string $objectKey, string $pk, array $pluginProperties = null ) : string |
Returns the public URL. |
|
getRepository ( string $objectKey, array $options = null ) : ObjectCrud |
Returns the controller to be used to call each update and query at. This controller handles a bit more than
the pure storageController. For example: ACL, automatic filtering (per language) and event dispatcher. |
|
getRoot ( string $objectKey, mixed $scope, array $options = [] ) : array |
Returns a single root item. Only for nested objects. |
|
getRoots ( string $objectKey, array $condition = null, array $options = [] ) : array |
Returns all roots. Only for nested objects. |
|
getStorageController ( string $objectKey ) : AbstractStorage |
Returns the storage controller, which directly accesses the actual object. |
|
getTable ( string $objectKey ) : string |
Returns the table name behind a object. |
|
getUrl ( string $internalUrl ) : string | boolean |
Translates the internal url to the real path. |
|
isNested ( string $objectKey ) : boolean |
Returns true of the object is nested. |
|
move ( string $objectKey, array $pk, array $targetPk, string $position = 'first', string $targetObjectKey = null, array $options ) : mixed |
Moves a item to a new position. |
|
moveFromUrl ( string $sourceObjectUrl, string $targetObjectUrl, string $position = 'first', array $options = null ) : mixed |
Moves a item around by a url. |
|
normalizeObjectKey ( string $key ) : string |
|
|
normalizePk ( string $objectKey, mixed $pk ) : array |
Returns always a array with primary key and value pairs from a single pk. |
|
normalizePkString ( string $objectKey, string $pkString ) : array | null |
Parses a whole (can be multiple) primary key that is a represented as string and returns the first primary key. |
|
parsePk ( string $objectKey, string $primaryKey ) : array |
Converts the primary key statement of a url to normalized structure. |
|
parseUrl ( string $internalUrl ) : array |
Parse the internal object url scheme and return the information as array. |
|
patch ( string $objectKey, mixed $pk, array $values, array $options = [] ) : boolean |
Patches a object entry. This means, only defined fields will be saved. Fields which are not defined will
not be overwritten. |
|
remove ( string $objectKey, mixed $pk, array $options = [] ) : boolean |
Removes a object item. |
|
removeFromUrl ( string $objectUrl, array $options = [] ) : boolean |
Removes a object item per url. |
|
toUrl ( string $objectKey, mixed $primaryValues ) : string |
Converts given object key and the object item to the internal url. |
|
update ( string $objectKey, mixed $pk, array $values, array $options = [] ) : boolean |
Updates a object entry. This means, all fields which are not defined will be saved as NULL. |
|
updateFromUrl ( string $objectUrl, array $values ) : boolean |
Updates a item per url. |
|