Packages:
System
System.Collections
System.Data
System.I18N
System.Util
System.Web.Services
System.Web.UI.ActiveControls
System.Web.UI.WebControls


Classes:
Response
   LTidyHttpResponseAdapter

Class LPeriodicTask

TModule
   |
   --LPeriodicTask

LPeriodicTask class

  1. <module id="garbage_collector" class="LGarbageCollector">
  2. <scan dir="/public/tmp" probability="0.01">
  3. <condition fileatime="-1440"/>
  4. <action delete="1"/>
  5. </scan>
  6. </module>

This module is used execute tasks periodically


Method Summary
void
init ( TXmlElement $xmlNode)
Initializes the module.
void
work ( object $sender, unused $param)
Does the modules work.

Method Details

init

public void init (TXmlElement $xmlNode )

Initializes the module.

This method is required by IModule and is invoked by application. This just hooks into Application::onLoadStateComplete, because we have no global state earlier

Input
TXmlElement$xmlNodemodule configuration
Output
Exception

work

public void work (object $sender , unused $param )

Does the modules work.

It loads scanning information from the module configuration, and executes all wanted tasks

Input
object$senderTApplication
unused$param
Output
Exception