Documentation

Delete

mixed
CRubric::Delete(
    int ID
);

Method deletes a newsletter. Non-static method.

Note. Method uses an internal transaction. If you use MySQL and InnoDB and you have a previously opened transaction, you must close it before connecting the method.

Parameters

ParameterDescriptionAvailable from version
IDNewsletter ID.

Returned values

On successful deleting, returns a CDBResult result. Otherwise returns false.

Example

if (($res = CRubric::Delete($ID)) &&
     $res->AffectedRowsCount() < 1 ||
     $res == false)
    echo "Error";


© «Bitrix24», 2001-2024
Up