Свойство | Тип | Описание | |
---|---|---|---|
$childs | array | Contains the child elements | |
$creationDate | integer | Timestamp of creation | |
$customSettings | array | .. of the asset, ... | |
$dependencies | Dependencies of this asset | ||
$filename | string | Name of the file | |
$hasChilds | boolean | Indicator if there are childs | |
$hasMetaData | boolean | ||
$hasSiblings | boolean | Indicator if document has siblings or not | |
$id | integer | Unique ID | |
$locked | string | enum('self','propagate') nullable | |
$metadata | array | ||
$mimetype | string | Mime-Type of the file | |
$modificationDate | integer | Timestamp of modification | |
$parent | |||
$parentId | integer | ID of the parent asset | |
$path | string | Path of the file, without the filename, only the full path of the parent asset | |
$properties | array | List of properties | |
$scheduledTasks | array | Contains all scheduled tasks | |
$siblings | array | Contains a list of sibling documents | |
$stream | resource | ||
$type | string | Type | |
$types | array | possible types of an asset | |
$userModification | integer | ID of the user who make the latest changes | |
$userOwner | integer | ID of the owner user | |
$versions | array | List of versions |
Свойство | Тип | Описание | |
---|---|---|---|
$_dataChanged | boolean | Indicator if data has changed |
Метод | Описание | |
---|---|---|
__destruct ( ) | ||
__sleep ( ) | ||
__wakeup ( ) | ||
addMetadata ( string $name, string $type, null $data = null, null $language = null ) | ||
clearDependentCache ( array $additionalTags = [] ) | ||
correctPath ( ) | ||
create ( integer $parentId, array $data = [], $save = true ) : |
Helper to quickly create a new asset | |
delete ( ) | ||
getById ( integer $id ) : |
Static helper to get an asset by the passed ID | |
getByPath ( string $path ) : |
Static helper to get an asset by the passed path | |
getChecksum ( string $type = "md5" ) : null | string | ||
getChildren ( ) : array | ||
getCreationDate ( ) : integer | ||
getCustomSetting ( $key ) : null | ||
getCustomSettings ( ) : array | ||
getData ( ) : mixed | ||
getDataChanged ( ) : boolean | ||
getDependencies ( ) : |
||
getFileSize ( string $format = 'noformatting', $precision = 2 ) : string | Get filesize | |
getFileSystemPath ( ) : string | Get full path to the asset on the filesystem | |
getFilename ( ) : string | ||
getFullPath ( ) : string | Returns the full path of the document including the filename | |
getHasMetaData ( ) : boolean | ||
getId ( ) : integer | ||
getImageThumbnailSavePath ( ) : string | ||
getKey ( ) : string | Alias for getFilename() | |
getList ( array $config = [] ) : mixed | ||
getLocked ( ) : string | Returns true if the element is locked | |
getMetadata ( $name = null, $language = null ) : array | ||
getMimetype ( ) : string | ||
getModificationDate ( ) : integer | ||
getParent ( ) : |
||
getParentId ( ) : integer | ||
getPath ( ) : string | ||
getProperties ( ) : |
||
getRealFullPath ( ) : string | ||
getRealPath ( ) : string | ||
getScheduledTasks ( ) : array | ||
getSiblings ( ) : array | Get a list of the sibling assets | |
getStream ( ) : resource | ||
getTemporaryFile ( ) : string | returns the path to a temp file | |
getTotalCount ( array $config = [] ) : total | ||
getType ( ) : string | ||
getTypeFromMimeMapping ( $mimeType, $filename ) : integer | string | returns the asset type of a filename and mimetype | |
getTypes ( ) : array | ||
getUserModification ( ) : integer | ||
getUserOwner ( ) : integer | ||
getVersions ( ) : array | ||
getVideoThumbnailSavePath ( ) : string | ||
hasChildren ( ) : boolean | ||
hasSiblings ( ) : boolean | Returns true if the asset has at least one sibling | |
removeCustomSetting ( $key ) | ||
removeInheritedProperties ( ) | ||
renewInheritedProperties ( ) | ||
save ( ) | ||
saveScheduledTasks ( ) | ||
saveVersion ( boolean $setModificationDate = true, boolean $callPluginHook = true ) : null | |
||
setCreationDate ( integer $creationDate ) | ||
setCustomSetting ( string $key, mixed $value ) | ||
setCustomSettings ( array $customSettings ) | ||
setData ( mixed $data ) | ||
setDataChanged ( boolean $changed = true ) | ||
setFilename ( string $filename ) | ||
setHasMetaData ( boolean $hasMetaData ) | ||
setId ( integer $id ) | ||
setLocked ( $locked ) | ||
setMetadata ( array $metadata ) | ||
setMimetype ( string $mimetype ) | ||
setModificationDate ( integer $modificationDate ) | ||
setParent ( |
||
setParentId ( integer $parentId ) | ||
setPath ( string $path ) | ||
setProperties ( array $properties ) | ||
setProperty ( $name, $type, $data, boolean $inherited = false, boolean $inheritable = false ) | ||
setScheduledTasks ( $scheduledTasks ) | ||
setStream ( $stream ) | ||
setType ( string $type ) | ||
setUserModification ( integer $userModification ) | ||
setUserOwner ( integer $userOwner ) | ||
setVersions ( array $versions ) |
Метод | Описание | |
---|---|---|
closeStream ( ) | ||
deletePhysicalFile ( ) | Deletes file from filesystem | |
update ( ) |
public clearDependentCache ( array $additionalTags = [] ) | ||
$additionalTags | array |
public getFileSize ( string $format = 'noformatting', $precision = 2 ) : string | ||
$format | string | ('GB','MB','KB','B') |
Результат | string |
public getFileSystemPath ( ) : string | ||
Результат | string |
public getFullPath ( ) : string | ||
Результат | string |
public getImageThumbnailSavePath ( ) : string | ||
Результат | string |
public getMetadata ( $name = null, $language = null ) : array | ||
Результат | array |
public getSiblings ( ) : array | ||
Результат | array |
public getTemporaryFile ( ) : string | ||
Результат | string |
public static getTotalCount ( array $config = [] ) : total | ||
$config | array | |
Результат | total | count |
public static getTypeFromMimeMapping ( $mimeType, $filename ) : integer | string | ||
$mimeType | ||
$filename | ||
Результат | integer | string |
public getVideoThumbnailSavePath ( ) : string | ||
Результат | string |
public hasSiblings ( ) : boolean | ||
Результат | boolean |
public setCreationDate ( integer $creationDate ) | ||
$creationDate | integer |
public setCustomSetting ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
public setCustomSettings ( array $customSettings ) | ||
$customSettings | array |
public setHasMetaData ( boolean $hasMetaData ) | ||
$hasMetaData | boolean |
public setModificationDate ( integer $modificationDate ) | ||
$modificationDate | integer |
public setProperty ( $name, $type, $data, boolean $inherited = false, boolean $inheritable = false ) | ||
$name | ||
$type | ||
$data | ||
$inherited | boolean | |
$inheritable | boolean |
public setUserModification ( integer $userModification ) | ||
$userModification | integer |
protected bool $_dataChanged | ||
Результат | boolean |
public array $customSettings | ||
Результат | array |
public Dependency,Pimcore\Model $dependencies | ||
Результат |
public bool $hasChilds | ||
Результат | boolean |
public bool $hasSiblings | ||
Результат | boolean |
public int $modificationDate | ||
Результат | integer |
public string $path | ||
Результат | string |
public array $scheduledTasks | ||
Результат | array |
public array $siblings | ||
Результат | array |
public static array $types | ||
Результат | array |
public int $userModification | ||
Результат | integer |