/** * @inheritdoc */ public function getDefaultValues() { return ['start' => Date::date("m/d/Y"), 'parent:Account::contractor' => Yii::$app->params['primaryAccount']]; }
/** * 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()); } }