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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnBeforeTicketExpireCTicketReminder::SupportDeadline
OnBeforeTicketNotifyCTicketReminder::SupportDeadlineNotify
OnBeforeTicketDeleteCTicket::Delete
OnTicketDeleteCTicket::Delete
OnBeforeSendMailToAuthorCTicket::Set_sendMails
OnBeforeSendMailToSupportCTicket::Set_sendMails
OnBeforeTicketUpdateCTicket::Set
OnAfterTicketUpdateCTicket::Set
OnBeforeTicketAddCTicket::Set
OnAfterTicketAddCTicket::Set
OnBeforeSendCouponEMailCSupportSuperCoupon::UseCoupon
OnAfterUseCouponCSupportSuperCoupon::UseCoupon

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

Метод
ClearCategoryTable()
__PrintRussian($num, $ext)
__sup_debug($v, $name = false)
CSupportTimetableCache::Possible($d = "")
CSupportTimetableCache::GetTimeZone()
CSupportTimetableCache::GetTimeZoneOffset()
CSupportTimetableCache::TimeStampInCurrTimeZone($d, $fromUserTZ = false)
CSupportTimetableCache::err_mess()
CSupportTimetableCache::GetMaxSlaResponseTime()
CSupportTimetableCache::GetNumberOfDaysForward()
CSupportTimetableCache::GetNumberOfDaysBackward()
CSupportTimetableCache::GetDayBegin($d)
CSupportTimetableCache::GetDayEnd($d)
CSupportTimetableCache::GetDayNom($d)
CSupportTimetableCache::GetHolidays($dateB, $dateE, $arrS, $arFilter)
CSupportTimetableCache::SortMethodH($a, $b)
CSupportTimetableCache::MergeIntervalsH($arr, $arrS)
CSupportTimetableCache::InsertDefaultValues()
CSupportTimetableCache::GetShedule($arFilter)
CSupportTimetableCache::MergeIntervals($arr)
CSupportTimetableCache::TimeToStr($t)
CSupportTimetableCache::ToCache($arFilter = array(), $RSD = true, $arFromGetEndDate = null)
CSupportTimetableCache::UpdateDiscardedTickets()
CSupportTimetableCache::getEndDate($sla, $periodMin0, $dateFrom, $secondTry = false)
CSupportTimetableCache::StartAgent()
CTicketDictionary::err_mess()
CTicketDictionary::GetDefault($type, $siteID=SITE_ID)
CTicketDictionary::GetNextSort($typeID)
CTicketDictionary::GetDropDown($type="C", $siteID=false, $sla_id=false)
CTicketDictionary::GetDropDownArray($siteID = false, $SLA_ID = false, $arUnsetType = Array("F"))
CTicketDictionary::GetSiteArray($DICTIONARY_ID)
CTicketDictionary::GetSiteArrayForAllDictionaries()
CTicketDictionary::GetTypeList()
CTicketDictionary::GetTypeNameByID($id)
CTicketDictionary::GetByID($id)
CTicketDictionary::GetBySID($sid, $type, $siteID=SITE_ID)
CTicketDictionary::Delete($id, $CHECK_RIGHTS="Y")
CTicketDictionary::CheckFields($arFields, $id = false)
CTicketDictionary::Add($arFields)
CTicketDictionary::Update($id, $arFields)
CTicketDictionary::__CleanDefault(&$arFields)
CTicketDictionary::__SetSites($id, $arFields)
CTicketReminder::err_mess()
CTicketReminder::ConvertResponseTimeUnit($rt, $rtu)
CTicketReminder::RecalculateLastMessageDeadline($RSD = true)
CTicketReminder::RecalculateSupportDeadline($arFilter = array())
CTicketReminder::RecalculateSupportDeadlineForOneTicket($arTicket, $arFields = array(), $dateType = array("EVENT"=>array(CTicket::IGNORE)))
CTicketReminder::SupportDeadline($arrTicket)
CTicketReminder::SupportDeadlineNotify($arrTicket0)
CTicketReminder::AgentFunction()
CTicketReminder::StartAgent()
CSupportTimetable::err_mess()
CSupportTimetable::Set($arFields, $arFieldsShedule) //$arFields, $arFieldsShedule = array(0 => array("ID" => 1 ...), 1 => array("ID" => 3 ...) ...)
CSupportTimetable::GetList($arSort = null, $arFilter = null)
CSupportTimetable::GetSheduleByID($id, $needObj = false)
CSupportTimetable::Delete($id, $checkRights=true)
CSupportUserGroup::GetList($arOrder = array(), $arFilter = array())
CSupportUserGroup::Add($arFields)
CSupportUserGroup::Update($ID, $arFields)
CSupportUserGroup::CheckFields(&$arFields, $ID = 0)
CSupportUserGroup::Delete($ID)
CSupportUserGroup::GetUserGroupList($arOrder = array(), $arFilter = array())
CSupportUserGroup::AddUserGroup($arFields)
CSupportUserGroup::UpdateUserGroup($groupID, $userID, $arFields)
CSupportUserGroup::DeleteUserGroup($groupID, $userID)
CSupportSearch::err_mess()
CSupportSearch::getSql($query)
CSupportSearch::GetFilterQuery($q, $idName, $titleName, $messageName, &$error)
CSupportSearch::PrepareQuery($q, $idName, $titleName, $messageName, &$error)
CSupportSearch::ParseQ($q)
CSupportSearch::ParseStr($qwe, $default_op = "&")
CSupportSearch::CheckModule()
CSupportSearch::isIndexExists()
CSupportSearch::GetSQLfilter($s, $idName, $titleName, $messageName)
CSupportSearch::StrInEXISTS($and, $idName, $sign, $key)
CSupportSearch::indexTicket($ticket, $messages = null)
CSupportSearch::reindexTicket($ticket, $messages = null)
CSupportSearch::indexAllTickets($startFromId = 0, $timeLimit = 10)
CSupportSearch::reindexAllTickets($startFromId = 0, $timeLimit = 10)
CSupportSearch::performAllTicketsIndexing($startFromId = 0, $timeLimit = 10, $removeOldIndex = false)
CSupportSearch::WriteWordsInTable($M_ID, $SITE_ID, $s)
CSupportSearch::ReindexMessages($firstID, $periodS = 8)
CSupportUser2UserGroup::GetList($arOrder = array(), $arFilter = array())
CSupportUser2UserGroup::Add($arFields)
CSupportUser2UserGroup::Update($groupID, $userID, $arFields)
CSupportUser2UserGroup::CheckFields(&$arFields, $groupID = 0, $userID = 0)
CSupportUser2UserGroup::Delete($groupID, $userID)
CSupportUser2UserGroup::SetGroupUsers($groupID, $arUsers)
CSupportHolidays::err_mess()
CSupportHolidays::Set($arFields, $arFieldsSLA) //$arFields, $arFieldsSLA = array(0 => array("HOLIDAYS_ID" => 1, "SLA_ID" => 1), 1 => array("HOLIDAYS_ID" => 2, "SLA_ID" => 2) ...)
CSupportHolidays::GetList($arSort, $arFilter)
CSupportHolidays::GetSLAByID($id, $needObj = false)
CSupportHolidays::GetOpenTimeArray()
CSupportHolidays::GetOpenTimeT($v)
CSupportHolidays::Delete($id, $checkRights=true)
CSupportTableFields::Convert($type, $value, $op)
CSupportTableFields::ConvertForSQL($type, $value)
CSupportTableFields::ConvertForHTML($type, $place, $value, $op)
CSupportTableFields::SortMethod($a, $b)
CSupportTableFields::__construct($f, $arOrTable = self::C_Array)
CSupportTableFields::checkRow($row)
CSupportTableFields::First()
CSupportTableFields::Last()
CSupportTableFields::ResetNext()
CSupportTableFields::Next()
CSupportTableFields::Previous()
CSupportTableFields::Row($row)
CSupportTableFields::CleanVar($row = null, $removeExistingRows = false)
CSupportTableFields::RemoveExistingRows()
CSupportTableFields::__set($name, $value)
CSupportTableFields::AddRow()
CSupportTableFields::SortRow($sf)
CSupportTableFields::Set($name, $value, $notNull = array(), $row = null, $isModified = true)
CSupportTableFields::SetCurrentTime($name, $row = null)
CSupportTableFields::FromArray($arr, $fields = self::ALL, $notNull = array(), $row = null)
CSupportTableFields::FromTable($table, $fields = self::ALL, $notNull = array(), $removeExistingRows = false)
CSupportTableFields::__get($name)
CSupportTableFields::Get($name, $row = null)
CSupportTableFields::ToArray($fields = self::ALL, $notNull = array(), $forSQL = false, $row = null)
CSupportTableFields::GetFieldForOutput($name, $place, $whiteList = array("http", "ftp", "/"), $row = null)
CSupportTableFields::GetColumn($name)
CTicket::err_mess()
CTicket::GetDeniedRoleID()
CTicket::GetSupportClientRoleID()
CTicket::GetSupportTeamRoleID()
CTicket::GetDemoRoleID()
CTicket::GetAdminRoleID()
CTicket::HaveRole($role, $userID=false)
CTicket::IsAdmin($userID=false)
CTicket::IsDemo($userID=false)
CTicket::IsSupportTeam($userID=false)
CTicket::IsSupportClient($userID=false)
CTicket::IsOwner($ticketID, $userID=false)
CTicket::GetRoles(&$isDemo, &$isSupportClient, &$isSupportTeam, &$isAdmin, &$isAccess, &$userID, $checkRights=true)
CTicket::GetGroupsByRole($role)
CTicket::GetAdminGroups()
CTicket::GetSupportTeamGroups()
CTicket::GetEmailsByRole($role)
CTicket::GetAdminEmails()
CTicket::GetSupportTeamEmails()
CTicket::GetSupportTeamAndAdminUsers()
CTicket::CheckFilter($arFilter)
CTicket::CheckFields($arFields, $id, $arRequired)
CTicket::PrepareFields($arFields, $table, $id)
CTicket::SplitTicket($arParam)
CTicket::MarkMessageAsSpam($messageID, $exactly="Y", $checkRights="Y")
CTicket::UnMarkMessageAsSpam($messageID, $checkRights="Y")
CTicket::MarkAsSpam($ticketID, $exactly="Y", $checkRights="Y")
CTicket::UnMarkAsSpam($ticketID, $checkRights="Y")
CTicket::UpdateLastParams2($ticketID, $dateType)
CTicket::UpdateLastParamsN($ticketID, $dateType, $recalculateSupportDeadline = true, $setReopenDefault = true)
CTicket::UpdateMessages($ticketID)
CTicket::GetFileList(&$by, &$order, $arFilter=array(), $checkRights = 'N')
CTicket::GetMessageByID($id, $checkRights="Y", $get_user_name="Y")
CTicket::GetByID($id, $lang=LANG, $checkRights="Y", $get_user_name="Y", $get_extra_names="Y", $arParams = Array())
CTicket::getMaxId()
CTicket::Delete($ticketID, $checkRights="Y")
CTicket::UpdateOnline($ticketID, $userID=false, $currentMode="")
CTicket::SetTicket($arFields, $ticketID="", $checkRights="Y", $sendEmailToAuthor="Y", $sendEmailToTechsupport="Y")
CTicket::addSupportText($cn)
CTicket::EmailsFromStringToArray($emails, $res = null)
CTicket::GetCSupportTableFields($name, $arrOrTable = CSupportTableFields::C_Array)
CTicket::Set_getFilesLinks($arFiles, $lID)
CTicket::Set_WriteLog($nf, $v, $mf)
CTicket::Set_sendMails($nf, $v, $arFields)
CTicket::Set_getResponsibleUser($v, $f, &$arFields)
CTicket::Set_getCOUPONandSLA($v, $f, $arFields)
CTicket::Set_InitVar(&$arFields, $id, $checkRights, $sendEmailToAuthor, $sendEmailToTechsupport)
CTicket::Set($arFields, &$MID, $id="", $checkRights="Y", $sendEmailToAuthor="Y", $sendEmailToTechsupport="Y")
CTicket::GetFUA($site_id)
CTicket::GetRefBookValues($type, $site_id=false)
CTicket::GetMessages($ticketID, $arFilter=array(), $checkRights="Y")
CTicket::GetResponsible()
CTicket::IsResponsible($userID=false)
CTicket::ExecuteEvents($message, $arFields, $isNew, &$eventType = false)
CTicket::GetResponsibleList($userID, $CMGM = null, $CMUGM = null, $SG = null)
CTicket::GetUsersPropertiesArray($arUserIDs = array(), $arGuestIDs = array())
CSupportTools::PrepareParamArray($param, $res = array())
CSupportTools::array_keys_exists($key, $arr, $more0 = "", $andOr = "&&")
CSupportEMail::OnGetFilterList()
CSupportEMail::PrepareVars()
CSupportEMail::EMailMessageCheck($arFields, $ACTION_VARS)
CSupportEMail::EMailMessageAdd($arMessageFields, $ACTION_VARS)
CTicketSLA::err_mess()
CTicketSLA::Set($arFields, $id, $checkRights=true)
CTicketSLA::Delete($id, $checkRights=true)
CTicketSLA::GetByID($id)
CTicketSLA::GetSheduleArray($slaID)
CTicketSLA::GetGroupArray($slaID)
CTicketSLA::GetGroupArrayForAllSLA()
CTicketSLA::GetSiteArray($slaID)
CTicketSLA::GetSiteArrayForAllSLA($p = self::SLA_SITE)
CTicketSLA::GetCategoryArray($slaID)
CTicketSLA::GetCriticalityArray($slaID)
CTicketSLA::GetMarkArray($slaID)
CTicketSLA::GetDropDown($siteID="")
CTicketSLA::GetForUser($siteID=false, $userID=false)
CTicketSLA::GetSLA( $siteID, $userID, $categoryID = null, $coupon = "" )
CSupportSuperCoupon::Generate($arParams = array())
CSupportSuperCoupon::Add($arFields)
CSupportSuperCoupon::Update($ID, $arFields)
CSupportSuperCoupon::UseCoupon($coupon)
CSupportSuperCoupon::GetList($arOrder = array(), $arFilter = array())
CSupportSuperCoupon::Delete($ID)
CSupportSuperCoupon::GetLogList($arOrder = array(), $arFilter = array())
CSupportSuperCoupon::_getrandsymbol($x)
CSupportSuperCoupon::__CheckFields($arFields)
CTicketDictionary::GetList(&$by, &$order, $arFilter=Array(), &$isFiltered)
CTicket::isnull( $field, $alternative )
CTicket::AutoClose()
CTicket::CleanUpOnline()
CTicket::GetOnline($ticketID)
CTicket::DeleteMessage($ID, $checkRights="Y")
CTicket::UpdateMessage($MESSAGE_ID, $arFields, $checkRights="Y")
CTicket::AddMessage($ticketID, $arFields, &$arrFILES, $checkRights="Y")
CTicket::GetStatus($ticketID)
CTicket::GetList(&$by, &$order, $arFilter=Array(), &$isFiltered, $checkRights="Y", $getUserName="Y", $getExtraNames="Y", $siteID=false, $arParams = Array() )
CTicket::GetSupportTeamList()
CTicket::GetMessageList(&$by, &$order, $arFilter=Array(), &$isFiltered, $checkRights="Y", $getUserName="Y")
CTicket::GetDynamicList(&$by, &$order, $arFilter=Array())
CTicket::GetMessageDynamicList(&$by, &$order, $arFilter=Array())
CSupportUpdate::err_mess()
CSupportUpdate::GetBD()
CTicketSLA::GetList(&$arSort, $arFilter=Array(), &$isFiltered)
support::support()
support::InstallDB($arParams = array())
support::UnInstallDB($arParams = array())
support::InstallEvents()
support::UnInstallEvents()
support::InstallFiles($arParams = array())
support::UnInstallFiles($arParams = array())
support::DoInstall()
support::DoUninstall()
support::GetModuleRightList()