コード例 #1
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Tax rates');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopTaxRate::className();
     parent::init();
 }
コード例 #2
0
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Tax rates');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopTaxRate::className();
     parent::init();
 }
コード例 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopTaxRates()
 {
     return $this->hasMany(ShopTaxRate::className(), ['person_type_id' => 'id']);
 }