Exemple #1
0
 /**
     Update - automatically called by RedBean when stored.
 */
 public function update()
 {
     parent::update();
     $test = R::findOne("subscription", "email=? and id<>?", array($this->email, $this->id));
     if ($test) {
         $this->bean->id = $test->id;
     }
 }
Exemple #2
0
 /**
     Update - automatically caled by RedBean when stored.
 */
 public function update()
 {
     if ($this->password != $this->password2) {
         RedView::end('error', 'Password mismatch.');
     }
     parent::update();
     //sha1 pwd
     $this->bean->pwhash = sha1($this->password);
     $this->bean->remove('password');
     $this->bean->remove('password2');
 }
Exemple #3
0
 /**
     Update - automatically called by RedBean when stored.
 */
 public function update()
 {
     parent::update();
 }