• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/controller/key.php
  • Класс: BitrixBIConnectorControllerKey
  • Вызов: Key::listAction
public function listAction(
	array $order = [],
	array $filter = [],
	array $select = [],
	$offset = 0,
	$limit = 50,
	CRestServer $server = null
)
{
	$result = [];
	$appId = 0;
	if (!is_null($server))
	{
		$appId = $this->getAppId($server);
	}

	if ($appId > 0)
	{
		$filter = $this->prepareFilter($filter);
		$select = $this->prepareSelect($select);
		$filter['=APP_ID'] = $appId;

		$res = KeyTable::getList(
			[
				'order' => $order ?: [],
				'filter' => $filter,
				'select' => $select,
				'offset' => $offset,
				'limit' => $limit,
			]
		);
		while ($item = $res->fetch())
		{
			$result[] = $item;
		}
	}

	return $result;
}