Example #1
0
 function offsetSet($offset, $value)
 {
     Assert::isEmpty($offset, 'that\'s not an associative array! Do not use indexed when setting the value');
     $this->append($value);
 }
Example #2
0
 /**
  * undocumented function
  *
  * @return void
  * @access public
  */
 static function logout()
 {
     Configure::delete('User');
     Assert::isNull(Configure::read('User'));
     $Session = Common::getComponent('Session');
     $Session->del('User');
     $Cookie = Common::getComponent('Cookie');
     $Cookie->del('Auth.key');
     Assert::isEmpty($Cookie->read('Auth.key'));
     $Cookie->del('Auth.name');
     return true;
 }