3namespace Bitrix\Catalog\Controller;
5use Bitrix\Iblock\SectionPropertyTable;
12 private const BLANK_SECTION = 0;
28 if (!$checkPropertyResult->isSuccess())
30 $this->addErrors($checkPropertyResult->getErrors());
45 if (!$checkPropertyResult->isSuccess())
47 $this->addErrors($checkPropertyResult->getErrors());
59 $fields[
'IBLOCK_ID'] = $property[
'IBLOCK_ID'];
61 \CIBlockSectionPropertyLink::Set(self::BLANK_SECTION, $propertyId,
$fields);
63 $result = $this->
get($propertyId);
66 $this->addError(
new Error(
'Error setting section properties'));
80 return SectionPropertyTable::class;
93 return parent::checkPermissionEntity(
$name);
99 protected function get($id)
101 return SectionPropertyTable::getRow([
102 'filter' => [
'=PROPERTY_ID' => $id],
103 'order' => [
'IBLOCK_ID' =>
'ASC'],
115 $params[
'order'] = empty(
$params[
'order']) ? [
'IBLOCK_ID' =>
'ASC'] :
$params[
'order'];
getErrorEntityNotExists()
checkModifyPermissionEntity()
checkProperty(int $propertyId)
modifyListActionParameters(array $params)
getAction(int $propertyId)
checkPermissionEntity($name, $arguments=[])
setAction(int $propertyId, array $fields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']