System-Util
[ class tree: System-Util ] [ index: System-Util ] [ all elements ]

Class: LPeriodicTask

Source Location: /packages/components/LPeriodicTask.php

Class Overview

TModule
   |
   --LPeriodicTask

LPeriodicTask class


Methods



Class Details

[line 31]
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




[ Top ]


Class Methods


method init [line 50]

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




Tags:

access:  public


Parameters:

TXmlElement   $xmlNode   module configuration

[ Top ]

method work [line 62]

void work( object $sender, unused $param)

Does the modules work.

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




Tags:

access:  public


Parameters:

object   $sender   TApplication
unused   $param  

[ Top ]


Documentation generated on Sun, 25 Feb 2007 16:11:32 +0100 by phpDocumentor 1.3.1