pathPlugin = $pathPlugin; $this->urlPlugin = HelperUC::pathToFullUrl($this->pathPlugin); } /** * constructor */ public function __construct($pathPlugin = null){ $this->initPaths($pathPlugin); $this->objPlugins = new UniteCreatorPlugins(); } /** * validate that the plugin is registered */ protected function validateRegistered(){ if($this->isRegistered == false) UniteFunctionsUC::throwError("The plugin is not registered"); } /** * register the plugin */ protected function register($name, $title, $version, $description, $params){ $this->objPlugins->registerPlugin($name, $title, $version, $description, $params); } /** * add action */ protected function addAction($tag, $function_to_add, $priority = 10, $accepted_args = 1){ UniteProviderFunctionsUC::addAction($tag, array($this,$function_to_add),$priority, $accepted_args); } /** * add filter */ protected function addFilter($tag, $function_to_add, $priority = 10, $accepted_args = 1){ UniteProviderFunctionsUC::addFilter($tag, array($this,$function_to_add), $priority, $accepted_args); } }