PHP Интерфейс Habari\MediaSilo

Показать файл Открыть проект

Открытые методы

Метод Описание
silo_delete ( string $path ) Delete the file at the specified path
silo_dir ( string $path ) : array Return directory contents for the silo path
silo_get ( string $path, array $qualities = null ) : MediaAsset Get the file from the specified path
silo_highlights ( ) : array Retrieve a set of highlights from this silo This would include things like recently uploaded assets, or top downloads
silo_info ( ) Return basic information about this silo name- The name of the silo, used as the root directory for media in this silo
silo_permissions ( string $path ) : array Retrieve the permissions for the current user to access the specified path
silo_put ( string $path, MediaAsset $filedata ) Store the specified media at the specified path

Описание методов

silo_delete() публичный Метод

Delete the file at the specified path
public silo_delete ( string $path )
$path string The path of the file to retrieve

silo_dir() публичный Метод

Return directory contents for the silo path
public silo_dir ( string $path ) : array
$path string The path to retrieve the contents of
Результат array An array of MediaAssets describing the contents of the directory

silo_get() публичный Метод

Get the file from the specified path
public silo_get ( string $path, array $qualities = null ) : MediaAsset
$path string The path of the file to retrieve
$qualities array Qualities that specify the version of the file to retrieve.
Результат MediaAsset The requested asset

silo_highlights() публичный Метод

Retrieve a set of highlights from this silo This would include things like recently uploaded assets, or top downloads
public silo_highlights ( ) : array
Результат array An array of MediaAssets to highlihgt from this silo

silo_info() публичный Метод

Return basic information about this silo name- The name of the silo, used as the root directory for media in this silo
public silo_info ( )

silo_permissions() публичный Метод

Retrieve the permissions for the current user to access the specified path
public silo_permissions ( string $path ) : array
$path string The path to retrieve permissions for
Результат array An array of permissions constants (MediaSilo::PERM_READ, MediaSilo::PERM_WRITE)

silo_put() публичный Метод

Store the specified media at the specified path
public silo_put ( string $path, MediaAsset $filedata )
$path string The path of the file to retrieve
$filedata MediaAsset The asset to store