GetList
CDBResult CEventMessage::GetList( string &by="id", string &order="desc", array filter )
Returns the list of mail templates as the CDBResult instance. Static method.
Parameters
Parameter | Description |
---|---|
by |
Reference to the variable containing the sorting field. The following values are possible:
|
оrder |
Reference to the variable containing the sorting field. The following values are possible:
|
filter | this field may contain either an array for disjunctive searches or complex logic can be used
Array of the format array("filtered field"=>"value" [, ...]). The following values are possible:
|
See Also
Examples of use
<?
$arFilter = Array(
"ID" => "12 | 134",
"TYPE" => "contract & adv.",
"TYPE_ID" => array("ADV_BANNER", "ADV_CONTRACT"),
"TIMESTAMP_1" => "12.11.2001",
"TIMESTAMP_2" => "12.11.2005",
"SITE_ID" => "en",
"ACTIVE" => "Y",
"FROM" => "bitrix24.com",
"TO" => "#TO#",
"BCC" => "admin",
"SUBJECT" => "contract",
"BODY_TYPE" => "text",
"BODY" => "auto"
);
$rsMess = CEventMessage::GetList($by="site_id", $order="desc", $arFilter);
while($arMess = $rsMess->GetNext()) { var_dump($arMess); } ?>
© «Bitrix24», 2001-2024