/** * Called as a plugin is registered to the registry. Subclasses over- * riding this method should call the parent method first. * @param $category String Name of category plugin was registered to * @param $path String The path the plugin was found in * @return boolean True iff plugin initialized successfully; if false, * the plugin will not be registered. */ function register($category, $path) { if (!parent::register($category, $path)) { return false; } HookRegistry::register('Template::Manager::Payment::displayPaymentSettingsForm', array($this, '_smartyDisplayPaymentSettingsForm')); return true; }
/** * Called as a plugin is registered to the registry. Subclasses over- * riding this method should call the parent method first. * @param $category String Name of category plugin was registered to * @param $path String The path the plugin was found in * @return boolean True iff plugin initialized successfully; if false, * the plugin will not be registered. */ function register($category, $path) { $success = parent::register($category, $path); if ($success) { HookRegistry::register('Template::Manager::Payment::displayPaymentSettingsForm', array($this, '_smartyDisplayPaymentSettingsForm')); } return $success; }
/** * Constructor */ function PaymethodPlugin() { parent::PKPPaymethodPlugin(); }
/** * Constructor */ function __construct() { parent::__construct(); }