Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
ScheduledTaskDAO Class Reference
Inheritance diagram for ScheduledTaskDAO:
DAO

Public Member Functions

 getLastRunTime ($className)
 
 ScheduledTaskDAO ()
 
 updateLastRunTime ($className, $timestamp=null)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying Scheduled Task data.

See Also
ScheduledTask

Definition at line 24 of file ScheduledTaskDAO.inc.php.

Member Function Documentation

ScheduledTaskDAO::getLastRunTime (   $className)

Get the last time a scheduled task was executed.

Parameters
$classNamestring
Returns
int

Definition at line 37 of file ScheduledTaskDAO.inc.php.

References DAO\datetimeFromDB(), and DAO\retrieve().

ScheduledTaskDAO::ScheduledTaskDAO ( )

Constructor

Definition at line 28 of file ScheduledTaskDAO.inc.php.

ScheduledTaskDAO::updateLastRunTime (   $className,
  $timestamp = null 
)

Update a scheduled task's last run time.

Parameters
$classNamestring
$timestampint optional, if omitted the current time is used.
Returns
int

Definition at line 61 of file ScheduledTaskDAO.inc.php.

References DAO\datetimeToDB(), DAO\getAffectedRows(), DAO\retrieve(), and DAO\update().


The documentation for this class was generated from the following file: