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

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


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

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

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

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

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

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

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

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

СобытиеВызывается
OnCityLookupCCity::GetHandler

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

КонстантаПроверяется
NO_AGENT_STATISTICCStatistics::SetNewDay
ADMIN_SECTIONCStatistics::SetNewDayForSite
BX_STATISTIC_BUFFER_USEDCStatistics::EndBuffer
SITE_IDCStoplist::Check
STATISTIC_SKIP_ACTIVITY_CHECKCStatistics::BlockVisitorActivity
STOP_STATISTICSCKeepStatistics::Keep
NO_KEEP_STATISTICCKeepStatistics::Keep
GENERATE_EVENTCKeepStatistics::ReallyKeep

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

Метод
CheckFDate($date, $mess)
SetNoKeepStatistics()
i2c_create_db(N/A)
i2c_load_countries(N/A)
ip2number($dotted)
ip2address($ip_number)
i2c_get_country($ip=false)
i2c_search_in_index($ip, $idx_name = IP_IDX_FILENAME)
i2c_search_in_db($ip, $idx, $db_name=IP_DB_FILENAME)
get_realip()
__GoogleAd($set_new_adv=false, $r1=false, $r2=false, $s="http://pagead2.googlesyndication.com/")
__GetReferringSite(N/A)
__SetReferer($referer, $syn)
__SetNoKeepStatistics()
__SortLinkStat($ar1, $ar2)
__IsHiddenLink($link)
__ModifyATags($matches)
GetCookieString($arrCookie=false)
__GetCurrentPage()
__GetCurrentDir()
__GetPage($page=false, $with_imp_params=true, $curdir=false)
__GetFullCurPage($page=false, $with_imp_params=true)
__GetFullReferer($referer=false)
__GetFullRequestUri($url=false, $host=false, $port=false, $protocol=false)
GetStatisticBaseCurrency()
CleanUpResultCsv(&$item)
PrepareResultQuotes(&$item)
LoadEventsBySteps(N/A)
GetStatPathID($URL, $PREV_PATH_ID="")
stat_session_register($var_name)
get_guest_md5()
GetEventSiteID()
GetStatGroupSiteID()
SendDailyStatistics()
crc32ex($s)
AdminListCheckDate(&$lAdmin, $arDates)
StatAdminListFormatURL($url, $arOptions = array())
is_utf8_url($url)
CStatisticSort::__construct($field = "")
CStatisticSort::Sort(&$ar, $field)
CStatisticSort::Compare($ar1, $ar2)
CStatistics::GetAdvGuestHost($ADV_ID, $GUEST_ID, $IP_NUMBER, $BACK="")
CStatistics::StartBuffer()
CStatistics::EndBuffer()
CStatistics::DBDateCompare($FIELD_NAME, $DATE=false, $DATE_FORMAT="SHORT")
CStatistics::CleanUpStatistics_1()
CStatistics::CleanUpStatistics_2()
CStatistics::OnSearch($search_phrase)
CStatistics::Update_Adv()
CStatistics::Set_Adv()
CStatistics::Set_Guest()
CStatistics::BlockVisitorActivity()
CStatistics::GetAuditTypes()
CStatistics::Set404($table = false, $where = false, $arrUpdate = false)
CStatistics::CleanUp($cleanup_date="", &$arErrors)
CStatistics::RecountBaseCurrency($new_base_currency)
CStatistics::GetEventParam($site_id = false)
CStatistics::Set_Event($event1, $event2 = "", $event3 = "", $goto = "", $money = "", $currency = "", $chargeback = "N", $site_id = false)
CStatistics::CheckForDDL()
CStatistics::GetDDL()
CStatistics::ExecuteDDL($ID)
CStatistic::Stoplist($test="N") { return CStopList::Check($test)
CStatistic::KeepStatistic($HANDLE_CALL=false) { CStatistics::Keep($HANDLE_CALL)
CTraffic::DynamicDays($date1="", $date2="", $site_id="")
CTraffic::DecParam($arParam, $arParamSite=false, $SITE_ID=false, $DATE=false, $DATE_FORMAT="FULL")
CTraffic::IncParam($arParam, $arParamSite=false, $SITE_ID=false, $DATE=false, $DATE_FORMAT="FULL", $SIGN="+")
CStatEventType::Delete($ID, $DELETE_EVENT="Y")
CStatEventType::GetGraphArray($arFilter, &$arrLegend)
CStatEventType::ConditionSet($event1, $event2, &$arEventType)
CStatEventType::GetByEvents($event1, $event2)
CStatEventType::DynamicDays($EVENT_ID, $date1="", $date2="")
CStatEventType::CheckFields($arFields, $ID)
CHit::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CHit::GetByID($ID)
CStatEvent::GetGID($site_id=false)
CStatEvent::AddCurrent($event1, $event2="", $event3="", $money="", $currency="", $goto="", $chargeback="N", $site_id=false)
CStatEvent::AddByID($EVENT_ID, $EVENT3, $DATE_ENTER, $PARAM, $MONEY="", $CURRENCY="", $CHARGEBACK="N")
CStatEvent::AddByEvents($EVENT1, $EVENT2, $EVENT3, $DATE_ENTER, $PARAM, $MONEY="", $CURRENCY="", $CHARGEBACK="N")
CStatEvent::GetHandlerList(&$arUSER_HANDLERS)
CStatEvent::DecodeGID($EVENT_GID)
CStatEvent::SetEventType($event1, $event2, &$arEventType)
CStatEvent::GetByEvents($event1, $event2)
CStatEvent::GetEventsByGuest($GUEST_ID, $EVENT_ID=false, $EVENT3=false, $SEC=false)
CStatEvent::GetListUniqueCheck($arFilter=Array(), $LIMIT=1)
CPhrase::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered, &$total, &$grby, &$max)
CStopList::GetByID($STOPLIST_ID)
CStopList::CheckFields($ID, &$arFields)
CStopList::Add($arFields)
CStopList::Update($ID, $arFields)
CStopList::SetActive($ID, $active = "N")
CStopList::Delete($ID)
CStopList::CleanCache()
CCountry::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CCountry::GetGraphArray($arFilter, &$arLegend)
CSearcherHit::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CGuest::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CGuest::GetByID($ID)
CPath::GetList($PARENT_ID="", $COUNTER_TYPE="COUNTER_FULL_PATH", &$by, &$order, $arFilter=Array(), &$is_filtered)
CPath::GetByID($ID)
CStatResult::Fetch()
CCityLookup::__construct($arDBRecord = /*.(array[string]string).*/array())
CCityLookup::OnCityLookup($arDBRecord = /*.(array[string]string).*/array())
CCityLookup::ArrayForDB()
CCityLookup::GetFullInfo()
CCityLookup::GetDescription()
CCityLookup::IsInstalled()
CCityLookup::Lookup()
CStatRegion::GetList($arOrder = /*.(array[string]string).*/array(), $arFilter = /*.(array[string]string).*/array())
CCity::__construct($dbRecord = "")
CCity::GetList($arOrder = /*.(array[string]string).*/array(), $arFilter = /*.(array[string]string).*/array())
CCity::ForSQL()
CCity::GetFullInfo()
CCity::GetHandler()
CCity::GetCountryCode()
CCity::Recode($str)
CCity::GetCityID()
CCity::GetGraphArray($arFilter, &$arLegend, $sort = false, $top = 0)
CCity::FindFiles($type = 'country', $path = '/bitrix/modules/statistic/ip2country')
CCity::GetCSVFormatType($fp)
CCity::ResolveIPRange($newStartIP, $newEndIP)
CCity::LoadCSV($file_name, $step, &$file_position)
CSearcher::DynamicDays($SEARCHER_ID, $date1="", $date2="")
CSearcher::GetGraphArray($arFilter, &$arrLegend)
CSearcher::GetDomainList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CSearcher::GetByID($ID)
CKeepStatistics::GetCuurentHitID()
CKeepStatistics::CheckSkip()
CKeepStatistics::Keep($HANDLE_CALL=false)
CKeepStatistics::ReallyKeep()
CKeepStatistics::RestoreSession()
CKeepStatistics::UpdateCountry($COUNTRY_ID, $arFields, $DATE=false, $DATE_FORMAT="SHORT", $SIGN="+")
CKeepStatistics::UpdateCity($CITY_ID, $arFields, $DATE=false, $DATE_FORMAT="SHORT", $SIGN="+")
CKeepStatistics::SavePathData($SITE_ID, $CURRENT_PAGE, $ERROR_404)
CKeepStatistics::SaveVisits($sql_site, $SESSION_NEW, $CURRENT_DIR, $CURRENT_PAGE, $ERROR_404)
CKeepStatistics::GetRefererListID($PROT, $SN, $PAGE_FROM, $CURRENT_URI, $ERROR_404, $sql_site)
CReferer::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered, &$total, &$grby, &$max)
CAdv::SetByReferer($referer1, $referer2, &$arrADV, &$ref1, &$ref2)
CAdv::SetByPage($page, &$arrADV, &$ref1, &$ref2, $type="TO")
CAdv::GetAnalysisGraphArray($arFilter, &$is_filtered, $DATA_TYPE="SESSION_SUMMA", &$arrLegend, &$summa, &$max)
CAdv::Delete($ID)
CAdv::Reset($ID)
CAdv::DynamicDays($ADV_ID, $date1="", $date2="")
CStatistics::CleanUpTableByDate($cleanup_date, $table_name, $date_name)
CStatistics::GetSessionDataByMD5($GUEST_MD5)
CStatistics::CleanUpPathDynamic()
CStatistics::CleanUpPathCache()
CStatistics::CleanUpSessionData()
CStatistics::CleanUpSearcherDynamic()
CStatistics::CleanUpEventDynamic()
CStatistics::CleanUpAdvDynamic()
CStatistics::CleanUpPhrases()
CStatistics::CleanUpRefererList()
CStatistics::CleanUpReferer()
CStatistics::CleanUpVisits()
CStatistics::CleanUpCities()
CStatistics::CleanUpCountries()
CStatistics::CleanUpGuests()
CStatistics::CleanUpSessions()
CStatistics::CleanUpHits()
CStatistics::CleanUpSearcherHits()
CStatistics::CleanUpAdvGuests()
CStatistics::CleanUpEvents()
CStatistics::SetNewDayForSite($SITE_ID=false, $HOSTS=0, $TOTAL_HOSTS=0, $SESSIONS=0, $HITS=0)
CStatistics::SetNewDay($HOSTS=0, $TOTAL_HOSTS=0, $SESSIONS=0, $HITS=0, $NEW_GUESTS=0, $GUESTS=0, $FAVORITES=0)
CStatistics::DBDateAdd($date, $days=1)
CStatistics::DBTopSql($strSql, $nTopCount=false)
CStatistics::DBFirstDate($strSql)
CStatistics::DBDateDiff($date1, $date2)
CTraffic::GetSumList($DATA_TYPE, $arFilter=Array())
CTraffic::GetDailyList(&$by, &$order, &$arMaxMin, $arFilter=Array(), &$is_filtered, $get_maxmin="Y")
CTraffic::GetCommonValues($arFilter=Array(), $bIgnoreErrors=false)
CTraffic::GetRefererList(&$by, &$order, $arFilter=Array(), &$is_filtered, $limit=10)
CTraffic::GetPhraseList(&$s_by, &$s_order, $arFilter=Array(), &$is_filtered, $limit=10)
CPage::GetDynamicList($URL, &$by, &$order, $arFilter=Array())
CPage::GetList($COUNTER_TYPE, &$by, &$order, $arFilter=Array(), &$is_filtered)
CStatEventType::GetByID($ID)
CStatEventType::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered, $LIMIT=false)
CStatEventType::GetSimpleList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CStatEventType::GetDropDownList($strSqlOrder="ORDER BY EVENT1, EVENT2")
CStatEventType::GetDynamicList($EVENT_ID, &$by, &$order, &$arMaxMin, $arFilter=Array())
CStatEventType::GetGraphArray_SQL($strSqlSearch)
CStatEvent::GetListByGuest($GUEST_ID, $EVENT_ID=false, $EVENT3=false, $SEC=false)
CStatEvent::Add($EVENT_ID, $EVENT3, $DATE_ENTER, $PARAM, $MONEY="", $CURRENCY="", $CHARGEBACK="N")
CStatEvent::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CStatEvent::Delete($ID)
CStoplist::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CStoplist::Check($test="N", $arParams = false)
CGuest::GetLastByID($ID)
CUserOnline::GetGuestCount()
CUserOnline::GetList(&$guest_count, &$session_count, $arOrder=Array(), $arFilter=Array())
CSearcher::GetGraphArray_SQL($strSqlSearch)
CSearcher::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered, $LIMIT=false)
CSearcher::GetDropDownList($strSqlOrder="ORDER BY NAME, ID")
CSearcher::GetDynamicList($SEARCHER_ID, &$by, &$order, &$arMaxMin, $arFilter=Array())
CSession::GetAttentiveness($DATE_STAT, $SITE_ID=false)
CSession::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CSession::GetByID($ID)
CAutoDetect::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered)
CAdv::GetAnalysisGraphArray_SQL($strSqlSearch, $DATA_TYPE)
CAdv::GetList(&$by, &$order, $arFilter=Array(), &$is_filtered, $limit="", &$arrGROUP_DAYS, &$strSql_res)
CAdv::GetByID($ID)
CAdv::GetEventList($ID, &$by, &$order, $arFilter=Array(), &$is_filtered)
CAdv::GetEventListByReferer($value, $arFilter)
CAdv::GetDynamicList($ADV_ID, &$by, &$order, &$arMaxMin, $arFilter=Array())
CAdv::GetDropDownList($strSqlOrder="ORDER BY REFERER1, REFERER2")
CAdv::GetSimpleList(&$by, &$order, $arFilter=Array(), &$is_filtered)
statistic::statistic()
statistic::InstallDB($arParams = array())
statistic::UnInstallDB($arParams = array())
statistic::InstallEvents()
statistic::UnInstallEvents()
statistic::InstallFiles()
statistic::UnInstallFiles()
statistic::DoInstall()
statistic::DoUninstall()
statistic::GetModuleRightList()
statistic::OnGetTableList()