Public Member Functions | Public Attributes | Static Public Attributes

FlickrSilo Class Reference

Inheritance diagram for FlickrSilo:
Collaboration diagram for FlickrSilo:

List of all members.

Public Member Functions

 action_init ()
 set_user ($user_id)
 silo_info ()
 silo_dir ($path)
 silo_get ($path, $qualities=null)
 silo_url ($path, $qualities=null)
 silo_new ($path)
 silo_put ($path, $filedata)
 silo_delete ($path)
 silo_highlights ()
 silo_permissions ($path)
 silo_contents ()
 filter_plugin_config ($actions, $plugin_id)
 action_plugin_ui_authorize ()
 action_plugin_ui_confirm ()
 action_plugin_ui_deauthorize ()
 action_plugin_ui_configure ()
 action_admin_footer ($theme)
 filter_media_controls ($controls, $silo, $path, $panelname)
 filter_shortcode_flickr ($code_to_replace, $code_name, $attr_array, $code_contents, $post)

Public Attributes

const SILO_NAME = 'Flickr'

Static Public Attributes

static $cache = array()

Detailed Description

Flickr Silo

Definition at line 462 of file flickrsilo.plugin.php.


Member Function Documentation

FlickrSilo::action_init (  ) 

Initialize some internal values when plugin initializes

Definition at line 472 of file flickrsilo.plugin.php.

FlickrSilo::action_plugin_ui_authorize (  ) 

Respond to the user selecting the authorize action on the plugin page

Definition at line 871 of file flickrsilo.plugin.php.

FlickrSilo::action_plugin_ui_configure (  ) 

Respond to the user selecting the configure action

Definition at line 930 of file flickrsilo.plugin.php.

FlickrSilo::action_plugin_ui_confirm (  ) 

Respond to the user selecting the confirm action

Definition at line 892 of file flickrsilo.plugin.php.

FlickrSilo::action_plugin_ui_deauthorize (  ) 

Respond to the user selecting the deauthorize action

Definition at line 918 of file flickrsilo.plugin.php.

FlickrSilo::filter_media_controls ( controls,
silo,
path,
panelname 
)

Provide controls for the media control bar

Parameters:
array $controls Incoming controls from other plugins
MediaSilo $silo An instance of a MediaSilo
string $path The path to get controls for
string $panelname The name of the requested panel, if none then emptystring
Returns:
array The altered $controls array with new (or removed) controls
Todo:
This should really use FormUI, but FormUI needs a way to submit forms via ajax

Definition at line 1049 of file flickrsilo.plugin.php.

FlickrSilo::filter_plugin_config ( actions,
plugin_id 
)

Add actions to the plugin page for this plugin The authorization should probably be done per-user.

Parameters:
array $actions An array of actions that apply to this plugin
string $plugin_id The string id of a plugin, generated by the system
Returns:
array The array of actions to attach to the specified $plugin_id

Definition at line 852 of file flickrsilo.plugin.php.

FlickrSilo::silo_contents (  ) 

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

Definition at line 830 of file flickrsilo.plugin.php.

FlickrSilo::silo_delete ( path  ) 

Delete the file at the specified path

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

Implements MediaSilo.

Definition at line 800 of file flickrsilo.plugin.php.

FlickrSilo::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

Implements MediaSilo.

Definition at line 503 of file flickrsilo.plugin.php.

FlickrSilo::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

Implements MediaSilo.

Definition at line 708 of file flickrsilo.plugin.php.

FlickrSilo::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

Implements MediaSilo.

Definition at line 810 of file flickrsilo.plugin.php.

FlickrSilo::silo_info (  ) 

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

Implements MediaSilo.

Definition at line 487 of file flickrsilo.plugin.php.

FlickrSilo::silo_new ( path  ) 

Create a new asset instance for the specified path

Parameters:
string $path The path of the new file to create
Returns:
MediaAsset The requested asset

Definition at line 779 of file flickrsilo.plugin.php.

FlickrSilo::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)

Implements MediaSilo.

Definition at line 820 of file flickrsilo.plugin.php.

FlickrSilo::silo_put ( path,
filedata 
)

Store the specified media at the specified path

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

Implements MediaSilo.

Definition at line 789 of file flickrsilo.plugin.php.

FlickrSilo::silo_url ( path,
qualities = null 
)

Get the direct URL of the file of 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:
string The requested url

Definition at line 757 of file flickrsilo.plugin.php.


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