void
action_admin_footer
( $theme)
Initialize some internal values when plugin initializes
void
action_init
()
Respond to the user selecting an action on the plugin page
void
action_plugin_ui
(string $plugin_id, string $action)
-
string
$plugin_id: The string id of the acted-upon plugin
-
string
$action: The action string supplied via the filter_plugin_config hook
Add actions to the plugin page for this plugin The authorization should probably be done per-user.
array
filter_plugin_config
(array $actions, string $plugin_id)
-
array
$actions: An array of actions that apply to this plugin
-
string
$plugin_id: The string id of a plugin, generated by the system
Provide plugin info to the system
void
info
()
Redefinition of:
- Plugin::info()
- Returns information about this plugin
Return directory contents for the silo path
array
silo_contents
(string $path)
-
string
$path: The path to retrieve the contents of
Delete the file at the specified path
void
silo_delete
(string $path)
-
string
$path: The path of the file to retrieve
Implementation of:
- MediaSilo::silo_delete()
- Delete the file at the specified path
Return directory contents for the silo path
array
silo_dir
(string $path)
-
string
$path: The path to retrieve the contents of
Implementation of:
- MediaSilo::silo_dir()
- Return directory contents for the silo path
Get the file from the specified path
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.
Implementation of:
- MediaSilo::silo_get()
- Get the file from the specified path
Retrieve a set of highlights from this silo This would include things like recently uploaded assets, or top downloads
array
silo_highlights
()
Implementation of:
- MediaSilo::silo_highlights()
- Retrieve a set of highlights from this silo
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
void
silo_info
()
Implementation of:
- MediaSilo::silo_info()
- Return basic information about this silo
Create a new asset instance for the specified path
-
string
$path: The path of the new file to create
Retrieve the permissions for the current user to access the specified path
array
silo_permissions
(string $path)
-
string
$path: The path to retrieve permissions for
Implementation of:
- MediaSilo::silo_permissions()
- Retrieve the permissions for the current user to access the specified path
Store the specified media at the specified path
void
silo_put
(
string $path,
$filedata,
MediaAsset $)
-
string
$path: The path of the file to retrieve
-
MediaAsset
$: The asset to store
-
$filedata
Implementation of:
- MediaSilo::silo_put()
- Store the specified media at the specified path
Get the direct URL of the file of the specified path
string
silo_url
(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.
Inherited Methods
Inherited From Plugin
Plugin::__construct()
Plugin::add_template()
Plugin::info()
Plugin::_plugin_available_templates()
Plugin::_plugin_include_template_file()
Inherited From Pluggable
Pluggable::__construct()
Pluggable::get_db_schema()
Pluggable::get_file()
Pluggable::get_url()
Pluggable::load()
Pluggable::load_text_domain()
Pluggable::plugin_id()