Method | Description | |
---|---|---|
addTreeFilterJoins ( $cv, $childsList ) | Changes the query according to the custom view config | |
cleanupBrokenViews ( ) | clean up broken views which were generated by localized fields, . | |
correctPath ( string $path ) : string | ||
createFolderByPath ( $path, array $options = [] ) : |
||
findForbiddenPaths ( string $type, $user ) : array | find all elements which the user may not list and therefore may never be shown to the user | |
fixAllowedTypes ( $data, $type ) | ||
getCustomViewById ( $id ) | ||
getDependedElement ( array $config ) : |
||
getDependencyForFrontend ( |
||
getElementById ( string $type, integer $id ) : Pimcore\Model\Element\ElementInterface | ||
getElementByPath ( string $type, string $path ) : Pimcore\Model\Element\ElementInterface | ||
getElementType ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
getFilename ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
getIdList ( $list, $idGetter = 'getId' ) : array | ||
getIdPath ( $element ) : string | ||
getRequiredByDependenciesForFrontend ( |
||
getRequiresDependenciesForFrontend ( |
||
getSafeVersionInfo ( $versions ) | ||
getSaveCopyName ( string $type, string $sourceKey, Pimcore\Model\Element\ElementInterface $target ) : Pimcore\Model\Element\ElementInterface | string | Returns a uniqe key for the element in the $target-Path (recursive) | |
getType ( Pimcore\Model\Element\ElementInterface $element ) : string | determines the type of an element (object,asset,document) | |
getTypePath ( $element ) : string | ||
getUniqueKey ( $element ) : string | returns a unique key for an element | |
getValidKey ( $key, null $type ) : mixed | string | ||
gridElementData ( Pimcore\Model\Element\ElementInterface $element ) : array | ||
isPublished ( Pimcore\Model\Element\ElementInterface $element = null ) : boolean | determines whether an element is published | |
isValidKey ( $key, $type ) : boolean | ||
loadAllFields ( Pimcore\Model\Element\ElementInterface $element ) : Pimcore\Model\Element\ElementInterface | ||
minimizePropertiesForEditmode ( $props ) : array | ||
pathExists ( $path, $type = null ) : boolean | ||
renewReferences ( |
renews all references, for example after unserializing an ElementInterface | |
runSanityCheck ( ) | ||
scheduleForSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | Schedules element with this id for sanity check to be cleaned of broken relations |
Method | Description | |
---|---|---|
performSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
updateChilds ( Pimcore\Model\Element\ElementInterface $target, Pimcore\Model\Element\ElementInterface $new ) : void |
Method | Description | |
---|---|---|
filterNullValues ( $var ) : boolean | Callback for array_filter function. |
public static addTreeFilterJoins ( $cv, $childsList ) | ||
$cv | array | |
$childsList |
public cleanupBrokenViews ( ) |
public static correctPath ( string $path ) : string | ||
$path | string | |
return | string |
public static createFolderByPath ( $path, array $options = [] ) : |
||
$path | ||
$options | array | |
return |
public static findForbiddenPaths ( string $type, $user ) : array | ||
$type | string | asset|object|document |
return | array |
public static getDependedElement ( array $config ) : |
||
$config | array | |
return |
public static getDependencyForFrontend ( |
||
$element | ||
return | array |
public static getElementById ( string $type, integer $id ) : Pimcore\Model\Element\ElementInterface | ||
$type | string | |
$id | integer | |
return | Pimcore\Model\Element\ElementInterface |
public static getElementByPath ( string $type, string $path ) : Pimcore\Model\Element\ElementInterface | ||
$type | string | |
$path | string | |
return | Pimcore\Model\Element\ElementInterface |
public static getElementType ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
$element | Pimcore\Model\Element\ElementInterface | $element |
return | string |
public static getFilename ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | string |
public static getRequiredByDependenciesForFrontend ( |
||
$d | ||
return | array |
public static getRequiresDependenciesForFrontend ( |
||
$d | ||
return | array |
public static getTypePath ( $element ) : string | ||
$element | ||
return | string |
public static getUniqueKey ( $element ) : string | ||
$element | ||
return | string |
public static gridElementData ( Pimcore\Model\Element\ElementInterface $element ) : array | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | array |
public static isPublished ( Pimcore\Model\Element\ElementInterface $element = null ) : boolean | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | boolean |
public static isValidKey ( $key, $type ) : boolean | ||
$key | ||
$type | ||
return | boolean |
public static loadAllFields ( Pimcore\Model\Element\ElementInterface $element ) : Pimcore\Model\Element\ElementInterface | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | Pimcore\Model\Element\ElementInterface |
public static minimizePropertiesForEditmode ( $props ) : array | ||
$props | ||
return | array |
public static pathExists ( $path, $type = null ) : boolean | ||
$path | ||
$type | ||
return | boolean |
protected static performSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | void |
public static renewReferences ( |
||
$data | ||
return | mixed |
public static scheduleForSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
$element | Pimcore\Model\Element\ElementInterface | |
return | void |
protected updateChilds ( Pimcore\Model\Element\ElementInterface $target, Pimcore\Model\Element\ElementInterface $new ) : void | ||
$target | Pimcore\Model\Element\ElementInterface | the parent element |
$new | Pimcore\Model\Element\ElementInterface | the newly inserted child |
return | void |