$communication[] = [
'TYPE' => $arPhone['TYPE_ID'],
'ENTITY_ID' => $arPhone['ELEMENT_ID'],
'ENTITY_TYPE_ID' => \CCrmOwnerType::Contact,
'VALUE' => $arPhone['VALUE'],
];
$now = new \DateTime();
while($result = $res->fetch())
{
$date = \DateTime::createFromFormat('d.m.Y H:i:s', $result['CLOSEDATE']);
$dayDiff = $date->diff($now)->format('%a');
if($dayDiff == 30) {
//делаем что-то
}
//добавляем js d header не в административной части
if (!ВАШ_NAMESPACE\Main::inBitrixDir()) {
CJSCore::Init('custom_js');
}
Array
(
[url] => https://bitrix.com/crm/local/test.php
[content_type] => text/html; charset=UTF-8
[http_code] => 200
[header_size] => 466
[request_size] => 167
[filetime] => -1
[ssl_verify_result] => 20
[redirect_count] => 0
[total_time] => 1.261676
[namelookup_time] => 0.001328
[connect_time] => 0.001477
[pretransfer_time] => 0.014196
[size_upload] => 30
[size_download] => 0
[speed_download] => 0
[speed_upload] => 23
[download_content_length] => 0
[upload_content_length] => 30
[starttransfer_time] => 1.261441
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 127.0.0.1
[certinfo] => Array
(
)
[primary_port] => 443
[local_ip] => 127.0.0.1
[local_port] => 50952
[http_version] => 2
[protocol] => 2
[ssl_verifyresult] => 0
[scheme] => HTTPS
0: {…}
BLOCKED:
CAN_EDIT:
CHANGED_AT:
COLOR_CODE:
CREATED_AT:
DATE:
DATE_STR:
DURING:
EVENT_CODE:
ID:
IS_IN_CKR:
IS_IN_NLMK:
ITEMS:
LINE_ID:
PLAN_TIME_END:
PLAN_TIME_START:
REQUESTS:
0: {…}
ID:
UF_CODE:
UF_COMPANY_ID:
UF_DESCRIPTION:
UF_SCHEDULE_ID:
BLOCKED:
CAN_EDIT:
CHANGED_AT:
COLOR_CODE:
CREATED_AT:
DATE:
DATE_STR:
DURING:
EVENT_CODE:
ID:
IS_IN_CKR:
IS_IN_NLMK:
ITEMS:
LINE_ID:
PLAN_TIME_END:
PLAN_TIME_START:
REQUESTS:
UF_COMPANY_ID:
UF_DESCRIPTION:
UF_SCHEDULE_ID:
<TableMainDay v-for="day in table.DAYS"
@scheck-Work="checkWork"
></TableMainDay>