public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Types of prices');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopTypePrice::className();
     parent::init();
 }
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Types of prices');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopTypePrice::className();
     parent::init();
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTypePrice()
 {
     return $this->hasOne(ShopTypePrice::className(), ['id' => 'type_price_id']);
 }
示例#4
0
 /**
  * @return $this
  */
 public function getTypePrices()
 {
     return $this->hasMany(ShopTypePrice::className(), ['id' => 'type_price_id'])->viaTable('{{%shop_discount2type_price}}', ['discount_id' => 'id']);
 }