예제 #1
0
 /**
  * @inheritdoc
  */
 public function getDefaultValues()
 {
     return ['start' => Date::date("m/d/Y"), 'parent:Account::contractor' => Yii::$app->params['primaryAccount']];
 }
예제 #2
0
 /**
  * Set completed status.
  *
  * @param [[@doctodo param_type:value]] $value [[@doctodo param_description:value]]
  */
 public function setCompletedStatus($value)
 {
     if (empty($value)) {
         $this->completed = null;
     } elseif (empty($this->completed)) {
         $this->completed = DateHelper::date($this->dbDateFormat . " " . $this->dbTimeFormat, time());
     }
 }