public function __construct(PluginManager $manager, $id) { parent::__construct($manager, $id); /** * Here you should handle subscribing to the events your plugin will handle */ $this->subscribe('beforeLogin'); $this->subscribe('newUserSession'); }
public function __construct(PluginManager $manager, $id) { parent::__construct($manager, $id); /** * Here you should handle subscribing to the events your plugin will handle */ $this->subscribe('beforeLogin'); $this->subscribe('newLoginForm'); $this->subscribe('afterLoginFormSubmit'); $this->subscribe('newUserSession'); $this->subscribe('beforeDeactivate'); // Now register for the core exports $this->subscribe('listExportPlugins'); $this->subscribe('listExportOptions'); $this->subscribe('newExport'); }
public function __construct(PluginManager $manager, $id) { parent::__construct($manager, $id); $this->storage = $this->get('storage_base', null, null, 'DbStorage'); $this->get_saml_instance(); $this->attributes = $this->ssp->getAttributes(); // Here you should handle subscribing to the events your plugin will handle $this->subscribe('newUserSession'); $this->subscribe('newSurveySettings'); $this->subscribe('beforeActivate'); $this->subscribe('beforeLogin'); $this->subscribe('beforeSurveyPage'); $this->subscribe('beforeSurveySettings'); $this->subscribe('afterLogout'); }