Interface MediaSilo

Description

MediaSilo interface

  • version: $Id$
  • copyright: 2007

Located in /system/classes/mediasilo.php (line 10)


	
			
Class Constant Summary
Method Summary
void silo_delete (string $path)
array silo_dir (string $path)
MediaAsset silo_get (string $path, [array $qualities = null])
array silo_highlights ()
void silo_info ()
array silo_permissions (string $path)
void silo_put (string $path, MediaAsset $filedata)
Methods
silo_delete (line 47)

Delete the file at the specified path

  • access: public
void silo_delete (string $path)
  • string $path: The path of the file to retrieve
silo_dir (line 26)

Return directory contents for the silo path

  • return: An array of MediaAssets describing the contents of the directory
  • access: public
array silo_dir (string $path)
  • string $path: The path to retrieve the contents of
silo_get (line 34)

Get the file from the specified path

  • return: The requested asset
  • access: public
MediaAsset silo_get (string $path, [array $qualities = null])
  • string $path: The path of the file to retrieve
  • array $qualities: Qualities that specify the version of the file to retrieve.
silo_highlights (line 54)

Retrieve a set of highlights from this silo

This would include things like recently uploaded assets, or top downloads

  • return: An array of MediaAssets to highlihgt from this silo
  • access: public
array silo_highlights ()
silo_info (line 19)

Return basic information about this silo

name- The name of the silo, used as the root directory for media in this silo

  • access: public
void silo_info ()
silo_permissions (line 61)

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

  • return: An array of permissions constants (MediaSilo::PERM_READ, MediaSilo::PERM_WRITE)
  • access: public
array silo_permissions (string $path)
  • string $path: The path to retrieve permissions for
silo_put (line 41)

Store the specified media at the specified path

  • access: public
void silo_put (string $path, MediaAsset $filedata)
  • string $path: The path of the file to retrieve
  • MediaAsset $filedata: The asset to store
Class Constants
PERM_READ = 1 (line 12)
PERM_WRITE = 2 (line 13)

Documentation generated on Thu, 30 Oct 2008 20:31:21 +0100 by phpDocumentor 1.3.2