Documentation

BX.util

Collection of utility functions.

Function Description Available from version
BX.util.array_values()
BX.util.array_keys()
BX.util.array_merge()
BX.util.array_unique()
BX.util.in_array()
BX.util.array_search()
BX.util.trim()
BX.util.htmlspecialchars()
BX.util.htmlspecialcharsback()
BX.utill.preg_quote()
BX.util.str_pad()
BX.util.strip_tags()
Analogues of PHP functions.
BX.util.urlencode()Encodes via encodeURIComponent, which leads to incorrect decoding at the non-UTF sites. To correctly receive data, encoded this way, the following CUtil::JSPostUnescape function must be executed at the server. This function decodes global arrays $_GET, $_POST and $_REQUEST.
Array 
BX.util.deleteFromArray(
 array arr,
 int index
);
Deleting an element from the array with the subsequent shift of keys.
Array 
BX.util.insertIntoArray(
 array arr,
 int index
);
Insertion of an element in the array with subsequent shift of keys.
BX.util.popup(
 string url,
 int width,
 int height
);
Display of popup, positioned at the centre.
© «Bitrix24», 2001-2024
Up