/**
  * @inheritdoc
  */
 public function actions()
 {
     return ['remove-all' => ['class' => MultipleDelete::className(), 'modelName' => Currency::className()], 'delete' => ['class' => DeleteOne::className(), 'modelName' => Currency::className()], 'update-editable' => ['class' => UpdateEditable::className(), 'modelName' => Currency::className(), 'allowedAttributes' => ['currency_rate_provider_id' => function (Currency $model, $attribute) {
         if ($model === null || $model->rateProvider === null || $model->currency_rate_provider_id === 0) {
             return null;
         }
         return \yii\helpers\Html::tag('div', $model->rateProvider->name, ['class' => $model->rateProvider->name]);
     }]]];
 }
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['remove-all' => ['class' => MultipleDelete::className(), 'modelName' => DynamicContent::className()], 'delete' => ['class' => DeleteOne::className(), 'modelName' => DynamicContent::className()]];
 }
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['remove-all' => ['class' => MultipleDelete::className(), 'modelName' => CurrencyRateProvider::className()], 'delete' => ['class' => DeleteOne::className(), 'modelName' => CurrencyRateProvider::className()]];
 }
Ejemplo n.º 4
0
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['remove-all-categories' => ['class' => MultipleDelete::className(), 'modelName' => AddonCategory::className()], 'delete-category' => ['class' => DeleteOne::className(), 'modelName' => AddonCategory::className()], 'remove-all-addons' => ['class' => MultipleDelete::className(), 'modelName' => Addon::className()], 'delete-addon' => ['class' => DeleteOne::className(), 'modelName' => Addon::className()]];
 }
 /**
  * @inheritdoc
  */
 public function actions()
 {
     return ['remove-all' => ['class' => MultipleDelete::className(), 'modelName' => Warehouse::className()], 'delete' => ['class' => DeleteOne::className(), 'modelName' => Warehouse::className()], 'update-editable' => ['class' => UpdateEditable::className(), 'modelName' => Warehouse::className(), 'allowedAttributes' => []]];
 }