Copy the asset using the specified from and to paths
static
boolean
copy
(string $pathfrom, string $pathto)
-
string
$pathfrom: The virtual path source
-
string
$pathto: The virtual path destination
Delete the asset at the specified virtual path
static
boolean
delete
(string $path)
-
string
$path: The virtual path of the asset to delete
Retrieve an array of media assets stored at a virtual path
static
array
dir
([string $path = ''])
-
string
$path: The virtual path of the directory to retrieve
Get the MediaAsset stored at a virtual path
static
MediaAsset
get
(
string $path, [
array $qualities =
null])
-
string
$path: The virtual path of the file to retrieve
-
array
$qualities: Qualities of the image to return (such as 'thumbnail' or 'size')
Return the instance of a silo
static
MediaSilo
get_silo
(
&$silo, [
boolean $parse_path =
false],
mixed $silo)
-
mixed
$silo: A silo instance or the name of a silo
-
boolean
$parse_path: If true, parse the siloname from the path and return the remainder path by reference
-
&$silo
Return an array of highlighted (featured) assets from all silos
static
array
highlights
([mixed $path = null])
-
mixed
$path: The name of a silo or a silo instance. If empty, all silos are returned.
Initialize the internal list of silo instances
static
void
init_silos
()
Move the asset using the specified from and to paths A shortcut for Media::copy() then Media::delete()
static
boolean
move
(string $pathfrom, string $pathto)
-
string
$pathfrom: The virtual path source
-
string
$pathto: The virtual path destination
Return the permissions available to the current user on the specified path
static
array
permissions
(mixed $path)
-
mixed
$path: The name of a silo or a silo instance.
Fetch an empty MediaAsset with the available metadata keys pre-allocated
foreach($asset->get_info() as $key => $value) echo "$key : $value";
-
string
$path: The virtual path at which the asset will be stored
Store the asset at the specified virtual path
static
boolean
put
(
MediaAsset $filedata, [
string $path =
null])
-
MediaAsset
$filedata: The asset to store
-
string
$path: The virtual path where the asset will be stored