Bitrix Site Manager

CAgent::RemoveAgent

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

Removes the agent function from the agent registrar table.

Parameters

ParameterDescription
name The agent function.
module Module ID. Optional. The kernel module is used by default ("main").

See Also

Example



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