コード例 #1
0
 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');
 }
コード例 #2
0
ファイル: Authdb.php プロジェクト: rouben/LimeSurvey
 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');
 }
コード例 #3
0
ファイル: AuthSAML.php プロジェクト: hotcyv/limesurvey-saml
    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');
    }