Documentation

DeleteByUserID

bool
CTaskReminders::DeleteByUserID(
 USER_ID
);

This method deletes notifications for user with USER_ID identifier.

Note: The method accepts an array of configuration parameters and generates scripts, necessary to show file dialog. Static method.

Method parameters

Parameter Description
USER_IDUser ID.

Returned value

The method returns true when an association is deleted successfully, otherwise returns false

Examples of use

<?
if (CModule::IncludeModule("tasks"))
{

$USER_ID = 4;

if($USER->IsAdmin())
{
CTaskReminders::DeleteByUserID($USER_ID);
}

}
?>


© «Bitrix24», 2001-2024
Up