當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。