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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnAfterTMDayStartCTimeManUser::OpenDay
OnBeforeTMReportAddCTimeManReport::Add
OnAfterTMReportAddCTimeManReport::Add
OnBeforeTMReportUpdateCTimeManReport::Update
OnAfterTMReportUpdateCTimeManReport::Update
OnBeforeTMEntryAddCTimeManEntry::Add
OnAfterTMEntryAddCTimeManEntry::Add
OnBeforeTMEntryUpdateCTimeManEntry::Update
OnAfterTMEntryUpdateCTimeManEntry::Update
OnBeforeTMReportDailyAddCTimeManReportDaily::Add
OnAfterTMReportDailyAddCTimeManReportDaily::Add
OnBeforeTMReportDailyUpdateCTimeManReportDaily::Update
OnAfterTMReportDailyUpdateCTimeManReportDaily::Update
OnBeforeFullReportUpdateCTimeManReportFull::Update
OnAfterFullReportUpdateCTimeManReportFull::Update
OnBeforeFullReportAddCTimeManReportFull::Add
OnAfterFullReportAddCTimeManReportFull::Add

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

КонстантаПроверяется
BX_COMP_MANAGED_CACHECReportNotifications::FormatEvent
TIMEMAN_VERSIONtimeman::timeman

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

Метод
CTimeManUser::instance()
CTimeManUser::__construct($USER_ID = 0, $site_id = SITE_ID)
CTimeManUser::GetID()
CTimeManUser::isEntryValid($action, $timestamp)
CTimeManUser::EditDay($arParams)
CTimeManUser::OpenDay($timestamp = false, $report = '')
CTimeManUser::CloseDay($timestamp = false, $report = '', $bFieldsOnly = false)
CTimeManUser::ReopenDay($bSkipCheck = false, $site_id = SITE_ID)
CTimeManUser::PauseDay()
CTimeManUser::SetReport($report, $report_ts, $entry_id = null)
CTimeManUser::GetCurrentInfo($clear = false)
CTimeManUser::State()
CTimeManUser::GetExpiredRecommendedDate()
CTimeManUser::isDayOpen()
CTimeManUser::isDayPaused()
CTimeManUser::getDayStartOffset($entry, $bTs = false)
CTimeManUser::isDayOpenedToday()
CTimeManUser::isDayExpired()
CTimeManUser::OpenAction($bSkipCheck = false)
CTimeManUser::GetEvents($date)
CTimeManUser::GetTasks($arIDs = array(), $bOpened = false, $USER_ID = null)
CTimeManUser::TaskStatus($id, $status)
CTimeManUser::TaskActions($arActions, $site_id = SITE_ID)
CTimeManUser::GetSettings($arNeededSettings = null)
CTimeManUser::GetPersonalSettings($arNeededSettings = null)
CTimeManUser::__GetSettings($arNeededSettings, $bPersonal = false)
CTimeManUser::_GetPersonalSettings()
CTimeManUser::_GetSettings()
CTimeManUser::ClearCache()
CTimeManUser::isSocservEnabledByUser()
CTimeManUser::_cacheId()
CTimeManUser::_GetLastData($clear = false)
CTimeManUser::_ReopenGetActivity($entry_id)
CTimeManReport::CheckFields($action, &$arFields)
CTimeManReport::Add($arFields)
CTimeManReport::Update($ID, $arFields)
CTimeManReport::GetByID($ID)
CTimeManReport::GetList($arOrder = array(), $arFilter = array())
CTimeManReport::Reopen($ENTRY_ID)
CTimeManReport::Approve($ENTRY_ID)
CTimeMan::CanUse($bAdminAction = false)
CTimeMan::IsAdmin()
CTimeMan::GetRuntimeInfo($bFull = false)
CTimeMan::GetTaskTime($arParams)
CTimeMan::SetTaskTime($arParams)
CTimeMan::GetAccessSettings()
CTimeMan::GetAccess()
CTimeMan::GetDirectAccess($USER_ID = false)
CTimeMan::GetSectionPersonalSettings($section_id, $bHideParentLinks = false, $arNeededSettings = null)
CTimeMan::GetModuleSettings($arNeededSettings = false)
CTimeMan::GetSectionSettings($section_id, $arNeededSettings = null)
CTimeMan::_GetTreeSettings()
CTimeMan::RemoveHoursTS($ts)
CTimeMan::GetTimeTS($datetime, $bTS = false)
CTimeMan::FormatTime($ts, $bTS = false)
CTimeMan::FormatTimeOut($ts)
CTimeMan::MakeShortTS($time)
CTimeMan::ConvertShortTS($ts, $strDate = false)
CTimeMan::GetUserManagers($USER_ID, $bCheckExistance = true)
ITimeManCalendar::Add($arParams)
ITimeManCalendar::Get($arParams)
CTimeManCalendar::_Init()
CTimeManCalendar::Add($arParams)
CTimeManCalendar::Get($arParams)
_CTimeManCalendarNew::Add($arParams)
_CTimeManCalendarNew::Get($arParams)
_CTimeManCalendarOld::Add($arParams)
_CTimeManCalendarOld::Get($arParams)
CTimeManEntry::GetList($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array())
CTimeManEntry::_GetLastQuery($USER_ID)
CTimeManEntry::GetByID($ID)
CTimeManEntry::GetLast($USER_ID = false)
CTimeManEntry::CheckFields($action, &$arFields)
CTimeManEntry::Add($arFields)
CTimeManEntry::Update($ID, $arFields)
CTimeManEntry::GetFilterOperation($key)
CTimeManEntry::PrepareSql(&$arFields, $arOrder, &$arFilter, $arGroupBy, $arSelectFields, $obUserFieldsSql = false)
CTimeManEntry::Approve($ID, $check_rights = true)
CTimeManEntry::GetNeighbours($ENTRY_ID, $USER_ID, $bCheckActive = false)
CTimeManAdminReport::__construct($arParams)
CTimeManAdminReport::GetData()
CTimeManAdminReport::_checkAccess()
CTimeManAdminReport::_getUsersData(&$arUserIDs)
CTimeManAdminReport::_getDepartmentsData($arSections)
CTimeManAdminReport::_getNavData()
CTimeManAdminReport::__getFilter()
CTimeManAdminReport::__getUserRow($arRes, $prefix, $arFilter)
CTimeManNotify::SendMessage($ENTRY_ID, $SEND_TYPE = false)
CTimeManNotify::NotifyImNew($arEntry)
CTimeManNotify::NotifyImApprove($arEntry)
CTimeManNotify::OnFillSocNetAllowedSubscribeEntityTypes(&$arSocNetEntityTypes)
CTimeManNotify::OnFillSocNetLogEvents(&$arSocNetLogEvents)
CTimeManNotify::GetRights($USER_ID)
CTimeManNotify::GetByID($ID)
CTimeManNotify::GetForShow($arDesc)
CTimeManNotify::FormatEvent($arFields, $arParams, $bMail = false)
CTimeManNotify::FormatComment($arFields, $arParams, $bMail = false, $arLog = array())
CTimeManNotify::AddComment($arFields)
CTimeManNotify::AddCommentMessage($arFields, $FORUM_ID, $arLog)
CTimeManNotify::AddCommentToLog($arFields)
CTimeManNotify::AddCommentToIM($arFields)
CTimeManNotify::GetForum($arLog)
CTimeManNotify::OnAfterUserUpdate($arFields)
CTimeManReportDaily::GetList($arOrder = array(), $arFilter = array(), $arGroupBy = false, $arNavStartParams = false, $arSelectFields = array())
CTimeManReportDaily::CheckFields($action, &$arFields)
CTimeManReportDaily::Add($arFields)
CTimeManReportDaily::Update($ID, $arFields)
CTimeManReportDaily::GetByID($ID)
CTimeManReportDaily::GetFilterOperation($key)
CTimeManReportDaily::PrepareSql(&$arFields, $arOrder, &$arFilter, $arGroupBy, $arSelectFields, $obUserFieldsSql = false)
CTimeManReportDaily::SetActive($ENTRY_ID)
CTimeManReportDaily::Reopen($ENTRY_ID)
CTimeManReportFull::GetByID($ID)
CTimeManReportFull::GetList($arOrder = array(), $arFilter = array(),$arSelect = array(),$arNavStartParams = Array())
CTimeManReportFull::Update($ID, $arFields)
CTimeManReportFull::PrepareSql(&$arFields, $arOrder, &$arFilter, $arSelectFields = false, $arNavStartParams = false)
CTimeManReportFull::CheckFields($action, &$arFields)
CTimeManReportFull::Add($arFields)
CTimeManReportFull::SetPeriodSection($arFields)
CTimeManReportFull::__getReportJSDraw($arFields)
CTimeManReportFull::Delete($ID = false)
CUserReportFull::__construct($USER_ID = 0)
CUserReportFull::GetSettings($maketimestamp = false)
CUserReportFull::SetLastDate($USER_ID=false,$LastDate=false)
CUserReportFull::SetPeriod($arFields)
CUserReportFull::Recalc()
CUserReportFull::GetLastDate()
CUserReportFull::FixDateByHoliday($DATE_FROM = false, $DATE_TO = false)
CUserReportFull::getInfoCacheId($USER_ID)
CUserReportFull::GetReportInfo()
CUserReportFull::_GetReportInfo()
CUserReportFull::GetReportData($force = false)
CUserReportFull::GetEntityID($XML_ID = false,$entity_id = false)
CUserReportFull::CancelDelay()
CUserReportFull::Delay($time = 3600)
CReportSettings::getSettingsCacheId($USER_ID)
CReportSettings::GetUserSettings($USER_ID = false)
CReportSettings::GetSectionSettings($section_id, $maketimestamp = false)
CReportSettings::_GetTreeSettings()
CReportSettings::GetPeriodByID($ID,$ENTITY = "USER")
CReportNotifications::SendMessage($REPORT_ID, $bSendEvent = true)
CReportNotifications::NotifyIm($arReport)
CReportNotifications::Subscribe($USER_ID)
CReportNotifications::MessageUpdate($REPORT_ID, $arReport = array(), $arFields = array())
CReportNotifications::GetRights($USER_ID)
CReportNotifications::GetByID($ID)
CReportNotifications::GetForShow($arDesc)
CReportNotifications::OnFillSocNetAllowedSubscribeEntityTypes(&$arSocNetAllowedSubscribeEntityTypes)
CReportNotifications::AddEvent(&$arEvent)
CReportNotifications::FormatEvent($arFields, $arParams, $bMail = false)
CReportNotifications::FormatComment_Report($arFields, $arParams, $bMail = false, $arLog = array())
CReportNotifications::AddCommentToLog($arFields)
CReportNotifications::AddCommentToIM($arFields)
CReportNotifications::AddComment_Report($arFields)
CReportNotifications::AddComment_Report_Forum($arFields,$FORUM_ID,$arLog)
CReportNotifications::OnAfterUserUpdate($arFields)
ConvertTimeStampForReport($timestamp, $format = "FULL")
CTimemanNotifySchema::__construct()
CTimemanNotifySchema::OnGetNotifySchema()
Rest::onRestServiceBuildDescription()
Rest::getSettings($query, $n, \CRestServer $server)
Rest::getStatus($query, $n, \CRestServer $server)
Rest::pauseDay($query, $n, \CRestServer $server)
Rest::openDay($query, $n, \CRestServer $server)
Rest::closeDay($query, $n, \CRestServer $server)
Rest::prepareQuery(array $query)
Rest::getUserInstance(array $query)
Rest::checkUser($userId)
Rest::correctTimeOffset($offsetTo, &$timeInfo)
Rest::convertTimeToISO($ts, $date, $userOffset)
Rest::formatDateToISO($date, $userOffset)
Rest::formatTimeToISO($ts, $offset)
Rest::formatTime($ts)
Rest::convertTimeFromISO($isoTime)
Rest::setCurrentTimezoneOffset($offset)
Rest::setDayGeoPosition($entryId, $query, $action = 'open')
Rest::checkDate(array $timeInfo, $compareDate)
timeman::timeman()
timeman::InstallDB()
timeman::UnInstallDB($arParams = array())
timeman::InstallEvents()
timeman::UnInstallEvents()
timeman::InstallFiles()
timeman::UnInstallFiles()
timeman::DoInstall()
timeman::DoUninstall()
timeman::GetModuleTasks()