Example #1
0
 /**
  * Logout the user form the current symfony application and from the
  *  CAS server
  * @param  boolean $onlyLocal   Set it to true, to logout from the application, but stay login in the CAS
  */
 public function logout($url = null, $onlyLocal = false)
 {
     parent::signOut();
     $this->username = null;
     if (!$onlyLocal) {
         sfCAS::initPhpCAS();
         if (!empty($url)) {
             phpCAS::logoutWithUrl($url);
         } else {
             phpCas::logout();
         }
     }
 }
Example #2
0
 public function signOut()
 {
     $this->_isEditMode = null;
     return parent::signOut();
 }
Example #3
0
 public function signOut()
 {
     $this->getAttributeHolder()->removeNamespace('admin_module');
     $this->getAttributeHolder()->removeNamespace('charts');
     parent::signOut();
 }
Example #4
0
 public function signOut()
 {
     $this->getAttributeHolder()->removeNamespace(self::$NS);
     parent::signOut();
 }
Example #5
0
 public function signOut()
 {
     $this->setLoginRole(null);
     parent::signOut();
 }