application/modules/review/models/Review.php 1 location
|
@@ 113-120 (lines=8) @@
|
| 110 |
|
]; |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
public static function getStatuses() |
| 114 |
|
{ |
| 115 |
|
return [ |
| 116 |
|
self::STATUS_NEW => Yii::t('app', 'New'), |
| 117 |
|
self::STATUS_APPROVED => Yii::t('app', 'Approved'), |
| 118 |
|
self::STATUS_NOT_APPROVED => Yii::t('app', 'Not approved'), |
| 119 |
|
]; |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* @inheritdoc |
application/modules/shop/models/ConfigConfigurationModel.php 1 location
|
@@ 351-358 (lines=8) @@
|
| 348 |
|
* Get dropdown list options for productsFilteringMode |
| 349 |
|
* @return array |
| 350 |
|
*/ |
| 351 |
|
public static function getFilterModes() |
| 352 |
|
{ |
| 353 |
|
return [ |
| 354 |
|
self::FILTER_PARENTS_ONLY => Yii::t('app', 'Parents only'), |
| 355 |
|
self::FILTER_CHILDREN_ONLY => Yii::t('app', 'Children only'), |
| 356 |
|
self::FILTER_ALL => Yii::t('app', 'Parents and children'), |
| 357 |
|
]; |
| 358 |
|
} |
| 359 |
|
} |
| 360 |
|
|
application/modules/seo/models/Counter.php 1 location
|
@@ 99-106 (lines=8) @@
|
| 96 |
|
static::renderCounters($event, static::POSITION_AT_END_OF_BODY); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
public function getPositionVariants() |
| 100 |
|
{ |
| 101 |
|
return [ |
| 102 |
|
self::POSITION_AT_END_OF_BODY => \Yii::t("app", "End of body tag"), |
| 103 |
|
self::POSITION_AT_BEGIN_OF_BODY => \Yii::t("app", "Beginning of body tag"), |
| 104 |
|
self::POSITION_AT_HEAD => \Yii::t("app", "Inside of head tag") |
| 105 |
|
]; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
public static function renderCounters(Event $event, $mode = self::POSITION_AT_END_OF_BODY) |
| 109 |
|
{ |
application/modules/seo/SeoModule.php 1 location
|
@@ 101-108 (lines=8) @@
|
| 98 |
|
/** |
| 99 |
|
* @return array prepared to dropdown list in configurable |
| 100 |
|
*/ |
| 101 |
|
public static function getRedirectTypes() |
| 102 |
|
{ |
| 103 |
|
return [ |
| 104 |
|
self::NO_REDIRECT => Yii::t('app', 'No redirect'), |
| 105 |
|
self::FROM_WWW => Yii::t('app', 'Redirect from WWW to without WWW'), |
| 106 |
|
self::FROM_WITHOUT_WWW => Yii::t('app', 'Redirect from without WWW to WWW'), |
| 107 |
|
]; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
/** |
| 111 |
|
* If redirectWWW config make 301 redirect to www or not www domain |
application/modules/shop/models/Category.php 1 location
|
@@ 126-133 (lines=8) @@
|
| 123 |
|
* Return delete modes list |
| 124 |
|
* @return array |
| 125 |
|
*/ |
| 126 |
|
public static function deleteModesList() |
| 127 |
|
{ |
| 128 |
|
return [ |
| 129 |
|
self::DELETE_MODE_MAIN_CATEGORY => Yii::t('app', 'Delete all products that relate to this category as main'), |
| 130 |
|
self::DELETE_MODE_SINGLE_CATEGORY => Yii::t('app', 'Delete only that products that exists ONLY in that category'), |
| 131 |
|
self::DELETE_MODE_ALL => Yii::t('app', 'Delete along with it no matter what'), |
| 132 |
|
]; |
| 133 |
|
} |
| 134 |
|
|
| 135 |
|
/** |
| 136 |
|
* @inheritdoc |