application/modules/review/models/Review.php 1 location
|
@@ 112-119 (lines=8) @@
|
| 109 |
|
]; |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
public static function getStatuses() |
| 113 |
|
{ |
| 114 |
|
return [ |
| 115 |
|
self::STATUS_NEW => Yii::t('app', 'New'), |
| 116 |
|
self::STATUS_APPROVED => Yii::t('app', 'Approved'), |
| 117 |
|
self::STATUS_NOT_APPROVED => Yii::t('app', 'Not approved'), |
| 118 |
|
]; |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
/** |
| 122 |
|
* @inheritdoc |
application/modules/shop/models/Category.php 1 location
|
@@ 124-131 (lines=8) @@
|
| 121 |
|
* Return delete modes list |
| 122 |
|
* @return array |
| 123 |
|
*/ |
| 124 |
|
public static function deleteModesList() |
| 125 |
|
{ |
| 126 |
|
return [ |
| 127 |
|
self::DELETE_MODE_SINGLE_CATEGORY => Yii::t('app', 'Delete only that products that exists ONLY in that category'), |
| 128 |
|
self::DELETE_MODE_ALL => Yii::t('app', 'Delete along with it no matter what'), |
| 129 |
|
self::DELETE_MODE_MAIN_CATEGORY => Yii::t('app', 'Delete all products that relate to this category as main'), |
| 130 |
|
]; |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
/** |
| 134 |
|
* @inheritdoc |
application/modules/seo/SeoModule.php 1 location
|
@@ 99-106 (lines=8) @@
|
| 96 |
|
/** |
| 97 |
|
* @return array prepared to dropdown list in configurable |
| 98 |
|
*/ |
| 99 |
|
public static function getRedirectTypes() |
| 100 |
|
{ |
| 101 |
|
return [ |
| 102 |
|
self::NO_REDIRECT => Yii::t('app', 'No redirect'), |
| 103 |
|
self::FROM_WWW => Yii::t('app', 'Redirect from WWW to without WWW'), |
| 104 |
|
self::FROM_WITHOUT_WWW => Yii::t('app', 'Redirect from without WWW to WWW'), |
| 105 |
|
]; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
/** |
| 109 |
|
* If redirectWWW config make 301 redirect to www or not www domain |