403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/activities/bitrix/getuserinfoactivity/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/activities/bitrix/getuserinfoactivity/.description.php
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true)
{
	die();
}

use Bitrix\Main\Localization\Loc;

$arActivityDescription = [
	'NAME' => Loc::getMessage('BPGUIA_DESCR_NAME_1'),
	'DESCRIPTION' => Loc::getMessage('BPGUIA_DESCR_DESCR_MSGVER_1'),
	'TYPE' => ['activity', 'robot_activity'],
	'CLASS' => 'GetUserInfoActivity',
	'JSCLASS' => 'BizProcActivity',
	'CATEGORY' => [
		'ID' => 'other',
	],
	'ROBOT_SETTINGS' => [
		'CATEGORY' => 'employee',
		'GROUP' => ['other'],
		'SORT' => 3400,
		'IS_SUPPORTING_ROBOT' => true,
	],
	'RETURN' => [],
];

$userService = CBPRuntime::getRuntime()->getUserService();
foreach ($userService->getUserBaseFields() as $key => $property)
{
	$arActivityDescription['RETURN']['USER_' . $key] = array_change_key_case($property, CASE_UPPER);
}
// compatibility
$arActivityDescription['RETURN']['IS_ABSENT'] = [
	'NAME' => Loc::getMessage('BPGUIA_DESCR_IS_ABSENT'),
	'TYPE' => 'bool',
];
$arActivityDescription['RETURN']['TIMEMAN_STATUS'] = [
	'NAME' => Loc::getMessage('BPGUIA_DESCR_TIMEMAN_STATUS'),
	'TYPE' => 'string',
];

foreach ($userService->getUserExtendedFields() as $key => $property)
{
	if ($key === 'UF_DEPARTMENT')
	{
		unset($arActivityDescription['RETURN']['USER_UF_DEPARTMENT']);
		$key = 'USER_UF_DEPARTMENT';
	}

	$arActivityDescription['RETURN'][$key] = array_change_key_case($property, CASE_UPPER);
}

Youez - 2016 - github.com/yon3zu
LinuXploit