Поддержка серверов

SALE: методы, функции, константы класса Битрикс


Блог разработчика

9 августа 2016 ResizeImageGet и простой водяной знак налету

Сегодня поговорим о том как проще всего воткнуть водяной знак на картинки в Битрикс. Например, на все изображения каталога.

21 июля 2016 Добавление вкладки в CRM коробки Битрикс24

В этом посте я покажу, как легко и просто добавить вкладку в сущность CRM. И не просто добавить, а вывести там свой контент.

21 июля 2016 Как просто обращаться из коробки Битрикс24 на сайт на базе Битрикс

К примеру вам хочется внутренним скриптом дернуть с сайта-магазина информацию, которая там, в свою очередь, закрыта некоторыми правами. Например, админскими. Можно конечно мутить свой REST, или иной формат общения, но проще всего воспользоваться штатным инструментом:

Список функций и методов модуля sale

Метод
Manager::initJs()
Manager::getViewHtml(array $input, $value = null)
Manager::getEditHtml($name, array $input, $value = null)
Manager::getFilterEditHtml($name, array $input, $value = null)
Manager::getError(array $input, $value)
Manager::getRequiredError(array $input, $value)
Manager::getValue(array $input, $value)
Manager::asMultiple(array $input, $value)
Manager::getSettings(array $input, $reload = null)
Manager::getCommonSettings(array $input, $reload = null)
Manager::getTypes()
Manager::register($name, array $type)
Manager::initialize()
Manager::getServiceType()
Manager::getBuildInRestrictions()
Manager::getEventName()
Manager::deleteByDeliveryIdClassName($deliveryId, $className)
Manager::getRestrictedIds(\Bitrix\Sale\Shipment $shipment = null, $restrictionMode)
Manager::isClassSupportGroupFiltering($className)
Manager::isClassValid($className)
Manager::getById($id)
Manager::getRestrictedObjectsList(Shipment $shipment, $restrictionMode = Restrictions\Manager::MODE_CLIENT)
Manager::isServiceExist($deliveryId)
Manager::getActiveList($calculatingOnly = false, $restrictedIds = null)
Manager::getRestrictedList(Shipment $shipment = null, $restrictionMode, array $skipChecks = array())
Manager::createObject(array $srvParams)
Manager::getPooledObject(array $fields)
Manager::getObjectById($id)
Manager::getObjectByCode($serviceCode)
Manager::initHandlers()
Manager::getHandlersClasses()
Manager::getHandlersList()
Manager::calculateDeliveryPrice(Shipment $shipment, $deliveryId = 0, $extraServices = array())
Manager::getGroupId($name)
Manager::getByParentId($parentId)
Manager::getLocationConnectorEntityName()
Manager::add(array $data)
Manager::generateXmlId()
Manager::update($primary, array $data)
Manager::delete($id)
Manager::onGetBusinessValueConsumers()
Manager::onGetBusinessValueGroups()
Manager::setChildrenFieldsValues($id, array $fields)
Manager::getIdByCode($code)
Manager::getCodeById($id)
Manager::getIdCodeCached($value, $type)
Manager::setIdCodeCached($id, $code)
Manager::cleanIdCodeCached($id)
Manager::isDeliveryInShipments($deliveryId)
Manager::checkServiceUsage($deliveryId)
Manager::deleteRelatedEntities($deliveryId)
Manager::getEmptyDeliveryServiceId()
Manager::checkServiceRestriction($deliveryId, $checkParams, $restrictionClassName)
Manager::isDeliveryServiceClassValid($class)
Manager::calculate(Shipment $shipment)
Manager::getRestrictionObject($className)
Manager::checkServiceRestrictions($deliveryId, Shipment $shipment, $restrictionsClassesToSkip = array())
Manager::getServicesForShipment(Shipment $shipment)
Manager::isExistService($deliveryId)
Manager::getActive()
Manager::getServicesBriefsForShipment(Shipment $shipment = null, array $skipChecks = array(), $getAll = false)
Manager::createServiceObject(array $srvParams)
Manager::getService($deliveryId)
Manager::getServiceByCode($serviceCode)
Manager::getHandlersClassNames()
Manager::getRestrictionClassNames()
Manager::getRestrictionsByDeliveryId($deliveryId)
Manager::getDeliveryRequestShipmentContent($requestId, $shipmentId)
Manager::getDeliveryRequestShipmentActions(Shipment $shipment)
Manager::getDeliveryRequestActions($requestId)
Manager::getDeliveryRequestHandlerByRequestId($requestId)
Manager::getDeliveryRequestHandlerByDeliveryId($deliveryId)
Manager::createDeliveryRequest($deliveryId, array $shipmentIds, array $additional = array())
Manager::processShipmentResult($result, $requestId = 0)
Manager::getDeliveryRequestFormFields($deliveryId, $formFieldsType, array $shipmentIds, array $additional = array())
Manager::deleteDeliveryRequest($requestId)
Manager::deleteShipmentsFromDeliveryRequest($requestId, array $shipmentIds)
Manager::getDeliveryRequestContent($requestId)
Manager::executeDeliveryRequestAction($requestId, $actionType, array $additional = array())
Manager::executeDeliveryRequestShipmentAction($requestId, $shipmentId, $actionType, array $additional = array())
Manager::checkShipmentIdsBeforeAdd(array $shipmentIds)
Manager::filterExistIds(array $shipmentIds)
Manager::filterAddedIds(array $shipmentIds)
Manager::filterPositiveIds(array $shipmentIds)
Manager::checkShipmentIdsBeforeDelete(array $shipmentIds)
Manager::checkShipmentIdsBeforeUpdate(array $shipmentIds)
Manager::isShipmentSent($shipmentId)
Manager::getRequestIdByShipmentId($shipmentId)
Manager::addShipmentsToDeliveryRequest($requestId, array $shipmentIds)
Manager::updateShipmentsFromDeliveryRequest($requestId, array $shipmentIds)
Manager::saveShipmentResult($shipmentId, ShipmentResult $shipmentResult)
Manager::onBeforeShipmentSave(&$order, &$shipment)
Manager::onBeforeShipmentDelete(&$shipment)
Manager::setMarkerShipmentChanged(&$order, &$shipment)
Manager::unSetMarkerShipmentChanged($shipmentId)
Manager::__clone()
Manager::__construct()
Manager::getInstance()
Manager::getStatusName($status)
Manager::getStatusesList()
Manager::getTrackingUrl($deliveryId, $trackingNumber = '')
Manager::getStatusByShipmentId($shipmentId, $trackingNumber = '')
Manager::getMappedStatuses()
Manager::getCheckPeriod()
Manager::getStatus($shipment)
Manager::getTrackingObjectByDeliveryId($deliveryId)
Manager::createTrackingObject($className, array $params, Services\Base $deliveryService)
Manager::startRefreshingStatuses()
Manager::updateStatuses()
Manager::processStatusesByDelivery($deliveryId, $shipmentsData)
Manager::processStatusChange($params)
Manager::sendStatusChangedMail($params)
Manager::sendOnStatusesChangedEvent(array $params)
Manager::initClassNames()
Manager::getClassNames()
Manager::updateShipment($shipmentId, StatusResult $params)
Manager::createClone(\SplObjectStorage $cloneEntity)
Manager::isClone()
Manager::getClassesList()
Manager::initClassesList()
Manager::getItems()
Manager::getItem($id)
Manager::getItemByCode($code)
Manager::getTotalCostShipment(Shipment $shipment = null)
Manager::prepareParamsToSave($params)
Manager::getAdminParamsControl($className, $name, array $params)
Manager::addItem($params, $currency, $value = null, array $additionalParams = array())
Manager::setValues(array $values = array())
Manager::setOperationCurrency($currency)
Manager::getValuesForShipment($shipmentId, $deliveryId)
Manager::saveValuesForShipment($shipmentId, $extraServices)
Manager::getStoreIdForShipment($shipmentId, $deliveryId)
Manager::saveStoreIdForShipment($shipmentId, $deliveryId, $storeId)
Manager::getStoresValueId($deliveryId)
Manager::getStoresFields($deliveryId, $onlyActive = true)
Manager::getStoresList($deliveryId)
Manager::deleteStores($deliveryId)
Manager::setStoresUnActive($deliveryId)
Manager::saveStores($deliveryId, array $storesList)
Manager::getExtraServicesList($deliveryId, $stores = false)
Manager::prepareData(array $servicesIds)
Manager::getTotalCost()
Manager::createImport($typeId)
Manager::registerInstance($typeId, ISettings $settings, ICollision $collision = null, ICriterion $criterion = null)
Manager::getImportByType($typeId)
Manager::getSettingsByType($typeId)
Manager::getList(array $parameters = array())
Manager::getListWithRestrictions(CollectableEntity $entity)
Manager::getAvailableCompanyIdByEntity(Internals\Entity $entity, $mode = Restrictions\Manager::MODE_CLIENT)
Manager::getUserCompanyList($id)
Manager::getPriceRange(Payment $payment, $paySystemId)
Manager::getHandlerDirectories()
Manager::getByCode($code)
Manager::searchByRequest(Request $request)
Manager::getFolderFromClassName($className)
Manager::sanitize($name)
Manager::getIdsByPayment($paymentId, $registryType = Registry::REGISTRY_TYPE_ORDER)
Manager::getConsumersList()
Manager::getPsType($paySystemId)
Manager::getHandlerList()
Manager::getClassNameFromPath($path)
Manager::getHandlerDescription($handler)
Manager::getPathToHandlerFolder($folder)
Manager::getInnerPaySystemId()
Manager::createInnerPaySystem()
Manager::isExist($id)
Manager::getTariff($folder, $paySystemId = 0)
Manager::getBusValueGroups()
Manager::getPersonTypeIdList($paySystemId)
Manager::getPaymentObjectByData(array $data)
Manager::getDataRefundablePage()
Manager::getRestHandlers()
Manager::isRestHandler($handler)
Manager::dropIndex($discountId)
Manager::indexDiscount(array $discount)
Manager::hasDataToIndex(array $discount)
Manager::getConditionStructure(array $discount)
Manager::extractElementsAndSections(array $condition)
Manager::convertSkuToMainProducts(array $elementIds)
Manager::registerAutoLoader()
Manager::isAlreadyRegisteredAutoLoader()
Manager::enableRestrictedGroupsMode($state)
Manager::isRestrictedGroupsModeEnabled()
Manager::autoLoad($className)
Manager::buildPresets()
Manager::buildCustomPresets()
Manager::buildDefaultPresets()
Manager::createPresetInstance($className)
Manager::getPresets()
Manager::getPresetById($id)
Manager::getPresetsByCategory($category)
Manager::getCategoryList()
Manager::getCategoryName($category)
Manager::hasCreatedDiscounts(BasePreset $preset)
Manager::getUserId()
Manager::setUserId($userId)
Manager::getFirstPredictionTextByProduct(Basket $basket, array $product)
Manager::tryToFindPredictionConnectedProducts(Basket $basket, array $product)
Manager::getProductUrl($productId)
Manager::getSectionUrl($sectionId)
Manager::getProductName($productId)
Manager::getSectionName($sectionId)
Manager::getSectionIdsByProduct(array $product)
Manager::getSectionIdsByElement($elementId)
Manager::extendSectionIds(array $sectionIds)
Manager::extendProductIds(array $productIds)
Manager::checkProductInBasket(array $product, Basket $basket)
Manager::buildTextByPredictionDiscount(Basket $basket, array $discount)
Manager::findFirstPredictionDiscount(array $discounts, $typePrediction)
Manager::addProductToBasket(Basket $basket, array $product)
Manager::getDiscounts(Basket $basket)
Manager::isValidProduct(array $product)
Manager::getBasketCopy(Basket $basket)
Manager::getCollectionsByBasket(Basket $basket, array $discounts = null, array $appliedDiscounts = null)
Manager::getGiftedProductIdsByAppliedDiscount(array $discount)
Manager::deleteGiftedProducts(array $gifts, array $giftedProductIds)
Manager::getPotentialGiftData(array $discounts, array $appliedDiscounts = array())
Manager::getCollectionsByProduct(Basket $basket, array $product)
Manager::hasDifference(array $collectionsA, array $collectionsB)
Manager::isEqual(Collection $collectionA, Collection $collectionB)
Manager::getProductIdsFromCollection(Collection $collection)
Manager::getAffectedReformattedBasketItemsInDiscount(Basket $basket, array $discountData, array $calcResults)
Manager::getItemFromBasket(array $product, Basket $basket)
Manager::deleteProductFromBasket(Basket $basket, array $product)
Manager::existProductInAppliedDiscounts(array $product, array $appliedDiscounts)
Manager::isGift(Basket $basket, array $product)
Manager::isContainGiftAction(array $discount)
Manager::existsDiscountsWithGift()
Manager::disableExistenceDiscountsWithGift()
Manager::enableExistenceDiscountsWithGift()
Manager::isActive()
Manager::activate()
Manager::deactivate()
Manager::pushHandlerExecuted($name)
Manager::isExecutedHandler($name)
Manager::checkDefaultSettings()
Manager::getClient()
Manager::setSchemeServiceUrl($code)
Manager::getSchemeServiceUrl()
Manager::setServiceUrl($code)
Manager::getServiceUrl()
Manager::getClientId()
Manager::getClientSecret()
Manager::setAccessToken($accessToken)
Manager::getAccessToken()
Manager::setRefreshToken($refreshToken)
Manager::getRefreshToken()
Manager::setOauthKey($key)
Manager::getOauthKey()
Manager::setAction($action)
Manager::getAction()
Manager::getDefaultDeliverySystemId()
Manager::setDefaultDeliverySystemId($code)
Manager::getDefaultPaySystemId()
Manager::setDefaultPaySystemId($code)
Manager::getDefaultSiteId()
Manager::setDefaultSiteId($code)
Manager::getDefaultPersonTypeId()
Manager::setDefaultPersonTypeId($code)
Manager::getDefaultOrderStatusId()
Manager::setDefaultOrderStatusId($code)
Manager::getDefaultDeliveryStatusId()
Manager::setDefaultDeliveryStatusId($code)
Manager::getTradePlatformsXmlId($siteId)
Manager::setTradePlatformsXmlId($siteId, $code)
Manager::isMarked()
Manager::marked($code)
Manager::chooseCashbox($cashboxList)
Manager::getConnectionLink()
Manager::generateHash()
Manager::getListFromCache()
Manager::getCashboxFromCache($cashboxId)
Manager::buildZReportQuery($cashboxId, $id)
Manager::buildChecksQuery($cashboxIds)
Manager::buildConcreteCheckQuery($cashboxId, Check $check)
Manager::addCheckStatusAgent()
Manager::writeToLog($cashboxId, Main\Error $error)
Manager::getTraceErrorLevel()
Manager::isSupportedFFD105()
Manager::updateChecksStatus()
Manager::getOrderFieldNames()
Manager::getBasketFieldNames()
Manager::archiveOrders($filter = array(), $limit = null, $timeExecution = null)
Manager::archiveByOptions($limit = null, $timeExecution = null)
Manager::archiveOnAgent($limit, $maxTime = null)
Manager::getBasketList(array $parameters = array())
Manager::getBasketItemById($id)
Manager::returnArchivedOrder($id)
Manager::createSftpQueue($feedType, $siteId, Timer $timer = null)
Manager::createFeed($feedType, $exportId, $timeLimit = 0, $startPosition = '')
Manager::runProcess($exportId, $processType)
Manager::prepareType($type)