Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
editionlimit.php
1
<?
2
namespace
Bitrix\Catalog\Config
;
3
4
use
Bitrix\Catalog
;
5
6
class
EditionLimit
7
{
8
public
static
function
isExceededPriceTypeLimit
()
9
{
10
if
(
Feature::isMultiPriceTypesEnabled
())
11
return
false
;
12
13
//TODO: enable managed cache after blocked old api \CCatalogGroup
14
return
Catalog\GroupTable::getCount([]) > 1;
15
}
16
17
public
static
function
isExceededStoreLimit
()
18
{
19
if
(
Feature::isMultiStoresEnabled
())
20
return
false
;
21
22
//TODO: enable managed cache after blocked old api \CCatalogStore
23
return
Catalog\StoreTable::getCount([]) > 1;
24
}
25
}
Bitrix\Catalog\Config\EditionLimit
Definition
editionlimit.php:7
Bitrix\Catalog\Config\EditionLimit\isExceededStoreLimit
static isExceededStoreLimit()
Definition
editionlimit.php:17
Bitrix\Catalog\Config\EditionLimit\isExceededPriceTypeLimit
static isExceededPriceTypeLimit()
Definition
editionlimit.php:8
Bitrix\Catalog\Config\Feature\isMultiStoresEnabled
static isMultiStoresEnabled()
Definition
feature.php:135
Bitrix\Catalog\Config\Feature\isMultiPriceTypesEnabled
static isMultiPriceTypesEnabled()
Definition
feature.php:115
Bitrix\Catalog\Config
Definition
editionlimit.php:2
Bitrix\Catalog
modules
catalog
lib
config
editionlimit.php
Создано системой
1.10.0