コード例 #1
0
ファイル: CustomerSeller.php プロジェクト: yinheark/yincart2
 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();
 }
コード例 #2
0
ファイル: Cms.php プロジェクト: yinheark/yincart2
 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();
 }
コード例 #3
0
ファイル: Order.php プロジェクト: yinheark/yincart2
 public function init()
 {
     parent::init();
     $this->attachEvents();
 }
コード例 #4
0
ファイル: AdminModel.php プロジェクト: yinheark/yincart2
 public function init()
 {
     parent::init();
     $this->initModel();
 }
コード例 #5
0
ファイル: SettingKVModel.php プロジェクト: yinheark/yincart2
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->initConfig();
 }
コード例 #6
0
ファイル: CustomerSales.php プロジェクト: yinheark/yincart2
 public function init()
 {
     parent::init();
     $this->key = Yii::$app->security->generateRandomString();
 }