Documentation

getList

Attention! We strongly recommend first to learn more about Sites module REST documentation to understand how the module functions (with REST available in Bitrix24 Self-hosted editions). View this documentation as useful source when working with Bitrix24 Self-hosted editions and when you want to learn more about API.

Site::getList(
   $fields
);

Gets list of sites.

Parameters

Class Description Available from version
fields Array of ORM parameters

Example

if (\Bitrix\Main\Loader::includeModule('landing'))
{
   $res = \Bitrix\Landing\Site::getList([
      'select' => [
         'ID', 'TITLE'
      ],
   ]);
   while ($row = $res->fetch())
   {
      print_r($row);
   }
}


© «Bitrix24», 2001-2024
Up