Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
manager.php
1<?php
3
7
8class Manager extends Base\RestrictionManager
9{
10 protected static $classNames = null;
11
17 public static function getList(array $parameters)
18 {
19 return Internals\CompanyTable::getList($parameters);
20 }
21
25 protected static function getBuildInRestrictions()
26 {
27 return array(
28 '\Bitrix\Sale\Services\Company\Restrictions\Currency' => 'lib/services/company/restrictions/currency.php',
29 '\Bitrix\Sale\Services\Company\Restrictions\Site' => 'lib/services/company/restrictions/site.php',
30 '\Bitrix\Sale\Services\Company\Restrictions\EntityType' => 'lib/services/company/restrictions/entitytype.php',
31 '\Bitrix\Sale\Services\Company\Restrictions\Location' => 'lib/services/company/restrictions/location.php',
32 '\Bitrix\Sale\Services\Company\Restrictions\PaySystem' => 'lib/services/company/restrictions/paysystem.php',
33 '\Bitrix\Sale\Services\Company\Restrictions\Delivery' => 'lib/services/company/restrictions/delivery.php',
34 '\Bitrix\Sale\Services\Company\Restrictions\PersonType' => 'lib/services/company/restrictions/persontype.php',
35 '\Bitrix\Sale\Services\Company\Restrictions\Price' => 'lib/services/company/restrictions/price.php',
36 );
37 }
38
42 public static function getEventName()
43 {
44 return 'onSaleCompanyRulesClassNamesBuildList';
45 }
46
50 protected static function getServiceType()
51 {
52 return self::SERVICE_TYPE_COMPANY;
53 }
54}