Renamed the codebase to RippingCluster
Since the new design is engine agnostic, removed HandBrake from the class names.
This commit is contained in:
27
lib/RippingCluster/Worker/PluginFactory.class.php
Normal file
27
lib/RippingCluster/Worker/PluginFactory.class.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
class RippingCluster_Worker_PluginFactory extends RippingCluster_PluginFactory {
|
||||
|
||||
const PLUGIN_DIR = 'RippingCluster/Worker/Plugin/';
|
||||
const PREFIX = 'RippingCluster_Worker_Plugin_';
|
||||
|
||||
public static function init() {
|
||||
|
||||
}
|
||||
|
||||
public static function scan() {
|
||||
$candidatePlugins = parent::findPlugins(self::PLUGIN_DIR);
|
||||
|
||||
parent::loadPlugins($candidatePlugins, self::PREFIX);
|
||||
}
|
||||
|
||||
public static function getPluginWorkerFunctions($plugin) {
|
||||
if ( ! isset(parent::$validPlugins[$plugin])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return call_user_func(array(parent::$validPlugins[$plugin], 'workerFunctions'));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user