3namespace Bitrix\Catalog\Controller;
5use Bitrix\Catalog\Access\ActionDictionary;
6use Bitrix\Catalog\StoreTable;
31 if (!$this->
exists($id)->isSuccess())
38 $storeInfo = $this->
get($id);
59 $error = $exception instanceof \CApplicationException ? $exception->GetString() :
'Unknown error';
73 $existsResult = $this->
exists($id);
74 if (!$existsResult->isSuccess())
76 $this->addErrors($existsResult->getErrors());
94 $error = $exception instanceof \CApplicationException ? $exception->GetString() :
'Unknown error';
108 $existsResult = $this->
exists($id);
109 if (!$existsResult->isSuccess())
111 $this->addErrors($existsResult->getErrors());
123 $result = CCatalogStore::Delete($id);
128 $error = $exception instanceof \CApplicationException ? $exception->GetString() :
'Unknown error';
147 if (!$this->accessController->check(ActionDictionary::ACTION_STORE_MODIFY))
161 $this->accessController->check(ActionDictionary::ACTION_CATALOG_READ)
162 || $this->accessController->check(ActionDictionary::ACTION_STORE_VIEW)
178 $accessFilter = $this->accessController->getEntityFilter(
179 ActionDictionary::ACTION_STORE_VIEW,
189 $innerFilter[] = $accessFilter;
193 $innerFilter[] = [
'=USER_ID' => $this->accessController->getUser()->getUserId()];
215 $this->accessController->checkByValue(ActionDictionary::ACTION_STORE_VIEW, (
string)
$storeId)
217 $this->accessController->check(ActionDictionary::ACTION_STORE_MODIFY)
218 && $creatorId === $this->accessController->getUser()->getUserId()
226 $this->accessController->check(ActionDictionary::ACTION_STORE_MODIFY)
getErrorModifyAccessDenied()
getErrorReadAccessDenied()
addErrorEntityNotExists()
const STORE_ENTITY_NOT_EXISTS
checkModifyPermissionEntity()
checkSpecificStoreReadRight(int $storeId)
checkReadPermissionEntity()
getErrorCodeEntityNotExists()
modifyListActionParameters(array $params)
updateAction(int $id, array $fields)
checkSpecificStoreModifyRights(int $storeId)
static getStoreCreatorId(int $storeId)
</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']