Property | Type | Description | |
---|---|---|---|
$classes | array | Set of allowed classes | |
$lazyLoading | boolean | ||
$pathFormatterClass | null | string | Optional path formatter class | |
$remoteOwner | boolean |
Method | Description | |
---|---|---|
getClasses ( ) : array | ||
getLazyLoading ( ) : boolean | ||
getPathFormatterClass ( ) : null | string | ||
isRemoteOwner ( ) : boolean | ||
load ( $object, array $params = [] ) : null | ||
rewriteIdsService ( mixed $data, array $idMapping ) : array | Rewrites id from source to target, $idMapping contains array( "document" => array( SOURCE_ID => TARGET_ID, SOURCE_ID => TARGET_ID ), "object" => array(. | |
save ( $object, array $params = [] ) | ||
setClasses ( array $classes ) | ||
setLazyLoading ( $lazyLoading ) | ||
setPathFormatterClass ( null | string $pathFormatterClass ) |
Method | Description | |
---|---|---|
allowAssetRelation ( Asset $asset ) : boolean | Checks if an asset is an allowed relation | |
allowDocumentRelation ( Document $document ) : boolean | Checks if an document is an allowed relation | |
allowObjectRelation ( |
Checks if an object is an allowed relation | |
enrichRelation ( $object, $params, &$classId, array &$relation = [] ) | Enrich relation with type-specific data. |
protected allowAssetRelation ( Asset $asset ) : boolean | ||
$asset | Asset | |
return | boolean |
protected allowDocumentRelation ( Document $document ) : boolean | ||
$document | Document | |
return | boolean |
protected allowObjectRelation ( |
||
$object | ||
return | boolean |
protected enrichRelation ( $object, $params, &$classId, array &$relation = [] ) | ||
$object | ||
$params | ||
$classId | ||
$relation | array |
public getPathFormatterClass ( ) : null | string | ||
return | null | string |
public setPathFormatterClass ( null | string $pathFormatterClass ) | ||
$pathFormatterClass | null | string |