• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/volume/base.php
  • Класс: Bitrix\Crm\Volume\Base
  • Вызов: Base::getTableList
public function getTableList()
{
	if (empty($this->tableList))
	{
		$this->tableList = array();

		self::loadTablesInformation();

		$entityList = static::getEntityList();

		foreach ($entityList as $entity)
		{
			try
			{
				$reflection = new \ReflectionClass($entity);
				if (
					!$reflection->isInterface() &&
					!$reflection->isAbstract() &&
					$reflection->isSubclassOf(ORM\Data\DataManager::class)
				)
				{
					/** @var ORM\Data\DataManager $entity */
					$this->tableList[] = $entity::getTableName();

					/** @var ORM\Data\DataManager $entity */
					$ufName = $entity::getUfId();
					if ($ufName != '')
					{
						$utmEntityTableName = 'b_utm_'.mb_strtolower($ufName);
						if (isset(self::$tablesInformation[$utmEntityTableName]))
						{
							$this->tableList[] = $utmEntityTableName;
						}

						$utsEntityTableName = 'b_uts_'.mb_strtolower($ufName);
						if (isset(self::$tablesInformation[$utsEntityTableName]))
						{
							$this->tableList[] = $utsEntityTableName;
						}
					}
				}
			}
			catch (\ReflectionException $exception)
			{
			}
		}
	}

	return $this->tableList;
}