GetList
CSite::GetList( string &by = "sort", string &order = "asc", array filter = array() )
The method returns the list of sites as an object of CLangDBResult class. Static method.
Parameters
Parameter | Description |
---|---|
by | Specifies the field for sorting. The following values are possible:
|
оrder | Sorting order. The following values are possible:
|
filter | An array of the array("filtered field"=>"value" [, ...]) format. "Filtered field" can have the following values:
|
See Also
Examples of use
<? $rsSites = CSite::GetList($by="sort", $order="desc", Array("NAME" => "www.mysite.com")); while ($arSite = $rsSites->Fetch()) { echo "<pre>"; print_r($arSite); echo "</pre>"; } ?>
© «Bitrix24», 2001-2024