API docs     >     Pages and Sites     >     Sites

Sites->getList

Description

getList ( $skipPermissions = false )
Gets a list of all Sites

Parameters

$skipPermissions
bool
(optional) TRUE if no permissions should be checked

Returns

array|bool
Array of Site names with Ids
  1. Array(                          array Array of n Sites
  2.     [0] => Array(
  3.         [ID] => 2               int Id
  4.         [NAME] => 'Homepage'    string Name
  5.         [DEFAULTTEMPLATE] => 2  int Default Template
  6.         [TEMPLATEROOT] => 0     int Template Id
  7.         [PNAME] => 'Homepage'   string Permanent name
  8.         [FAVICON] => 0          int File Id
  9.     )
  10.     ...
  11. )