/** * Add one or many helpers * * @param string $helper This param can be array of helpers * @return null */ function addPluginHelper($helper) { $args = func_get_args(); if (!is_array($args)) { return false; } // if foreach ($args as $helper) { if (!in_array($helper, $this->helpers)) { if (PluginManager::useHelper($this->plugin_name, $helper)) { $this->helpers[] = $helper; } // if } // if } // foreach return true; }