Пример #1
0
 public function __set($columnName, $value)
 {
     $noLog = $this->getModel()->getNoLogColumns();
     $noLog = array_merge($noLog, array('created', 'logins', 'last_login', 'last_modified', 'password1', 'password2', 'password', 'password_salt'));
     if (!in_array($columnName, $noLog)) {
         if ($value != $this->__get($columnName)) {
             $this->_logChangedUser = true;
         }
     }
     if ($columnName == 'email' && strtolower($value) != strtolower($this->email)) {
         $this->_changedOldMail = $this->email;
     }
     if ($columnName == 'deleted' && $value != $this->deleted && $value) {
         $this->_sendDeletedMail = true;
         $this->_saveDeletedLog = true;
     }
     if ($columnName == 'password') {
         if (!$this->password) {
             $this->_passwordSet = 'activate';
         } else {
             $this->_passwordSet = 'password_set';
         }
     }
     if ($columnName == 'password1' || $columnName == 'password2') {
         $this->_changedPasswordData[$columnName] = $value;
     } else {
         parent::__set($columnName, $value);
     }
 }
Пример #2
0
 public function __set($name, $value)
 {
     if ($name == $this->_getPrimaryKey()) {
         // wenn das implementiert wird vorsicht wegen user-model. bei dem
         // darf der primary key zB wirklich (!) nicht geändert werden
         throw new Kwf_Exception_NotYetImplemented("Primary key may not be changed when using a MirrorCache");
     }
     if (in_array($name, $this->getModel()->getOwnColumns()) && $this->{$name} != $value) {
         $this->_doSyncOnUpdate = true;
     }
     parent::__set($name, $value);
 }
Пример #3
0
 public function __set($name, $value)
 {
     $this->_getRow();
     parent::__set($name, $value);
 }