コード例 #1
0
 public function init()
 {
     $this->name = \Yii::t('skeeks/money', "Currency management");
     $this->modelShowAttribute = "code";
     $this->modelClassName = Currency::className();
     parent::init();
 }
コード例 #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBaseRateCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'base_rate_currency_code']);
 }
コード例 #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'currency_code']);
 }
コード例 #4
0
ファイル: ShopProduct.php プロジェクト: skeeks-cms/cms-shop
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getPurchasingCurrency()
 {
     return $this->hasOne(Currency::className(), ['code' => 'purchasing_currency']);
 }