메소드 |
설명 |
|
copy ( string $pathfrom, string $pathto ) : boolean |
Copy the asset using the specified from and to paths |
|
delete ( string $path ) : boolean |
Delete the asset at the specified virtual path |
|
dir ( string $path = '' ) : array |
Retrieve an array of media assets stored at a virtual path |
|
get ( string $path, array $qualities = null ) : MediaAsset |
Get the MediaAsset stored at a virtual path |
|
get_silo ( mixed &$silo, boolean $parse_path = false ) : habari\MediaSilo |
Return the instance of a silo |
|
highlights ( mixed $path = null ) : array |
Return an array of highlighted (featured) assets from all silos |
|
init_silos ( ) |
Initialize the internal list of silo instances |
|
move ( string $pathfrom, string $pathto ) : boolean |
Move the asset using the specified from and to paths
A shortcut for Media::copy() then Media::delete() |
|
permissions ( mixed $path ) : array |
Return the permissions available to the current user on the specified path |
|
prepare ( string $path ) : MediaAsset |
Fetch an empty MediaAsset with the available metadata keys pre-allocated
$asset = Media::prepare('silotype/foo/bar');
foreach($asset->get_info() as $key => $value) echo "$key : $value";
|
|
put ( MediaAsset $filedata, string $path = null ) : boolean |
Store the asset at the specified virtual path |
|