Méthode |
Description |
|
__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 ) : Asset |
Helper to quickly create a new asset |
|
delete ( ) |
|
|
getById ( integer $id ) : Asset | Archive | Audio | Document | Folder | Image | Text | Unknown | Video |
Static helper to get an asset by the passed ID |
|
getByPath ( string $path ) : Asset | Archive | Audio | Document | Folder | Image | Text | Unknown | Video |
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 ( ) : Dependency |
|
|
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 ( ) : Asset |
|
|
getParentId ( ) : integer |
|
|
getPath ( ) : string |
|
|
getProperties ( ) : Property[] |
|
|
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 | Version |
|
|
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 ( Asset $parent ) |
|
|
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 ) |
|
|