1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
tools.php
См. документацию.
1
<?php
2
class
CSupportTools
3
{
4
static
$speedArray
=
array
();
5
6
static
function
PrepareParamArray
($param,
$res
=
array
())
7
{
8
if
(is_string($param) && $param <>
''
)
9
{
10
$res
= explode(
","
, $param);
11
foreach
(
$res
as
$k
=> $v )
$res
[
$k
] = trim($v);
12
}
13
elseif
(is_array($param) &&
count
($param) > 0)
$res
= $param;
14
elseif
(is_int($param))
$res
=
array
($param);
15
return
$res
;
16
}
17
18
// $more0 = "strlen || count || intval"
19
static
function
array_keys_exists
(
$key
,
$arr
, $more0 =
""
, $andOr =
"&&"
)
20
{
21
$arrKeys = self::prepareParamArray(
$key
);
22
$arrMore0 = self::prepareParamArray($more0);
23
$res
=
true
;
24
foreach
($arrKeys as
$k
=> $v)
25
{
26
$resC = (is_array(
$arr
) && array_key_exists($v,
$arr
)
27
&& (!in_array(
"strlen"
, $arrMore0) || (string)
$arr
[$v] <>
''
)
28
&& (!in_array(
"count"
, $arrMore0) || ( is_array(
$arr
[$v]) &&
count
(
$arr
[$v] ) > 0))
29
&& (!in_array(
"intval"
, $arrMore0) || intval(
$arr
[$v]) > 0)
30
);
31
if
($andOr ==
"||"
)
$res
= (
$res
|| $resC);
32
elseif
(!$resC)
return
false
;
33
}
34
return
$res
;
35
}
36
37
}
38
39
40
?>
CSupportTools
Определения
tools.php:3
CSupportTools\$speedArray
static $speedArray
Определения
tools.php:4
CSupportTools\PrepareParamArray
static PrepareParamArray($param, $res=array())
Определения
tools.php:6
CSupportTools\array_keys_exists
static array_keys_exists($key, $arr, $more0="", $andOr="&&")
Определения
tools.php:19
$arr
$arr
Определения
file_new.php:624
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$res
$res
Определения
filter_act.php:7
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$key
if(empty($signedUserToken)) $key
Определения
quickway.php:257
count
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"
Определения
waybill.php:936
$k
$k
Определения
template_pdf.php:567
bitrix
modules
support
classes
general
tools.php
Создано системой
1.14.0