public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Payment systems');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPaySystem::className();
     parent::init();
 }
Exemplo n.º 2
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Payment systems');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPaySystem::className();
     parent::init();
 }
Exemplo n.º 3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPaySystem()
 {
     return $this->hasOne(ShopPaySystem::className(), ['id' => 'pay_system_id']);
 }
Exemplo n.º 4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPaySystems()
 {
     return $this->hasMany(ShopPaySystem::className(), ['id' => 'pay_system_id'])->viaTable('shop_pay_system_person_type', ['person_type_id' => 'id']);
 }
Exemplo n.º 5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopPaySystems()
 {
     return $this->hasMany(ShopPaySystem::className(), ['id' => 'pay_system_id'])->viaTable('shop_delivery2pay_system', ['delivery_id' => 'id']);
 }