Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
performSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
updateChilds ( Pimcore\Model\Element\ElementInterface $target, Pimcore\Model\Element\ElementInterface $new ) : void |
Метод | Описание | |
---|---|---|
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 | |
Результат | string |
public static createFolderByPath ( $path, array $options = [] ) : |
||
$path | ||
$options | array | |
Результат |
public static findForbiddenPaths ( string $type, $user ) : array | ||
$type | string | asset|object|document |
Результат | array |
public static getDependedElement ( array $config ) : |
||
$config | array | |
Результат |
public static getDependencyForFrontend ( |
||
$element | ||
Результат | array |
public static getElementById ( string $type, integer $id ) : Pimcore\Model\Element\ElementInterface | ||
$type | string | |
$id | integer | |
Результат | Pimcore\Model\Element\ElementInterface |
public static getElementByPath ( string $type, string $path ) : Pimcore\Model\Element\ElementInterface | ||
$type | string | |
$path | string | |
Результат | Pimcore\Model\Element\ElementInterface |
public static getElementType ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
$element | Pimcore\Model\Element\ElementInterface | $element |
Результат | string |
public static getFilename ( Pimcore\Model\Element\ElementInterface $element ) : string | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | string |
public static getRequiredByDependenciesForFrontend ( |
||
$d | ||
Результат | array |
public static getRequiresDependenciesForFrontend ( |
||
$d | ||
Результат | array |
public static getTypePath ( $element ) : string | ||
$element | ||
Результат | string |
public static getUniqueKey ( $element ) : string | ||
$element | ||
Результат | string |
public static gridElementData ( Pimcore\Model\Element\ElementInterface $element ) : array | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | array |
public static isPublished ( Pimcore\Model\Element\ElementInterface $element = null ) : boolean | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | boolean |
public static isValidKey ( $key, $type ) : boolean | ||
$key | ||
$type | ||
Результат | boolean |
public static loadAllFields ( Pimcore\Model\Element\ElementInterface $element ) : Pimcore\Model\Element\ElementInterface | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | Pimcore\Model\Element\ElementInterface |
public static minimizePropertiesForEditmode ( $props ) : array | ||
$props | ||
Результат | array |
public static pathExists ( $path, $type = null ) : boolean | ||
$path | ||
$type | ||
Результат | boolean |
protected static performSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | void |
public static renewReferences ( |
||
$data | ||
Результат | mixed |
public static scheduleForSanityCheck ( Pimcore\Model\Element\ElementInterface $element ) : void | ||
$element | Pimcore\Model\Element\ElementInterface | |
Результат | 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 |
Результат | void |