当前位置: 首页>>代码示例>>PHP>>正文


PHP shop\Module类代码示例

本文整理汇总了PHP中skeeks\cms\shop\Module的典型用法代码示例。如果您正苦于以下问题:PHP Module类的具体用法?PHP Module怎么用?PHP Module使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Module类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Account_customer');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopUserAccount::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminUserAccountController.php

示例2: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Payment systems');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPaySystem::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminPaySystemController.php

示例3: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Content settings');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopContent::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminContentController.php

示例4: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Discount goods');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopDiscount::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminDiscountController.php

示例5: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Order statuses');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopOrderStatus::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminOrderStatusController.php

示例6: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'List of taxes');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopTax::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminTaxController.php

示例7: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Control of properties payer');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPersonTypeProperty::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminPersonTypePropertyController.php

示例8: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Pyramid');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopAffiliateTier::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminAffiliateTierController.php

示例9: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Tax rates');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopTaxRate::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminTaxRateController.php

示例10: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Surcharges');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopExtra::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminExtraController.php

示例11: actions

    /**
     * @inheritdoc
     */
    public function actions()
    {
        return ArrayHelper::merge(parent::actions(), ['index' => ["columns" => [['class' => CreatedAtColumn::className()], 'id', ['class' => DataColumn::className(), 'attribute' => 'status_code', 'format' => 'raw', 'filter' => ArrayHelper::map(ShopOrderStatus::find()->all(), 'code', 'name'), 'value' => function (ShopOrder $order) {
            return Html::label($order->status->name, null, ['style' => "background: {$order->status->color}", 'class' => "label"]) . "<br />" . Html::tag("small", \Yii::$app->formatter->asDatetime($order->status_at) . " (" . \Yii::$app->formatter->asRelativeTime($order->status_at) . ")");
        }], ['class' => BooleanColumn::className(), 'attribute' => 'payed', 'format' => 'raw'], ['class' => DataColumn::className(), 'attribute' => "canceled", 'format' => "raw", 'filter' => ['Y' => \Yii::t('app', 'Yes'), 'N' => \Yii::t('app', 'No')], 'value' => function (ShopOrder $shopOrder) {
            return $shopOrder->canceled == "Y" ? \Yii::t('app', 'Yes') : \Yii::t('app', 'No');
        }], ['class' => DataColumn::className(), 'attribute' => "user_id", 'label' => \skeeks\cms\shop\Module::t('app', 'Buyer'), 'format' => "raw", 'value' => function (ShopOrder $shopOrder) {
            return (new \skeeks\cms\shop\widgets\AdminBuyerUserWidget(['user' => $shopOrder->user]))->run();
        }], ['class' => DataColumn::className(), 'filter' => false, 'format' => 'raw', 'label' => \skeeks\cms\shop\Module::t('app', 'Good'), 'value' => function (ShopOrder $model) {
            if ($model->shopBaskets) {
                $result = [];
                foreach ($model->shopBaskets as $shopBasket) {
                    $money = \Yii::$app->money->intlFormatter()->format($shopBasket->money);
                    $result[] = Html::a($shopBasket->name, $shopBasket->product->cmsContentElement->url, ['target' => '_blank']) . <<<HTML
  — {$shopBasket->quantity} {$shopBasket->measure_name}
HTML;
                }
                return implode('<hr style="margin: 0px;"/>', $result);
            }
        }], ['class' => DataColumn::className(), 'format' => 'raw', 'attribute' => 'price', 'label' => \skeeks\cms\shop\Module::t('app', 'Sum'), 'value' => function (ShopOrder $model) {
            return \Yii::$app->money->intlFormatter()->format($model->money);
        }], ['class' => DataColumn::className(), 'filter' => ArrayHelper::map(CmsSite::find()->active()->all(), 'id', 'name'), 'attribute' => 'site_id', 'format' => 'raw', 'visible' => false, 'label' => \skeeks\cms\shop\Module::t('app', 'Site'), 'value' => function (ShopOrder $model) {
            return $model->site->name . " [{$model->site->code}]";
        }]]], "view" => ['class' => AdminOneModelEditAction::className(), "name" => \Yii::t('app', "Информация"), "icon" => "glyphicon glyphicon-eye-open", "priority" => 5, "callback" => [$this, 'view']]]);
    }
开发者ID:3737002,项目名称:cms-shop,代码行数:28,代码来源:AdminOrderController.php

示例12: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Types of payers');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopPersonType::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminPersonTypeController.php

示例13: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Plans affiliate commissions');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopAffiliatePlan::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminAffiliatePlanController.php

示例14: init

 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Delivery services');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopDelivery::className();
     parent::init();
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:7,代码来源:AdminDeliveryController.php

示例15: actionInvoice

 public function actionInvoice()
 {
     $model = new Invoice();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         /** @var \robokassa\Merchant $merchant */
         $merchant = Yii::$app->get('robokassa');
         return $merchant->payment($model->sum, $model->id, \skeeks\cms\shop\Module::t('app', 'Refill'), null, Yii::$app->user->identity->email);
     } else {
         return $this->render('invoice', ['model' => $model]);
     }
 }
开发者ID:BMOTech,项目名称:cms-shop,代码行数:11,代码来源:RobocassaController.php


注:本文中的skeeks\cms\shop\Module类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。