/** * @copydoc PKPImportExportPlugin::smartyPluginUrl */ function smartyPluginUrl($params, $smarty) { $path = null; if (!empty($params['path'])) { $path = $params['path']; } if (!is_array($path)) { $path = array($params['path']); } // Check whether our path points to a management verb. $managementVerbs = array(); foreach ($this->getManagementVerbs() as $managementVerb) { $managementVerbs[] = $managementVerb[0]; } if (count($path) == 1 && in_array($path[0], $managementVerbs)) { // Management verbs will be routed to the plugin's manage method. $params['op'] = 'plugin'; return parent::smartyPluginUrl($params, $smarty); } else { // All other paths will be routed to the plugin's display method. $params['path'] = array_merge(array('plugin', $this->getName()), $path); return $smarty->smartyUrl($params, $smarty); } }
/** * Constructor */ function ImportExportPlugin() { parent::PKPImportExportPlugin(); }