Свойство | Type | Description | |
---|---|---|---|
$icon |
Свойство | Type | Description | |
---|---|---|---|
$content | |||
$filename | |||
$is_dir | |||
$mode | |||
$path | |||
$props |
Méthode | Description | |
---|---|---|
__construct ( string $path, boolean $is_dir, array $properties = [], $icon = null ) | MediaAsset constructor | |
__get ( string $name ) : mixed | Retrieve attributes about this asset | |
__set ( string $name, mixed $value ) | Set attributes about this asset | |
get_props ( ) | ||
load ( string $file ) | Load the asset data from a file | |
put ( ) : boolean | Shortcut for putting an asset into the correct silo based on its path | |
save ( string $file ) : boolean | Save the asset data to a file | |
upload ( array $files ) | Load the asset data from an upload |
Méthode | Description | |
---|---|---|
_get ( ) : mixed | Return the content of the asset | |
_set ( mixed $content ) | Set the content of this asset |