public function init() { parent::init(); $this->customer_id = Yii::$app->user->id; $this->money = $this->status = $this->integral = $this->reference_no = 0; $this->level = 1; $this->attachEvents(); }
public function init() { $this->type = static::CMS_TYPE; if ($this->isNewRecord) { $this->created_at = $this->updated_at = time(); } else { $this->updated_at = time(); } parent::init(); }
public function init() { parent::init(); $this->attachEvents(); }
public function init() { parent::init(); $this->initModel(); }
/** * @inheritdoc */ public function init() { parent::init(); $this->initConfig(); }
public function init() { parent::init(); $this->key = Yii::$app->security->generateRandomString(); }