예제 #1
0
 public function save()
 {
     parent::save();
     if (!$this->symvar) {
         $this->symvar = self::create_symvar($this->id);
         $this->save();
     }
 }
예제 #2
0
 public function save()
 {
     $is_new = $this->is_new();
     parent::save();
     if ($is_new) {
         $this->send_invites();
     }
     return $this;
 }
예제 #3
0
 public function save()
 {
     parent::save();
     if (!$this->ident) {
         $this->ident = md5($this->id . '-' . time());
         $this->save();
     }
     return $this;
 }
예제 #4
0
 public function save()
 {
     parent::save();
     if (!$this->check) {
         $this->create_check();
     }
     if ($this->solved) {
         $this->mail_reassignment($this->get_reassignment_op());
     }
     return $this;
 }
예제 #5
0
 public function save()
 {
     parent::save();
     $change = empty($this->data_initial['status']) || $this->data_initial['status'] != $this->status;
     if ($change) {
         $this->update_alert();
         if ($this->training && $this->training->lector && $this->training->lector->id != $this->user->id) {
             $this->report_status();
         }
     }
     return $this;
 }