CRubric::Update( $ID, $arFields );
The method Update updates the mailing list.
Parameter | Description |
---|---|
$ID | The mailing list ID. |
$arFields | Associated array containing keys and values of the Mailing list object fields. |
Returns true 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 ); if($ID>0) { if(!$rubric->Update($ID, $arFields)) echo $rubric->LAST_ERROR; }
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |