1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Файл tools.php

См. исходные тексты.

Функции

 getmicrotime ()
 InputType ($strType, $strName, $strValue, $strCmp, $strPrintValue=false, $strPrint="", $field1="", $strId="")
 SelectBox ($strBoxName, $a, $strDetText="", $strSelectedVal="", $field1="class=\"typeselect\"")
 SelectBoxM ($strBoxName, $a, $arr, $strDetText="", $strDetText_selected=false, $size="5", $field1="class=\"typeselect\"")
 SelectBoxMFromArray ($strBoxName, $a, $arr, $strDetText="", $strDetText_selected=false, $size="5", $field1="class='typeselect'")
 SelectBoxFromArray ( $strBoxName, $db_array, $strSelectedVal="", $strDetText="", $field1="class='typeselect'", $go=false, $form="form1")
 Calendar ($fieldName, $formName="")
 CalendarDate ($fieldName, $value, $formName="", $size="10", $param="class=\"typeinput\"")
 CalendarPeriod ($sFromName, $sFromVal, $sToName, $sToVal, $sFormName="skform", $show_select="N", $field_select="class=\"typeselect\"", $field_input="class=\"typeinput\"", $size="10")
 CheckDateTime ($datetime, $format=false)
 GetNumMonth ($month)
 MakeTimeStamp ($datetime, $format=false)
 ParseDateTime ($datetime, $format=false)
 AddToTimeStamp ($arrAdd, $stmp=false)
 ConvertDateTime ($datetime, $to_format=false, $from_site=false, $bSearchInSitesOnly=false)
 ConvertTimeStamp ($timestamp=false, $type="SHORT", $site=false, $bSearchInSitesOnly=false)
 FmtDate ($str_date, $format=false, $site=false, $bSearchInSitesOnly=false)
 _FormatDateMessage ($value, $messages, ?string $languageId=null)
 IsAmPmMode ($returnConst=false)
 convertTimeToMilitary ($strTime, $fromFormat='H:MI T', $toFormat='HH:MI')
 FormatDate ($format="", $timestamp=false, $now=false, ?string $languageId=null)
 FormatDateEx ($strDate, $format=false, $new_format=false)
 FormatDateFromDB ($date, $format='FULL', $phpFormat=false)
 GetTime ($timestamp, $type="SHORT", $site=false, $bSearchInSitesOnly=false)
 AddTime ($stmp, $add, $type="D")
 ParseDate ($strDate, $format="dmy")
 MkDateTime ($strDT, $format="d.m.Y H:i:s")
 PHPFormatDateTime ($strDateTime, $format="d.m.Y H:i:s")
 DelDuplicateSort (&$arSort)
 array_convert_name_2_value ($arr)
 InitBVarFromArr ($arr)
 TrimArr (&$arr, $trim_value=false)
 is_set ($a, $k=false)
 randString ($pass_len=10, $pass_chars=false)
 GetRandomCode ($len=8)
 TruncateText ($strText, $intLen)
 InsertSpaces ($sText, $iMaxChar=80, $symbol=" ", $bHTML=false)
 TrimEx ($str, $symbol, $side="both")
 ToUpper ($str)
 ToLower ($str)
 PrepareTxtForEmail ($text, $lang=false, $convert_url_tag=true, $convert_image_tag=true)
 delete_special_symbols ($text, $replace="")
 convert_code_tag_for_html_before ($text="")
 convert_code_tag_for_html_after ($text='', $code_table_class='', $code_head_class='', $code_body_class='', $code_textarea_class='')
 convert_open_quote_tag ($quote_table_class, $quote_head_class, $quote_body_class)
 convert_close_quote_tag ()
 convert_quote_tag ($text='', $quote_table_class='', $quote_head_class='', $quote_body_class='')
 extract_url ($s)
 convert_to_href ($url, $link_class="", $event1="", $event2="", $event3="", $script="", $link_target="_self")
 convert_to_mailto ($s, $link_class="")
 TxtToHTML ( $str, $bMakeUrls=true, $iMaxStringLen=0, $QUOTE_ENABLED="N", $NOT_CONVERT_AMPERSAND="Y", $CODE_ENABLED="N", $BIU_ENABLED="N", $quote_table_class="quotetable", $quote_head_class="tdquotehead", $quote_body_class="tdquote", $code_table_class="codetable", $code_head_class="tdcodehead", $code_body_class="tdcodebody", $code_textarea_class="codetextarea", $link_class="txttohtmllink", $arUrlEvent=[], $link_target="_self")
 HTMLToTxt ($str, $strSiteUrl="", $aDelete=[], $maxlen=70)
 FormatText ($strText, $strTextType="text")
 htmlspecialcharsEx ($str)
 htmlspecialcharsback ($str)
 htmlspecialcharsbx ($string, $flags=ENT_COMPAT, $doubleEncode=true)
 CheckDirPath ($path)
 CopyDirFiles ($path_from, $path_to, $ReWrite=true, $Recursive=false, $bDeleteAfterCopy=false, $strExclude="")
 DeleteDirFilesEx ($path, $root=null)
 DeleteDirFiles ($frDir, $toDir, $arExept=[])
 RewriteFile ($abs_path, $strContent)
 GetScriptFileExt ()
 TrimUnsafe ($path)
 RemoveScriptExtension ($check_name)
 HasScriptExtension ($check_name)
 GetFileExtension ($path)
 GetFileNameWithoutExtension ($path)
 GetFileName ($path)
 IsFileUnsafe ($name)
 IsConfigFile (string $path)
 GetFileType ($path)
 GetDirectoryIndex ($path, $strDirIndex=false)
 GetDirIndex ($path, $strDirIndex=false)
 GetDirIndexArray ($strDirIndex=false)
 GetPagePath ($page=false, $get_index_page=null)
 GetRequestUri ()
 GetFileFromURL ($page, $get_index_page=null)
 GetDirPath ($sPath)
 bx_basename ($path, $ext="")
 bxstrrpos ($haystack, $needle)
 Rel2Abs ($curdir, $relpath)
 _normalizePath ($strPath)
 removeDocRoot ($path)
 GetMessageJS ($name, $aReplace=false)
 GetMessage ($name, $aReplace=null)
 HasMessage ($name)
 GetLangFileName ($before, $after, $lang=false)
 __IncludeLang ($path, $bReturnArray=false, $bFileChecked=false)
 IncludeTemplateLangFile ($filepath, $lang=false)
 IncludeModuleLangFile ($filepath, $lang=false, $bReturnArray=false)
 LangSubst ($lang)
 mydump ($thing, $maxdepth=-1, $depth=0)
 SendError ($error)
 AddMessage2Log ($text, $module='', $traceDepth=6, $showArgs=false)
 AddEventToStatFile ($module, $action, $tag, $label, $action_type='', $user_id=null)
 LocalRedirect ($url, $skip_security_check=false, $status="302 Found")
 WriteFinalMessage ($message="")
 FindUserID ($tag_name, $tag_value, $user_name="", $form_name="form1", $tag_size="3", $tag_maxlength="", $button_value="...", $tag_class="typeinput", $button_class="tablebodybutton", $search_page="/bitrix/admin/user_search.php")
 GetWhoisLink ($ip, $class='')
 IsIE ()
 GetCountryByID ($id, $lang=LANGUAGE_ID)
 GetCountryArray ($lang=LANGUAGE_ID)
 GetCountryIdByCode ($code)
 minimumPHPVersion ($vercheck)
 FormDecode ()
 QueryGetData ($SITE, $PORT, $PATH, $QUERY_STR, &$errno, &$errstr, $sMethod="GET", $sProto="", $sContentType='N')
 xmlize_xmldata ($data)
 xml_depth_xmldata ($vals, &$i)
 Help ($module="", $anchor="", $help_file="")
 InitBVar (&$var)
 init_get_params ($url)
 InitURLParam ($url=false)
 _ShowHtmlspec ($str)
 ShowNote ($strNote, $cls="notetext")
 ShowError ($strError, $cls="errortext")
 ShowMessage ($arMess)
 DeleteParam ($ParamNames)
 check_email ($email, $strict=false, $domainCheck=false)
 initvar ($varname, $value='')
 ClearVars ($prefix="str_")
 roundEx ($value, $prec=0)
 roundDB ($value, $len=18, $dec=4)
 bitrix_sessid ()
 bitrix_sessid_set ($val=false)
 bitrix_sessid_val ()
 bitrix_sess_sign ()
 check_bitrix_sessid ($varname='sessid')
 bitrix_sessid_get ($varname='sessid')
 bitrix_sessid_post ($varname='sessid', $returnInvocations=false)
 print_url ($strUrl, $strText, $sParams="")
 IncludeAJAX ()
 GetMenuTypes ($site=false, $default_value=false)
 SetMenuTypes ($armt, $site='', $description=false)
 ParseFileContent ($filesrc, $params=[])
 EscapePHPString ($str, $encloser='"')
 UnEscapePHPString ($str, $encloser='"')
 CheckSerializedData ($str, $max_depth=200)
 NormalizePhone ($number, $minLength=10)
 bxmail ($to, $subject, $message, $additional_headers="", $additional_parameters="", Main\Mail\Context $context=null)
 bx_accelerator_reset ()
 ini_get_bool ($param)
 sortByColumn (array &$array, $columns, $callbacks='', $defaultValueIfNotSetValue=null, $preserveKeys=false)
 getLocalPath ($path, $baseFolder="/bitrix")
 setSessionExpired ($pIsExpired=true)
 isSessionExpired ()
 ShowImage ($PICTURE_ID, $iMaxW=0, $iMaxH=0, $sParams=false, $strImageUrl="", $bPopup=false, $strPopupTitle=false, $iSizeWHTTP=0, $iSizeHHTTP=0)
 BXClearCache ($full=false, $initdir='')
 RegisterModule ($id)
 UnRegisterModule ($id)
 AddEventHandler ($FROM_MODULE_ID, $MESSAGE_ID, $CALLBACK, $SORT=100, $FULL_PATH=false)
 RemoveEventHandler ($FROM_MODULE_ID, $MESSAGE_ID, $iEventHandlerKey)
 GetModuleEvents ($MODULE_ID, $MESSAGE_ID, $bReturnArray=false)
 ExecuteModuleEvent ($arEvent)
 ExecuteModuleEventEx ($arEvent, $arParams=[])
 UnRegisterModuleDependences ($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS="", $TO_METHOD="", $TO_PATH="", $TO_METHOD_ARG=[])
 RegisterModuleDependences ($FROM_MODULE_ID, $MESSAGE_ID, $TO_MODULE_ID, $TO_CLASS="", $TO_METHOD="", $SORT=100, $TO_PATH="", $TO_METHOD_ARG=[])
 IsModuleInstalled ($module_id)
 GetModuleID ($str)
 CheckVersion ($version1, $version2)

Переменные

global $ALL_LANG_FILES = []
 $SHOWIMAGEFIRST = false

Функции

◆ __IncludeLang()

__IncludeLang ( $path,
$bReturnArray = false,
$bFileChecked = false )

См. определение в файле tools.php строка 3477

◆ _FormatDateMessage()

_FormatDateMessage ( $value,
$messages,
?string $languageId = null )
Аргументы
$value
$messages
string | null$languageId
Возвращает
string|null

См. определение в файле tools.php строка 766

◆ _normalizePath()

_normalizePath ( $strPath)

См. определение в файле tools.php строка 3341

◆ _ShowHtmlspec()

_ShowHtmlspec ( $str)

См. определение в файле tools.php строка 4469

◆ AddEventHandler()

AddEventHandler ( $FROM_MODULE_ID,
$MESSAGE_ID,
$CALLBACK,
$SORT = 100,
$FULL_PATH = false )

См. определение в файле tools.php строка 5165

◆ AddEventToStatFile()

AddEventToStatFile ( $module,
$action,
$tag,
$label,
$action_type = '',
$user_id = null )

См. определение в файле tools.php строка 3976

◆ AddMessage2Log()

AddMessage2Log ( $text,
$module = '',
$traceDepth = 6,
$showArgs = false )
Примеры
C:/bitrix/modules/learning/classes/general/clearnhelper.php.

См. определение в файле tools.php строка 3941

◆ AddTime()

AddTime ( $stmp,
$add,
$type = "D" )

См. определение в файле tools.php строка 1909

◆ AddToTimeStamp()

AddToTimeStamp ( $arrAdd,
$stmp = false )

Adds value to the date in timestamp

См. определение в файле tools.php строка 687

◆ array_convert_name_2_value()

array_convert_name_2_value ( $arr)

См. определение в файле tools.php строка 2084

◆ bitrix_sess_sign()

bitrix_sess_sign ( )

См. определение в файле tools.php строка 4681

◆ bitrix_sessid()

bitrix_sessid ( )

См. определение в файле tools.php строка 4656

◆ bitrix_sessid_get()

bitrix_sessid_get ( $varname = 'sessid')

См. определение в файле tools.php строка 4695

◆ bitrix_sessid_post()

bitrix_sessid_post ( $varname = 'sessid',
$returnInvocations = false )

См. определение в файле tools.php строка 4700

◆ bitrix_sessid_set()

bitrix_sessid_set ( $val = false)

См. определение в файле tools.php строка 4667

◆ bitrix_sessid_val()

bitrix_sessid_val ( )

См. определение в файле tools.php строка 4676

◆ bx_accelerator_reset()

bx_accelerator_reset ( )

См. определение в файле tools.php строка 5059

◆ bx_basename()

bx_basename ( $path,
$ext = "" )

См. определение в файле tools.php строка 3269

◆ BXClearCache()

BXClearCache ( $full = false,
$initdir = '' )

См. определение в файле tools.php строка 5150

◆ bxmail()

bxmail ( $to,
$subject,
$message,
$additional_headers = "",
$additional_parameters = "",
Main\Mail\Context $context = null )

См. определение в файле tools.php строка 4999

◆ bxstrrpos()

bxstrrpos ( $haystack,
$needle )
Примеры
C:/bitrix/modules/learning/classes/general/clearnhelper.php.

См. определение в файле tools.php строка 3292

◆ Calendar()

Calendar ( $fieldName,
$formName = "" )

См. определение в файле tools.php строка 291

◆ CalendarDate()

CalendarDate ( $fieldName,
$value,
$formName = "",
$size = "10",
$param = "class=\"typeinput\"" )

См. определение в файле tools.php строка 319

◆ CalendarPeriod()

CalendarPeriod ( $sFromName,
$sFromVal,
$sToName,
$sToVal,
$sFormName = "skform",
$show_select = "N",
$field_select = "class=\"typeselect\"",
$field_input = "class=\"typeinput\"",
$size = "10" )

См. определение в файле tools.php строка 329

◆ check_bitrix_sessid()

check_bitrix_sessid ( $varname = 'sessid')

См. определение в файле tools.php строка 4686

◆ check_email()

check_email ( $email,
$strict = false,
$domainCheck = false )

См. определение в файле tools.php строка 4571

◆ CheckDateTime()

CheckDateTime ( $datetime,
$format = false )

Checks date by format

См. определение в файле tools.php строка 398

◆ CheckDirPath()

CheckDirPath ( $path)
Примеры
C:/bitrix/modules/learning/classes/general/clearnhelper.php.

См. определение в файле tools.php строка 2707

◆ CheckSerializedData()

CheckSerializedData ( $str,
$max_depth = 200 )

См. определение в файле tools.php строка 4949

◆ CheckVersion()

CheckVersion ( $version1,
$version2 )

См. определение в файле tools.php строка 5319

◆ ClearVars()

ClearVars ( $prefix = "str_")

См. определение в файле tools.php строка 4623

◆ convert_close_quote_tag()

convert_close_quote_tag ( )

См. определение в файле tools.php строка 2376

◆ convert_code_tag_for_html_after()

convert_code_tag_for_html_after ( $text = '',
$code_table_class = '',
$code_head_class = '',
$code_body_class = '',
$code_textarea_class = '' )

См. определение в файле tools.php строка 2358

◆ convert_code_tag_for_html_before()

convert_code_tag_for_html_before ( $text = "")

См. определение в файле tools.php строка 2352

◆ convert_open_quote_tag()

convert_open_quote_tag ( $quote_table_class,
$quote_head_class,
$quote_body_class )

См. определение в файле tools.php строка 2369

◆ convert_quote_tag()

convert_quote_tag ( $text = '',
$quote_table_class = '',
$quote_head_class = '',
$quote_body_class = '' )

См. определение в файле tools.php строка 2388

◆ convert_to_href()

convert_to_href ( $url,
$link_class = "",
$event1 = "",
$event2 = "",
$event3 = "",
$script = "",
$link_target = "_self" )

См. определение в файле tools.php строка 2423

◆ convert_to_mailto()

convert_to_mailto ( $s,
$link_class = "" )

См. определение в файле tools.php строка 2435

◆ ConvertDateTime()

ConvertDateTime ( $datetime,
$to_format = false,
$from_site = false,
$bSearchInSitesOnly = false )

См. определение в файле tools.php строка 724

◆ ConvertTimeStamp()

ConvertTimeStamp ( $timestamp = false,
$type = "SHORT",
$site = false,
$bSearchInSitesOnly = false )

См. определение в файле tools.php строка 733

◆ convertTimeToMilitary()

convertTimeToMilitary ( $strTime,
$fromFormat = 'H:MI T',
$toFormat = 'HH:MI' )

См. определение в файле tools.php строка 820

◆ CopyDirFiles()

CopyDirFiles ( $path_from,
$path_to,
$ReWrite = true,
$Recursive = false,
$bDeleteAfterCopy = false,
$strExclude = "" )

См. определение в файле tools.php строка 2732

◆ DelDuplicateSort()

DelDuplicateSort ( & $arSort)

Array functions

Примеры
C:/bitrix/modules/learning/classes/general/clearnlesson.php.

См. определение в файле tools.php строка 2055

◆ delete_special_symbols()

delete_special_symbols ( $text,
$replace = "" )

См. определение в файле tools.php строка 2337

◆ DeleteDirFiles()

DeleteDirFiles ( $frDir,
$toDir,
$arExept = [] )

См. определение в файле tools.php строка 2874

◆ DeleteDirFilesEx()

DeleteDirFilesEx ( $path,
$root = null )

См. определение в файле tools.php строка 2823

◆ DeleteParam()

DeleteParam ( $ParamNames)

См. определение в файле tools.php строка 4548

◆ EscapePHPString()

EscapePHPString ( $str,
$encloser = '"' )

См. определение в файле tools.php строка 4917

◆ ExecuteModuleEvent()

ExecuteModuleEvent ( $arEvent)

См. определение в файле tools.php строка 5203

◆ ExecuteModuleEventEx()

ExecuteModuleEventEx ( $arEvent,
$arParams = [] )

◆ extract_url()

extract_url ( $s)

См. определение в файле tools.php строка 2411

◆ FindUserID()

FindUserID ( $tag_name,
$tag_value,
$user_name = "",
$form_name = "form1",
$tag_size = "3",
$tag_maxlength = "",
$button_value = "...",
$tag_class = "typeinput",
$button_class = "tablebodybutton",
$search_page = "/bitrix/admin/user_search.php" )

@global CMain $APPLICATION

См. определение в файле tools.php строка 4022

◆ FmtDate()

FmtDate ( $str_date,
$format = false,
$site = false,
$bSearchInSitesOnly = false )

Converts a date from site format to specified one

См. определение в файле tools.php строка 745

◆ FormatDate()

FormatDate ( $format = "",
$timestamp = false,
$now = false,
?string $languageId = null )
Аргументы
string | array$format
int | bool | Main\Type\Date$timestamp
int | bool | Main\Type\Date$now
string | null$languageId
Возвращает
string

См. определение в файле tools.php строка 871

◆ FormatDateEx()

FormatDateEx ( $strDate,
$format = false,
$new_format = false )

См. определение в файле tools.php строка 1598

◆ FormatDateFromDB()

FormatDateFromDB ( $date,
$format = 'FULL',
$phpFormat = false )

См. определение в файле tools.php строка 1875

◆ FormatText()

FormatText ( $strText,
$strTextType = "text" )

См. определение в файле tools.php строка 2675

◆ FormDecode()

FormDecode ( )

См. определение в файле tools.php строка 4212

◆ GetCountryArray()

GetCountryArray ( $lang = LANGUAGE_ID)

См. определение в файле tools.php строка 4132

◆ GetCountryByID()

GetCountryByID ( $id,
$lang = LANGUAGE_ID )

См. определение в файле tools.php строка 4126

◆ GetCountryIdByCode()

GetCountryIdByCode ( $code)

См. определение в файле tools.php строка 4175

◆ GetDirectoryIndex()

GetDirectoryIndex ( $path,
$strDirIndex = false )

См. определение в файле tools.php строка 3089

◆ GetDirIndex()

GetDirIndex ( $path,
$strDirIndex = false )

См. определение в файле tools.php строка 3094

◆ GetDirIndexArray()

GetDirIndexArray ( $strDirIndex = false)

См. определение в файле tools.php строка 3112

◆ GetDirPath()

GetDirPath ( $sPath)

См. определение в файле tools.php строка 3245

◆ GetFileExtension()

GetFileExtension ( $path)

См. определение в файле tools.php строка 2972

◆ GetFileFromURL()

GetFileFromURL ( $page,
$get_index_page = null )

См. определение в файле tools.php строка 3218

◆ GetFileName()

GetFileName ( $path)

См. определение в файле tools.php строка 3001

◆ GetFileNameWithoutExtension()

GetFileNameWithoutExtension ( $path)

См. определение в файле tools.php строка 2986

◆ GetFileType()

GetFileType ( $path)

См. определение в файле tools.php строка 3047

◆ GetLangFileName()

GetLangFileName ( $before,
$after,
$lang = false )

См. определение в файле tools.php строка 3428

◆ getLocalPath()

getLocalPath ( $path,
$baseFolder = "/bitrix" )

См. определение в файле tools.php строка 5092

◆ GetMenuTypes()

GetMenuTypes ( $site = false,
$default_value = false )

См. определение в файле tools.php строка 4728

◆ GetMessage()

GetMessage ( $name,
$aReplace = null )
Примеры
C:/bitrix/modules/learning/classes/general/clearnlesson.php.

См. определение в файле tools.php строка 3397

◆ GetMessageJS()

GetMessageJS ( $name,
$aReplace = false )

См. определение в файле tools.php строка 3392

◆ getmicrotime()

getmicrotime ( )
Возвращает
float

См. определение в файле tools.php строка 23

◆ GetModuleEvents()

GetModuleEvents ( $MODULE_ID,
$MESSAGE_ID,
$bReturnArray = false )

◆ GetModuleID()

GetModuleID ( $str)

См. определение в файле tools.php строка 5306

◆ GetNumMonth()

GetNumMonth ( $month)

Returns the number of a month

См. определение в файле tools.php строка 519

◆ GetPagePath()

GetPagePath ( $page = false,
$get_index_page = null )

См. определение в файле tools.php строка 3139

◆ GetRandomCode()

GetRandomCode ( $len = 8)

Alias for randString()

Аргументы
int$len
Возвращает
string

См. определение в файле tools.php строка 2180

◆ GetRequestUri()

GetRequestUri ( )

См. определение в файле tools.php строка 3192

◆ GetScriptFileExt()

GetScriptFileExt ( )

См. определение в файле tools.php строка 2912

◆ GetTime()

GetTime ( $timestamp,
$type = "SHORT",
$site = false,
$bSearchInSitesOnly = false )

См. определение в файле tools.php строка 1890

◆ GetWhoisLink()

GetWhoisLink ( $ip,
$class = '' )

См. определение в файле tools.php строка 4096

◆ HasMessage()

HasMessage ( $name)

См. определение в файле tools.php строка 3418

◆ HasScriptExtension()

HasScriptExtension ( $check_name)
Примеры
C:/bitrix/modules/learning/classes/general/clearnhelper.php.

См. определение в файле tools.php строка 2956

◆ Help()

Help ( $module = "",
$anchor = "",
$help_file = "" )

@global CMain $APPLICATION

См. определение в файле tools.php строка 4404

◆ htmlspecialcharsback()

htmlspecialcharsback ( $str)

См. определение в файле tools.php строка 2693

◆ htmlspecialcharsbx()

htmlspecialcharsbx ( $string,
$flags = ENT_COMPAT,
$doubleEncode = true )

См. определение в файле tools.php строка 2701

◆ htmlspecialcharsEx()

htmlspecialcharsEx ( $str)

См. определение в файле tools.php строка 2685

◆ HTMLToTxt()

HTMLToTxt ( $str,
$strSiteUrl = "",
$aDelete = [],
$maxlen = 70 )

См. определение в файле tools.php строка 2587

◆ IncludeAJAX()

IncludeAJAX ( )

@global CMain $APPLICATION

См. определение в файле tools.php строка 4719

◆ IncludeModuleLangFile()

IncludeModuleLangFile ( $filepath,
$lang = false,
$bReturnArray = false )

См. определение в файле tools.php строка 3778

◆ IncludeTemplateLangFile()

IncludeTemplateLangFile ( $filepath,
$lang = false )

См. определение в файле tools.php строка 3615

◆ ini_get_bool()

ini_get_bool ( $param)

См. определение в файле tools.php строка 5067

◆ init_get_params()

init_get_params ( $url)

См. определение в файле tools.php строка 4438

◆ InitBVar()

InitBVar ( & $var)

См. определение в файле tools.php строка 4433

◆ InitBVarFromArr()

InitBVarFromArr ( $arr)

См. определение в файле tools.php строка 2098

◆ InitURLParam()

InitURLParam ( $url = false)

См. определение в файле tools.php строка 4443

◆ initvar()

initvar ( $varname,
$value = '' )

См. определение в файле tools.php строка 4614

◆ InputType()

InputType ( $strType,
$strName,
$strValue,
$strCmp,
$strPrintValue = false,
$strPrint = "",
$field1 = "",
$strId = "" )

HTML form elements Returns HTML "input"

См. определение в файле tools.php строка 35

◆ InsertSpaces()

InsertSpaces ( $sText,
$iMaxChar = 80,
$symbol = " ",
$bHTML = false )

См. определение в файле tools.php строка 2197

◆ is_set()

is_set ( $a,
$k = false )

См. определение в файле tools.php строка 2133

◆ IsAmPmMode()

IsAmPmMode ( $returnConst = false)

См. определение в файле tools.php строка 803

◆ IsConfigFile()

IsConfigFile ( string $path)

См. определение в файле tools.php строка 3028

◆ IsFileUnsafe()

IsFileUnsafe ( $name)
Примеры
C:/bitrix/modules/learning/classes/general/clearnhelper.php.

См. определение в файле tools.php строка 3016

◆ IsIE()

IsIE ( )

См. определение в файле tools.php строка 4103

◆ IsModuleInstalled()

IsModuleInstalled ( $module_id)

См. определение в файле tools.php строка 5301

◆ isSessionExpired()

isSessionExpired ( )
Возвращает
bool

См. определение в файле tools.php строка 5138

◆ LangSubst()

LangSubst ( $lang)

См. определение в файле tools.php строка 3854

◆ LocalRedirect()

LocalRedirect ( $url,
$skip_security_check = false,
$status = "302 Found" )

См. определение в файле tools.php строка 4005

◆ MakeTimeStamp()

MakeTimeStamp ( $datetime,
$format = false )

Returns unix timestamp from date string

См. определение в файле tools.php строка 538

◆ minimumPHPVersion()

minimumPHPVersion ( $vercheck)

См. определение в файле tools.php строка 4198

◆ MkDateTime()

MkDateTime ( $strDT,
$format = "d.m.Y H:i:s" )

См. определение в файле tools.php строка 1977

◆ mydump()

mydump ( $thing,
$maxdepth = -1,
$depth = 0 )

См. определение в файле tools.php строка 3859

◆ NormalizePhone()

NormalizePhone ( $number,
$minLength = 10 )

См. определение в файле tools.php строка 4959

◆ ParseDate()

ParseDate ( $strDate,
$format = "dmy" )

См. определение в файле tools.php строка 1951

◆ ParseDateTime()

ParseDateTime ( $datetime,
$format = false )

Parse a date into an array

См. определение в файле tools.php строка 638

◆ ParseFileContent()

ParseFileContent ( $filesrc,
$params = [] )

См. определение в файле tools.php строка 4780

◆ PHPFormatDateTime()

PHPFormatDateTime ( $strDateTime,
$format = "d.m.Y H:i:s" )

См. определение в файле tools.php строка 2027

◆ PrepareTxtForEmail()

PrepareTxtForEmail ( $text,
$lang = false,
$convert_url_tag = true,
$convert_image_tag = true )

См. определение в файле tools.php строка 2262

◆ print_url()

print_url ( $strUrl,
$strText,
$sParams = "" )

См. определение в файле tools.php строка 4714

◆ QueryGetData()

QueryGetData ( $SITE,
$PORT,
$PATH,
$QUERY_STR,
& $errno,
& $errstr,
$sMethod = "GET",
$sProto = "",
$sContentType = 'N' )

См. определение в файле tools.php строка 4287

◆ randString()

randString ( $pass_len = 10,
$pass_chars = false )
Аргументы
int$pass_len
bool$pass_chars
Возвращает
string

См. определение в файле tools.php строка 2154

◆ RegisterModule()

RegisterModule ( $id)

См. определение в файле tools.php строка 5155

◆ RegisterModuleDependences()

RegisterModuleDependences ( $FROM_MODULE_ID,
$MESSAGE_ID,
$TO_MODULE_ID,
$TO_CLASS = "",
$TO_METHOD = "",
$SORT = 100,
$TO_PATH = "",
$TO_METHOD_ARG = [] )

См. определение в файле tools.php строка 5295

◆ Rel2Abs()

Rel2Abs ( $curdir,
$relpath )

См. определение в файле tools.php строка 3297

◆ removeDocRoot()

removeDocRoot ( $path)

См. определение в файле tools.php строка 3382

◆ RemoveEventHandler()

RemoveEventHandler ( $FROM_MODULE_ID,
$MESSAGE_ID,
$iEventHandlerKey )

См. определение в файле tools.php строка 5171

◆ RemoveScriptExtension()

RemoveScriptExtension ( $check_name)

См. определение в файле tools.php строка 2939

◆ RewriteFile()

RewriteFile ( $abs_path,
$strContent )

См. определение в файле tools.php строка 2895

◆ roundDB()

roundDB ( $value,
$len = 18,
$dec = 4 )

См. определение в файле tools.php строка 4641

◆ roundEx()

roundEx ( $value,
$prec = 0 )

См. определение в файле tools.php строка 4635

◆ SelectBox()

SelectBox ( $strBoxName,
$a,
$strDetText = "",
$strSelectedVal = "",
$field1 = "class=\"typeselect\"" )

Returns HTML "select"

Аргументы
string$strBoxNameInput name
CDBResult$aDB result with items
string$strDetTextEmpty item text
string$strSelectedValSelected item value
string$field1Additional attributes
Возвращает
string

См. определение в файле tools.php строка 77

◆ SelectBoxFromArray()

SelectBoxFromArray ( $strBoxName,
$db_array,
$strSelectedVal = "",
$strDetText = "",
$field1 = "class='typeselect'",
$go = false,
$form = "form1" )

Returns HTML "select" from array data

См. определение в файле tools.php строка 216

◆ SelectBoxM()

SelectBoxM ( $strBoxName,
$a,
$arr,
$strDetText = "",
$strDetText_selected = false,
$size = "5",
$field1 = "class=\"typeselect\"" )

Returns HTML multiple "select"

Аргументы
string$strBoxNameInput name
CDBResult$aDB result with items
array$arrSelected values
string$strDetTextEmpty item text
bool$strDetText_selectedAllow to choose an empty item
string$sizeSize attribute
string$field1Additional attributes
Возвращает
string

См. определение в файле tools.php строка 119

◆ SelectBoxMFromArray()

SelectBoxMFromArray ( $strBoxName,
$a,
$arr,
$strDetText = "",
$strDetText_selected = false,
$size = "5",
$field1 = "class='typeselect'" )

Returns HTML multiple "select" from array

Аргументы
string$strBoxNameInput name
array$aArray with items
array | false$arrSelected values
string$strDetTextEmpty item text
bool$strDetText_selectedAllow to choose an empty item
string$sizeSize attribute
string$field1Additional attributes
Возвращает
string

См. определение в файле tools.php строка 163

◆ SendError()

SendError ( $error)

См. определение в файле tools.php строка 3922

◆ SetMenuTypes()

SetMenuTypes ( $armt,
$site = '',
$description = false )

См. определение в файле tools.php строка 4775

◆ setSessionExpired()

setSessionExpired ( $pIsExpired = true)

Set session expired, e.g. if you want to destroy session after this hit

Аргументы
bool$pIsExpired

См. определение в файле tools.php строка 5130

◆ ShowError()

ShowError ( $strError,
$cls = "errortext" )

@global CMain $APPLICATION

См. определение в файле tools.php строка 4499

◆ ShowImage()

ShowImage ( $PICTURE_ID,
$iMaxW = 0,
$iMaxH = 0,
$sParams = false,
$strImageUrl = "",
$bPopup = false,
$strPopupTitle = false,
$iSizeWHTTP = 0,
$iSizeHHTTP = 0 )

См. определение в файле tools.php строка 5145

◆ ShowMessage()

ShowMessage ( $arMess)

@global CMain $APPLICATION

См. определение в файле tools.php строка 4521

◆ ShowNote()

ShowNote ( $strNote,
$cls = "notetext" )

@global CMain $APPLICATION

См. определение в файле tools.php строка 4477

◆ sortByColumn()

sortByColumn ( array & $array,
$columns,
$callbacks = '',
$defaultValueIfNotSetValue = null,
$preserveKeys = false )

Sorting array by column. You can use short mode: Collection::sortByColumn($arr, 'value'); This is equal Collection::sortByColumn($arr, array('value' => SORT_ASC))

Pay attention: if two members compare as equal, their relative order in the sorted array is undefined. The sorting is not stable.

More example: Collection::sortByColumn($arr, array('value' => array(SORT_NUMERIC, SORT_ASC), 'attr' => SORT_DESC), array('attr' => 'strlen'), 'www');

Аргументы
array$array
string | array$columns
string | array$callbacks
bool$preserveKeysIf false numeric keys will be re-indexed. If true - preserve.
null$defaultValueIfNotSetValueIf value not set - use $defaultValueIfNotSetValue (any cols)

См. определение в файле tools.php строка 5087

◆ ToLower()

ToLower ( $str)
Аргументы
$str
Возвращает
string

См. определение в файле tools.php строка 2257

◆ ToUpper()

ToUpper ( $str)
Аргументы
$str
Возвращает
string

См. определение в файле tools.php строка 2247

◆ TrimArr()

TrimArr ( & $arr,
$trim_value = false )

См. определение в файле tools.php строка 2110

◆ TrimEx()

TrimEx ( $str,
$symbol,
$side = "both" )
Аргументы
$str
$symbol
$side
Возвращает
string

См. определение в файле tools.php строка 2222

◆ TrimUnsafe()

TrimUnsafe ( $path)

См. определение в файле tools.php строка 2934

◆ TruncateText()

TruncateText ( $strText,
$intLen )

См. определение в файле tools.php строка 2185

◆ TxtToHTML()

TxtToHTML ( $str,
$bMakeUrls = true,
$iMaxStringLen = 0,
$QUOTE_ENABLED = "N",
$NOT_CONVERT_AMPERSAND = "Y",
$CODE_ENABLED = "N",
$BIU_ENABLED = "N",
$quote_table_class = "quotetable",
$quote_head_class = "tdquotehead",
$quote_body_class = "tdquote",
$code_table_class = "codetable",
$code_head_class = "tdcodehead",
$code_body_class = "tdcodebody",
$code_textarea_class = "codetextarea",
$link_class = "txttohtmllink",
$arUrlEvent = [],
$link_target = "_self" )

См. определение в файле tools.php строка 2442

◆ UnEscapePHPString()

UnEscapePHPString ( $str,
$encloser = '"' )

См. определение в файле tools.php строка 4933

◆ UnRegisterModule()

UnRegisterModule ( $id)

См. определение в файле tools.php строка 5160

◆ UnRegisterModuleDependences()

UnRegisterModuleDependences ( $FROM_MODULE_ID,
$MESSAGE_ID,
$TO_MODULE_ID,
$TO_CLASS = "",
$TO_METHOD = "",
$TO_PATH = "",
$TO_METHOD_ARG = [] )

См. определение в файле tools.php строка 5289

◆ WriteFinalMessage()

WriteFinalMessage ( $message = "")

См. определение в файле tools.php строка 4016

◆ xml_depth_xmldata()

xml_depth_xmldata ( $vals,
& $i )

См. определение в файле tools.php строка 4333

◆ xmlize_xmldata()

xmlize_xmldata ( $data)

См. определение в файле tools.php строка 4306

Переменные

◆ $ALL_LANG_FILES

$ALL_LANG_FILES = []

См. определение в файле tools.php строка 3424

◆ $SHOWIMAGEFIRST

$SHOWIMAGEFIRST = false

См. определение в файле tools.php строка 5143