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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnGetGroupSettingsCControllerGroupSettings::Get3rdPartyOptions
OnBeforeTaskAddCControllerTask::CheckFields
OnBeforeUpdateCountersCControllerMember::UpdateCounters
OnBeforeSetGroupSettingsCControllerMember::SetGroupSettings
OnAfterRegisterMemberByTicketCControllerMember::RegisterMemberByTicket
OnBeforeControllerMemberAddCControllerMember::CheckFields
OnBeforeControllerMemberUpdateCControllerMember::CheckFields
OnAfterCloseMemberCControllerMember::CloseMember

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

Метод
adminListAddUserLink(CAdminListRow $row, $name, $user_id, $label)
ControllerIsSharedMode()
CControllerGroup::CheckDefaultUpdate()
CControllerGroup::CheckFields(&$arFields, $ID = false)
CControllerGroup::Add($arFields)
CControllerGroup::Update($ID, $arFields)
CControllerGroup::__UpdateAgentPeriod($group_id, $time)
CControllerGroup::__CounterUpdateAgentPeriod($group_id, $time)
CControllerGroup::Delete($ID)
CControllerGroup::GetList($arOrder = Array(), $arFilter = Array(), $arSelect = Array())
CControllerGroup::GetByID($ID)
CControllerGroup::GetGroupSettings($group_id)
CControllerGroup::RunCommand($group_id, $php_script, $arParameters = Array())
CControllerGroup::__UpdateCountersAgent($group_id)
CControllerGroup::UpdateCounters($group_id)
CControllerGroup::__UpdateSettingsAgent($group_id)
CControllerGroup::SetGroupSettings($group_id)
CControllerGroup::SiteUpdate($group_id)
CControllerGroupSettings::GetData()
CControllerGroupSettings::GetModules()
CControllerGroupSettings::GenerateInput($id, $arInfo, $curVal = false, $context = 'default')
CControllerGroupSettings::Get3rdPartyOptions()
CControllerGroupSettings::GeneratePHPInstall($arValues)
CControllerGroupSettings::__PHPToString($arData)
CControllerGroupSettings::SetGroupSettings()
IControllerGroupOption::GetName()
IControllerGroupOption::GetIcon()
IControllerGroupOption::GetTitle()
IControllerGroupOption::GetOptionArray()
IControllerGroupOption::GetOptionPHPCode($arAllValues)
DBUpdaterLock()
DBUpdaterUnLock()
DBUpdaterCheckUpdates($US_HOST_PROCESS_MAIN)
DBUpdaterCollectDBVersionsNew($collectTypeParam, $moduleIdParam, $versionIdParam)
DBUpdaterUpdateFromVersion($moduleID, $dbVersion)
CControllerCounter::GetTypeArray()
CControllerCounter::GetTypeColumn($TYPE)
CControllerCounter::GetTypeUserType($TYPE)
CControllerCounter::CheckFields(&$arFields, $ID = false)
CControllerCounter::UpdateGroups($ID, $arGroups)
CControllerCounter::SetGroupCounters($CONTROLLER_GROUP_ID, $arCounters)
CControllerCounter::Add($arFields)
CControllerCounter::Update($ID, $arFields)
CControllerCounter::Delete($ID)
CControllerCounter::GetList($arOrder=false, $arFilter=false)
CControllerCounter::GetArrayByID($ID)
CControllerCounter::GetMemberCounters($CONTROLLER_MEMBER_ID)
CControllerCounter::UpdateMemberValues($CONTROLLER_MEMBER_ID, $arValues, $preserve = false)
CControllerCounter::GetFormatArray()
CControllerCounter::FormatValue($value, $format)
CControllerCounterResult::CControllerCounterResult($res)
CControllerCounterResult::Fetch()
CControllerLog::GetNameArray()
CControllerLog::CheckFields(&$arFields, $ID = false)
CControllerLog::Add($arFields)
CControllerLog::Update($ID, $arFields)
CControllerLog::Delete($ID)
CControllerLog::GetList($arOrder = Array(), $arFilter = Array(), $arNavParams = false)
CControllerLog::GetByID($ID)
CControllerServerRequestTo::__construct($member, $operation, $arParameters = array())
CControllerServerRequestTo::Send($url = "", $page = "/bitrix/admin/main_controller.php")
CControllerServerResponseFrom::__construct($oPacket = false)
CControllerServerRequestFrom::__construct()
CControllerServerRequestFrom::Check()
CControllerServerResponseTo::__construct($oPacket = false)
CControllerServerResponseTo::Sign()
CControllerTask::GetTaskArray()
CControllerTask::GetStatusArray()
CControllerTask::CheckFields(&$arFields, $ID = false)
CControllerTask::Add($arFields)
CControllerTask::Update($ID, $arFields)
CControllerTask::Delete($ID)
CControllerTask::GetList($arOrder = Array(), $arFilter = Array(), $bCnt = false, $arNavParams = false)
CControllerTask::GetByID($ID)
CControllerTask::ProcessTask($ID)
CControllerTask::ProcessAllTask()
CControllerMember::CheckMember($member_id, $member_url = false)
CControllerMember::RunCommandRedirect($member_id, $command, $arParameters = Array(), $log = true)
CControllerMember::RunCommandWithLog($member_id, $command, $arParameters = Array(), $task_id=false, $operation = 'run')
CControllerMember::RunCommand($member_id, $command, $arParameters = Array(), $task_id=false, $operation = 'run')
CControllerMember::SendFileWithLog($member_id, $file)
CControllerMember::SendFile()
CControllerMember::UpdateCounters($member_id, $task_id = false)
CControllerMember::SetGroupSettings($member_id, $task_id = false)
CControllerMember::RemoveGroupSettings($member_id)
CControllerMember::addHistoryNote($CONTROLLER_MEMBER_ID, $strNote)
CControllerMember::logChanges($CONTROLLER_MEMBER_ID, $arFieldsOld, $arFieldsNew, $strNote)
CControllerMember::GetLog($arFilter)
CControllerMember::Add($arFields)
CControllerMember::Update($ID, $arFields, $strNote = "")
CControllerMember::Delete($ID)
CControllerMember::GetList($arOrder = array(), $arFilter = array(), $arSelect = array(), $arOptions = array(), $arNavParams = false)
CControllerMember::GetByID($ID)
CControllerMember::GetByGuid($guid)
CControllerMember::RegisterMemberByPassword($ar_member, $admin_login, $admin_password, $controller_url = false)
CControllerMember::ReconnectMemberByPassword($ID, $ar_member, $admin_login, $admin_password, $controller_url = false)
CControllerMember::CheckUserAuth($member_id, $login, $password)
CControllerMember::RegisterMemberByPHP($ar_member)
CControllerMember::RegisterMemberByTicket($ar_member, $ticket_id, $session_id)
CControllerMember::CheckFields(&$arFields, $ID = false)
CControllerMember::CloseMember($member_id, $bClose = true, $task_id = false)
CControllerMember::UnRegister($member_id)
CControllerMember::AddCommand($member_guid, $command, $arAddParams = Array(), $task_id = false)
CControllerMember::GetMember($id)
CControllerMember::SiteUpdate($member_id)
CControllerMember::_GoodURL($url)
CControllerCounter::GetMemberValues($CONTROLLER_MEMBER_ID)
CControllerAgent::CleanUp()
CControllerAgent::_OrderBy($arOrder, $arFields, $obUserFieldsSql = null)
CControllerAgent::_Lock($uniq)
CControllerAgent::_UnLock($uniq)
CControllerMember::_CheckCommandId($member_guid, $command_id)
CControllerMember::UnregisterExpiredAgent($id = false)
AuthGrantTable::getTableName()
AuthGrantTable::getMap()
AuthGrantTable::validateScope()
AuthGrantTable::validateNote()
AuthGrantTable::getActiveForControllerMember($controllerMemberId, $granteeUserId, $granteeGroups = array())
AuthGrantTable::getGranteeUserList($currentUserId)
MemberTable::getTableName()
MemberTable::getMap()
MemberTable::validateMemberId()
MemberTable::validateSecretId()
MemberTable::validateName()
MemberTable::validateUrl()
MemberTable::validateEmail()
MemberTable::validateContactPerson()
MemberTable::validateHostname()
GroupTable::getTableName()
GroupTable::getMap()
GroupTable::validateName()
GroupTable::validateCheckCounterFreeSpace()
GroupTable::validateCheckCounterSites()
GroupTable::validateCheckCounterUsers()
GroupTable::validateCheckCounterLastAuth()
AuthLogTable::getTableName()
AuthLogTable::getMap()
AuthLogTable::validateType()
AuthLogTable::validateUserName()
AuthLogTable::isEnabled()
AuthLogTable::logSiteToControllerAuth($controllerMemberId, $userId, $isSuccess = true, $type = '', $userName = '')
AuthLogTable::logControllerToSiteAuth($controllerMemberId, $userId, $isSuccess = true, $type = '', $userName = '')
AuthLogTable::logSiteToSiteAuth($fromControllerMemberId, $toControllerMemberId, $isSuccess = true, $type = '', $userName = '')
AuthLogTable::setupAgent($days)
AuthLogTable::cleanupAgent($days)
GroupMapTable::getTableName()
GroupMapTable::getMap()
GroupMapTable::validateRemoteGroupCode()
GroupMapTable::validateLocalGroupCode()
GroupMapTable::isExists($fields)
GroupMapTable::getMapping($from, $to)
controller::controller()
controller::InstallDB()
controller::UnInstallDB($arParams = array())
controller::InstallFiles()
controller::UnInstallFiles()
controller::InstallEvents()
controller::UnInstallEvents()
controller::DoInstall()
controller::DoUninstall()
controller::GetModuleRightList()
controller::GetModuleTasks()
controller::OnGetTableSchema()