Public Member Functions | Public Attributes

MediaSilo Interface Reference

Inheritance diagram for MediaSilo:

List of all members.

Public Member Functions

 silo_info ()
 silo_dir ($path)
 silo_get ($path, $qualities=null)
 silo_put ($path, $filedata)
 silo_delete ($path)
 silo_highlights ()
 silo_permissions ($path)

Public Attributes

const PERM_READ = 1
const PERM_WRITE = 2

Detailed Description

MediaSilo interface

Version:
$Id$ 2007

Definition at line 15 of file mediasilo.php.


Member Function Documentation

MediaSilo::silo_delete ( path  ) 

Delete the file at the specified path

Parameters:
string $path The path of the file to retrieve

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_dir ( path  ) 

Return directory contents for the silo path

Parameters:
string $path The path to retrieve the contents of
Returns:
array An array of MediaAssets describing the contents of the directory

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_get ( path,
qualities = null 
)

Get the file from the specified path

Parameters:
string $path The path of the file to retrieve
array $qualities Qualities that specify the version of the file to retrieve.
Returns:
MediaAsset The requested asset

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_highlights (  ) 

Retrieve a set of highlights from this silo This would include things like recently uploaded assets, or top downloads

Returns:
array An array of MediaAssets to highlihgt from this silo

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_info (  ) 

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

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_permissions ( path  ) 

Retrieve the permissions for the current user to access the specified path

Parameters:
string $path The path to retrieve permissions for
Returns:
array An array of permissions constants (MediaSilo::PERM_READ, MediaSilo::PERM_WRITE)

Implemented in FlickrSilo, and HabariSilo.

MediaSilo::silo_put ( path,
filedata 
)

Store the specified media at the specified path

Parameters:
string $path The path of the file to retrieve
MediaAsset $filedata The asset to store

Implemented in FlickrSilo, and HabariSilo.


The documentation for this interface was generated from the following file: