CRubric::Add( $arFields );
The method Add is used to add a new mailing list.
Parameter | Description |
---|---|
$arFields | Associated array containing the keys and values of the Mailing list object fields. |
Returns the mailing list ID on success. In case of an error, it returns false and the class variable LAST_ERROR contains the error description.
$rubric = new CRubric; $arFields = Array( "ACTIVE" => ($ACTIVE <> "Y"? "N":"Y"), "NAME" => $NAME, "SORT" => $SORT, "DESCRIPTION" => $DESCRIPTION, "LID" => $LID ); $ID = $rubric->Add($arFields); if($ID == false) echo $rubric->LAST_ERROR;
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |