Moved common default init/name methods to a base class, common to all plugin types. Added phpdoc comments to various plugin methods. Updated HandBrake plugins to reflect core changes.
30 lines
528 B
PHP
30 lines
528 B
PHP
<?php
|
|
|
|
/**
|
|
* Base class for all plugins, providing default implementations for
|
|
* standard plugin methods.
|
|
*
|
|
* @class RippingCluster_PluginBase
|
|
*/
|
|
class RippingCluster_PluginBase {
|
|
|
|
/**
|
|
* Provides a basic initialisation function that does nothing.
|
|
*
|
|
*/
|
|
public static function init() {
|
|
// Nothing to do
|
|
}
|
|
|
|
/**
|
|
* Returns the name of this plugin
|
|
*
|
|
* @return string
|
|
*/
|
|
public static function name() {
|
|
return static::PLUGIN_NAME;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|