CAgent::RemoveAgent( string name, string module="" )
Removes the agent function from the agent registrar table.
Parameter | Description |
---|---|
name | The agent function. |
module | Module ID. Optional. The kernel module is used by default ("main"). |
<? CAgent::RemoveAgent("CCatalog::PreGenerateXML(\"google\");", "catalog"); if ($bNeedAgent) { CAgent::AddAgent("CCatalog::PreGenerateXML(\"google\");", "catalog", "N", 24*60*60, "", "Y"); } ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |