Documentation

getList

public function Template::getList(
   params
) 

Method returns list of template IDs.

Parameters

Class Description Available from version
params Optional array with optional keys: select, filter, order and group. They contain table with main entity field values.

Example

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


© «Bitrix24», 2001-2024