Documentation

Update

CDBResult
CEventType::Update(
 array ID,
 array fields
)

The method updates parameters of mail event type. An object of CDBResult class is returned. In case of an error, the method returns false, and the LAST_ERROR property of the object will contain description of the error. Static method.

Parameters

ParameterDescription
ID Array of mail event IDs, which must be updated. The following is permissible to be used in the array:
  • ID - mail event type ID;
  • LID - site ID;
  • EVENT_NAME - mail event ID.
fields Array of field values in the array("field"=>"value" [, ...]) format. В качестве "полей" допустимо использовать:
  • LID - site ID;
  • EVENT_NAME - mail event type ID;
  • NAME - header of mail event type;
  • DESCRIPTION - description that specifies fields of the mail event type.

See Also

Examples

$arType = array( 
    "SORT" => $_POST["SORT"], 
    "NAME" => $_POST["NAME"], 
    "DESCRIPTION" => $_POST["DESCRIPTION"], 
    "LID" => $_POST["LID"], 
    "EVENT_NAME" => $_POST["EVENT_NAME"], 
); 
CEventType::Update(array("ID" => $_POST["ID"]), $arType);


© «Bitrix24», 2001-2024