コード例 #1
0
ファイル: Meeting.php プロジェクト: youprofit/Zurmo
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         if (array_key_exists('startDateTime', $this->originalAttributeValues) && $this->startDateTime != null) {
             $this->unrestrictedSet('latestDateTime', $this->startDateTime);
         }
         return true;
     } else {
         return false;
     }
 }
コード例 #2
0
ファイル: Task.php プロジェクト: youprofit/Zurmo
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         if (array_key_exists('completed', $this->originalAttributeValues) && $this->completed == true) {
             if ($this->completedDateTime == null) {
                 $this->completedDateTime = DateTimeUtil::convertTimestampToDbFormatDateTime(time());
             }
             $this->unrestrictedSet('latestDateTime', $this->completedDateTime);
         }
         return true;
     } else {
         return false;
     }
 }
コード例 #3
0
ファイル: Task.php プロジェクト: maruthisivaprasad/zurmo
 /**
  * @return bool
  */
 protected function beforeSave()
 {
     if (parent::beforeSave()) {
         $this->resolveAndSetDefaultSubscribers();
         return true;
     } else {
         return false;
     }
 }