本文整理汇总了PHP中skeeks\cms\shop\Module::t方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::t方法的具体用法?PHP Module::t怎么用?PHP Module::t使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类skeeks\cms\shop\Module
的用法示例。
在下文中一共展示了Module::t方法的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();
}
示例2: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Payment systems');
$this->modelShowAttribute = "name";
$this->modelClassName = ShopPaySystem::className();
parent::init();
}
示例3: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Content settings');
$this->modelShowAttribute = "id";
$this->modelClassName = ShopContent::className();
parent::init();
}
示例4: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Discount goods');
$this->modelShowAttribute = "id";
$this->modelClassName = ShopDiscount::className();
parent::init();
}
示例5: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Order statuses');
$this->modelShowAttribute = "name";
$this->modelClassName = ShopOrderStatus::className();
parent::init();
}
示例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();
}
示例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();
}
示例8: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Pyramid');
$this->modelShowAttribute = "id";
$this->modelClassName = ShopAffiliateTier::className();
parent::init();
}
示例9: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Tax rates');
$this->modelShowAttribute = "id";
$this->modelClassName = ShopTaxRate::className();
parent::init();
}
示例10: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Surcharges');
$this->modelShowAttribute = "name";
$this->modelClassName = ShopExtra::className();
parent::init();
}
示例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']]]);
}
示例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();
}
示例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();
}
示例14: init
public function init()
{
$this->name = \skeeks\cms\shop\Module::t('app', 'Delivery services');
$this->modelShowAttribute = "name";
$this->modelClassName = ShopDelivery::className();
parent::init();
}
示例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]);
}
}