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

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


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

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

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

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

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

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

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

События модуля lists

СобытиеВызывается
OnFillSocNetFeaturesListCLists::IsEnabledSocnet
CIBlockDocument_OnUnlockDocumentBizprocDocument::UnlockDocument
CIBlockDocument_OnGetDocumentAdminPageBizprocDocumentLists::getDocumentAdminPage

Константы модуля lists

КонстантаПроверяется
BX_COMP_MANAGED_CACHECListsLiveFeed::formatListsElement
ADMIN_SECTIONBizprocDocument::GetFieldInputControl
PUBLIC_AJAX_MODEController::sendJsonResponse

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

Метод
CLists::SetPermission($iblock_type_id, $arGroups)
CLists::GetPermission($iblock_type_id = false)
CLists::GetDefaultSocnetPermission()
CLists::SetSocnetPermission($iblock_id, $arRoles)
CLists::GetSocnetPermission($iblock_id)
CLists::GetIBlockPermission($iblock_id, $user_id)
CLists::GetIBlockTypes($language_id = false)
CLists::GetIBlocks($iblock_type_id, $check_permissions, $socnet_group_id = false)
CLists::OnIBlockDelete($iblock_id)
CLists::OnAfterIBlockDelete($iblock_id)
CLists::IsEnabledSocnet()
CLists::EnableSocnet($bActive = false)
CLists::OnSharepointCreateProperty($arInputFields)
CLists::OnSharepointCheckAccess($iblock_id)
CLists::setLiveFeed($checked, $iblockId)
CLists::getLiveFeed($iblockId)
CLists::getCountProcessesUser($userId, $iblockTypeId)
CLists::generateMnemonicCode($integerCode = 0)
CLists::OnAfterIBlockElementDelete($fields)
CLists::completeWorkflow($workflowId, $iblockType, $elementId, $iblockId, $action)
CLists::deleteSocnetLog(array $listWorkflowId)
CLists::copyIblock($iblockId, array &$errors)
CLists::checkChangedFields($iblockId, $elementId, array $select, array $elementFields, array $elementProperty)
CLists::deleteListsUrl($iblockId)
CLists::getIblockAttachedCrm($entityType)
CLists::deleteListsCache($cacheDir)
CLists::OnAfterIBlockPropertyAdd($fields)
CLists::OnAfterIBlockPropertyUpdate($fields)
CLists::OnAfterIBlockPropertyDelete($fields)
CLists::getChildSection($baseSectionId, array $listSection, array &$listChildSection)
CLists::isAssociativeArray($array)
CLists::OnBeforeIBlockElementAdd(&$fields)
CLists::OnBeforeIBlockElementUpdate(&$fields)
CLists::runRebuildSeachableContent($iblockId)
CLists::rebuildSeachableContent($iblockId, $limit = 100, $offset = 0)
CLists::rebuildSeachableContentForElement($iblockId, $elementId)
CLists::getListElementValue($iblockId, $listElementId)
CLists::createSeachableContent(array $fields)
CLists::createSeachableContentForProperty($fields)
CLists::getNumberOfElements($iblockId)
CListsParameters::GetPathTemplateMenuItems($menuType, $action_function, $menuID, $inputID = "")
CListsParameters::GetPathTemplateParam($menuType, $ID, $parameterName, $defaultValue = "", $parentID = "URL_TEMPLATES")
CListFieldList::__construct($iblock_id)
CListFieldList::GetByID($field_id)
CListFieldList::GetFields()
CListFieldList::GetArrayByID($field_id)
CListFieldList::DeleteField($field_id)
CListFieldList::AddField($arFields)
CListFieldList::UpdateField($field_id, $arFields)
CListFieldList::_save_form_settings($form_id)
CListFieldList::_read_form_settings($form_id)
CListFieldList::Order($a, $b)
CListFieldList::_resort()
CListFieldList::DeleteFields($iblock_id)
CListFileControl::__construct($obFile, $input_name)
CListFileControl::GetHTML($params)
CListFieldType::__construct($id, $name, $is_field, $is_readonly)
CListFieldType::IsField()
CListFieldType::IsReadonly()
CListFieldType::GetName()
CListFieldType::GetID()
CListFile::__construct($list_id, $section_id, $element_id, $field_id, $file_id)
CListFile::SetSocnetGroup($socnet_group_id)
CListFile::GetInfoHTML($params = array())
CListFile::GetInputHTML($params = array())
CListFile::GetImgSrc($params = array())
CListFile::GetImgHtml($params = array())
CListFile::GetLinkHtml($params = array())
CListFile::GetWidth()
CListFile::GetHeight()
CListFile::GetSize()
CListFile::IsImage()
CListFieldTypeList::IsExists($type_id)
CListFieldTypeList::GetByID($type_id)
CListFieldTypeList::IsField($type_id)
CListFieldTypeList::GetTypesNames()
CListFieldTypeList::_init()
CListField::__construct($iblock_id, $field_id, $label, $sort)
CListField::_read_from_cache($field_id)
CListField::_clear_cache()
CListField::GetID()
CListField::GetLabel()
CListField::GetTypeID()
CListField::IsReadOnly()
CListField::GetSort()
CListField::GetSettingsDefaults()
CListField::GetSettings()
CListField::SetSettings($arSettings)
CListField::IsRequired()
CListField::IsMultiple()
CListField::GetDefaultValue()
CListField::SetSort($sort)
CListField::GetArray()
CListField::Delete()
CListField::Update($arFields)
CListField::Add($iblock_id, $arFields)
CListElementField::__construct($iblock_id, $field_id, $label, $sort)
CListElementField::IsRequired()
CListElementField::IsMultiple()
CListElementField::GetDefaultValue()
CListElementField::SetSort($sort)
CListElementField::GetArray()
CListElementField::Delete()
CListElementField::Update($arFields)
CListElementField::Add($iblock_id, $arFields)
CListPropertyField::__construct($iblock_id, $field_id, $label, $sort)
CListPropertyField::getPropertyArrayFromCache($id)
CListPropertyField::resetPropertyArrayCache()
CListPropertyField::IsRequired()
CListPropertyField::IsMultiple()
CListPropertyField::GetDefaultValue()
CListPropertyField::SetSort($sort)
CListPropertyField::GetArray()
CListPropertyField::Delete()
CListPropertyField::generatePropertyCode($name, $code, $iblockId, $propertyId = 0)
CListPropertyField::Update($arFields)
CListPropertyField::Add($iblock_id, $arFields)
CListPropertyField::existPropertyCode($iblockId, $code, $propertyId = 0)
CListPermissions::CheckAccess($USER, $iblock_type_id, $iblock_id = false, $socnet_group_id = 0)
CListPermissions::_socnet_check($USER, $iblock_type_id, $iblock_id, $socnet_group_id)
CListPermissions::_socnet_type_check($USER, $iblock_type_id, $socnet_group_id)
CListPermissions::_lists_type_check($USER, $iblock_type_id)
CListPermissions::_lists_check($USER, $iblock_type_id, $iblock_id)
CListPermissions::_iblock_check($iblock_type_id, $iblock_id)
CListPermissions::MergeRights($IBLOCK_TYPE_ID, $DB, $POST)
CListPermissions::CheckFieldId($iblock_id, $field_id)
CListsSocnet::OnFillSocNetFeaturesList(&$arSocNetFeaturesSettings)
CListsSocnet::OnFillSocNetMenu(&$arResult, $arParams = array())
CListsSocnet::OnParseSocNetComponentPath(&$arUrlTemplates, &$arCustomPagesPath, $arParams)
CListsSocnet::OnInitSocNetComponentVariables(&$arVariableAliases, &$arCustomPagesPath)
CList::__construct($iblock_id)
CList::is_field($type_id)
CList::is_readonly($field_id)
CList::GetFields()
CList::GetAllTypes()
CList::GetAvailableTypes($ID = "")
CList::DeleteField($field_id)
CList::AddField($arFields)
CList::GetNewID($TEMP_ID)
CList::UpdateField($field_id, $arFields)
CList::Save()
CList::UpdatePropertyList($prop_id, $list)
CList::ActualizeDocumentAdminPage($url)
CList::OnGetDocumentAdminPage($arElement)
CList::OnSearchGetURL($arFields)
CList::getUrlByIblockId($IBLOCK_ID)
RestService::onRestServiceBuildDescription()
RestService::addLists($params, $n, $server)
RestService::getLists($params, $n, $server)
RestService::updateLists($params, $n, $server)
RestService::deleteLists($params, $n, $server)
RestService::addField($params, $n, $server)
RestService::getFields($params, $n, $server)
RestService::updateField($params, $n, $server)
RestService::deleteField($params, $n, $server)
RestService::getFieldTypes($params, $n, $server)
RestService::addElement($params, $n, $server)
RestService::getElement($params, $n, $server)
RestService::updateElement($params, $n, $server)
RestService::deleteElement($params, $n, $server)
RestService::prepareElementFields(array &$params, $object, &$errors)
RestService::checkParamsIblock(array $params)
RestService::prepareFields(array $params, $object, $update = false)
RestService::checkIblockPermission($params)
RestService::checkIblockTypePermission($params)
RestService::checkElementPermission(array &$params)
RestService::checkListElementPermission(array $params)
RestService::prepareOrderArray(array $order, array $availableFieldsId, array $availableParams)
RestService::getIblocksData(&$params)
RestService::getElementsData(&$params, $n)
RestService::getProperty($iblockId, $code)
RestService::prepareIblockFields(array $params)
RestService::prepareRights($rights)
RestService::startBizproc($params, $documentStates, $bizprocParameters, $changedElementFields, &$errors)
Element::buildPreview($parameters)
Element::checkUserReadAccess($parameters)
Importer::export($iblockId)
Importer::getDataProcess($filePath)
Importer::import($iblockType, $datum, $siteId = null)
Importer::importTemplate($documentType, $bpDescr, $bp)
Importer::createIBlock($iblockType, $iblock, $pictureType, $picture, $siteId = null)
Importer::getIBlockType()
Importer::getDocumentType($iblockType, $iblockId)
Importer::createIBlockRights($iblockId)
Importer::installProcesses($lang, $siteId = null)
Importer::installProcess($path, $siteId = null)
Importer::loadDataProcesses($lang, $systemProcesses = true, &$fileData, $path = null)
Importer::createIBlockType()
Importer::onAgent($lang)
Importer::migrateList($id)
BizprocDocument::getEntityName()
BizprocDocument::generateDocumentType($iblockId)
BizprocDocument::generateDocumentComplexType($iblockType, $iblockId)
BizprocDocument::getDocumentComplexId($iblockType, $documentId)
BizprocDocument::deleteDataIblock($iblockId)
BizprocDocument::getDocumentIcon($documentId)
BizprocDocument::getDocument($documentId)
BizprocDocument::getSystemIblockFields()
BizprocDocument::getDocumentFields($documentType)
BizprocDocument::generateMnemonicCode($integerCode = 0)
BizprocDocument::addDocumentField($documentType, $fields)
BizprocDocument::updateDocumentField($documentType, $fields)
BizprocDocument::updateDocument($documentId, $arFields)
BizprocDocument::onTaskChange($documentId, $taskId, $taskData, $status)
BizprocDocument::onWorkflowStatusChange($documentId, $workflowId, $status)
BizprocDocument::getDocumentAdminPage($documentId)
BizprocDocument::getRightsTasks()
BizprocDocument::getAllowableOperations($documentType)
BizprocDocument::toInternalOperations($documentType, $permissions)
BizprocDocument::toExternalOperations($documentType, $permissions)
BizprocDocument::CanUserOperateDocument($operation, $userId, $documentId, $parameters = array())
BizprocDocument::CanUserOperateDocumentType($operation, $userId, $documentType, $parameters = array())
BizprocDocument::GetAllowableUserGroups($documentType, $withExtended = false)
BizprocDocument::SetPermissions($documentId, $workflowId, $permissions, $rewrite = true)
BizprocDocument::GetFieldInputControl($documentType, $fieldType, $fieldName, $fieldValue, $allowSelection = false, $publicMode = false)
BizprocDocument::GetFieldInputValue($documentType, $fieldType, $fieldName, $request, &$errors)
BizprocDocument::GetFieldInputValuePrintable($documentType, $fieldType, $fieldValue)
BizprocDocument::UnlockDocument($documentId, $workflowId)
BizprocDocument::PublishDocument($documentId)
BizprocDocument::GetDocumentForHistory($documentId, $historyIndex)
BizprocDocument::isFeatureEnabled($documentType, $feature)
BizprocDocumentLists::getEntityName()
BizprocDocumentLists::getDocument($documentId)
BizprocDocumentLists::getDocumentFields($documentType)
BizprocDocumentLists::isFeatureEnabled($documentType, $feature)
BizprocDocumentLists::getDocumentAdminPage($documentId)
Field::renderField(array $field)
Field::prepareFieldDataForEditForm(array $field)
Field::prepareFieldDataForFilter(array $field)
Field::renderFieldByTypeS(array $field)
Field::renderFieldByTypeN(array $field)
Field::renderFieldByTypeL(array $field)
Field::renderFieldByTypeF(array $field)
Field::renderFieldByTypeE(array $field)
Field::renderFieldByTypeG(array $field)
Field::renderFieldByUserTypeElist(array $field)
Field::renderFieldByFieldPreviewPicture(array $field)
Field::renderFieldByFieldDetailPicture(array $field)
Field::renderFieldByFieldActiveFrom(array $field)
Field::renderFieldByFieldActiveTo(array $field)
Field::renderFieldByFieldDateCreate(array $field)
Field::renderFieldByFieldTimestampX(array $field)
Field::renderFieldByFieldCreatedBy(array $field)
Field::renderFieldByFieldModifiedBy(array $field)
Field::renderFieldByFieldDetailText(array $field)
Field::renderFieldByFieldPreviewText(array $field)
Field::renderDateField(array $field)
Field::renderFieldByFieldName(array $field)
Field::renderDefaultField(array $field)
Field::getLinkToElement(array $field)
Field::renderCustomDefaultValueDiskFile(array $field)
Field::prepareEditFieldByTypeL(array $field)
Field::prepareEditFieldByTypeS(array $field)
Field::prepareEditFieldByTypeN(array $field)
Field::prepareEditFieldByUserTypeHTML(array $field)
Field::prepareEditFieldByFieldCreatedBy(array $field)
Field::prepareEditFieldByFieldModifiedBy(array $field)
Field::prepareEditFieldByFieldDateCreate(array $field)
Field::prepareEditFieldByFieldTimestampX(array $field)
Field::prepareEditFieldByFieldDetailText(array $field)
Field::prepareEditFieldByFieldPreviewText(array $field)
Field::prepareEditFieldByFieldPreviewPicture(array $field)
Field::prepareEditFieldByFieldDetailPicture(array $field)
Field::prepareEditFieldByFieldActiveFrom(array $field)
Field::prepareEditFieldByFieldActiveTo(array $field)
Field::prepareEditFieldByText($field)
Field::prepareEditFieldByTypeE(array $field)
Field::prepareEditFieldByTypeG(array $field)
Field::prepareEditFieldByTypeF(array $field)
Field::prepareDateEditField(array $field)
Field::prepareEditDefaultField(array $field)
Field::renderHtmlEditor($fieldId, $fieldNameForHtml, $params, $content)
ErrorCollection::addOne(Error $error)
ErrorCollection::addFromResult(Result $result)
ErrorCollection::hasErrors()
ErrorCollection::getErrorsByCode($code)
Controller::__construct()
Controller::end()
Controller::exec()
Controller::getUser()
Controller::sendJsonResponse($response, $params = null)
Controller::sendJsonErrorResponse()
Controller::sendJsonAccessDeniedResponse($message = '')
Controller::sendJsonInvalidSignResponse($message = '')
Controller::sendJsonSuccessResponse(array $response = array())
Controller::sendJsonProcessingResponse(array $response = array())
Controller::sendJsonCompletedResponse(array $response = array())
Controller::sendResponse($response)
Controller::getErrors()
Controller::getErrorsByCode($code)
Controller::getErrorByCode($code)
Controller::resolveAction()
Controller::normalizeListOfAction(array $listOfActions)
Controller::normalizeActionDescription($action, $description)
Controller::checkAction()
Controller::listOfActions()
Controller::getAction()
Controller::getActionDescription()
Controller::setAction($action, array $description)
Controller::setActionName($action)
Controller::checkRequiredModules()
Controller::prepareParams()
Controller::processBeforeAction($actionName)
Controller::runAction()
Controller::runProcessingException(\Exception $e)
Controller::runProcessingIfUserNotAuthorized()
Controller::runProcessingIfInvalidCsrfToken()
Controller::getApplication()
Controller::checkRequiredInputParams(array $inputParams, array $required)
Controller::checkRequiredPostParams(array $required)
Controller::checkRequiredGetParams(array $required)
Controller::checkRequiredFilesParams(array $required)
Controller::isAjaxRequest()
CListsLiveFeed::setMessageLiveFeed($users, $elementId, $workflowId, $flagCompleteProcess)
CListsLiveFeed::onFillSocNetAllowedSubscribeEntityTypes(&$socnetEntityTypes)
CListsLiveFeed::onFillSocNetLogEvents(&$socnetLogEvents)
CListsLiveFeed::formatListsElement($fields, $params, $mail = false)
CListsLiveFeed::addCommentLists($fields)
CListsLiveFeed::getRights($users, $logId, $createdBy, $method)
CListsLiveFeed::getUserIdForRight($rights)
CListsLiveFeed::setSocnetFollow($users = array(), $logId, $type, $manualMode = false, $addingComment = false)
CListsLiveFeed::getSiteName()
CListsLiveFeed::BeforeIndexSocNet($bxSocNetSearch, $fields)
CListsLiveFeed::OnAfterSonetLogEntryAddComment($comment)
CListsLiveFeed::OnForumCommentIMNotify($entityType, $entityId, $comment)
CListsLiveFeed::NotifyComment($comment)
CListsLiveFeed::OnSendMentionGetEntityFields($commentFields)
lists::lists()
lists::InstallDB($arParams = array())
lists::installDemoData()
lists::UnInstallDB($arParams = array())
lists::InstallEvents()
lists::UnInstallEvents()
lists::InstallFiles($arParams = array())
lists::UnInstallFiles()
lists::DoInstall()
lists::DoUninstall()
lists::OnGetTableSchema()