Documentation

RemoveAgent

CAgent::RemoveAgent(
 string name, 
 string module="", 
 string user_id = false
)

The method removes the agent function from the agent registrar table. Non-static method.

Parameters

ParameterDescription Available from version
name Agent function.
module Module ID. Optional parameter. The kernel module is used by default ("main").
user_id User ID. Optional.

See Also

Examples

<?
CAgent::RemoveAgent("CCatalog::PreGenerateXML(\"yandex\");", "catalog");
if ($bNeedAgent)
{
    CAgent::AddAgent("CCatalog::PreGenerateXML(\"yandex\");", "catalog", "N", 24*60*60, "", "Y");
}
?>


© «Bitrix24», 2001-2024
Up