Task::getForwardedFields

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. Task
  4. getForwardedFields
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/runtime/task.php
  • Класс: BitrixTasksInternalsRunTimeTask
  • Вызов: Task::getForwardedFields
static function getForwardedFields()
{
	static $fields = null;

	if($fields === null)
	{
		$map = TaskTable::getMap();
		foreach($map as $k => $v)
		{
			if($v instanceof EntityScalarField)
			{
				$fields[$v->getName()] = true;
			}
			elseif (is_array($v))
			{
				$type = $v['data_type'];
				if($type == 'integer' || $type == 'string' || $type == 'boolean' || $type == 'datetime')
				{
					$fields[$k] = true;
				}
			}
		}
	}

	return $fields;
}

Добавить комментарий