コード例 #1
0
 function setup()
 {
     // Register the interceptor
     $this->registerInterceptor('PasswordResetInterceptor', 'password.reset.login.interceptor', __FILE__);
     // Interceptor has to be added to the DB to be found
     $aOptions = array('sName' => 'Password Reset Interceptor', 'sInterceptorNamespace' => 'password.reset.login.interceptor', 'sConfig' => '');
     KTInterceptorInstance::createFromArray($aOptions);
     // Add templates directory to list
     $dir = dirname(__FILE__);
     $oTemplating =& KTTemplating::getSingleton();
     $oTemplating->addLocation('passwordResetPlugin', $dir . '/templates');
 }
コード例 #2
0
 function _getInterceptorInstances()
 {
     return KTInterceptorInstance::getInterceptorInstances();
 }