CORE POS - Fannie
The CORE POS back end
Public Member Functions | Public Attributes | List of all members
TransArchiveTask Class Reference
Inheritance diagram for TransArchiveTask:
FannieTask

Public Member Functions

 run ()
 
- Public Member Functions inherited from FannieTask
 setThreshold ($t)
 
 setConfig (FannieConfig $fc)
 
 setLogger (FannieLogger $fl)
 
 setOptions ($o)
 
 setArguments ($a)
 
 run ()
 
 cronMsg ($str, $severity=6)
 
 lazyGetOpt ($argv)
 

Public Attributes

 $name = 'Transaction Archiving'
 
 $description
 
 $default_schedule
 
- Public Attributes inherited from FannieTask
 $name = 'Fannie Task'
 
 $description = 'Information about the task'
 
 $default_schedule
 
 $schedulable = true
 
const TASK_NO_ERROR = 0
 
const TASK_TRIVIAL_ERROR = 1
 
const TASK_SMALL_ERROR = 2
 
const TASK_MEDIUM_ERROR = 3
 
const TASK_LARGE_ERROR = 4
 
const TASK_WORST_ERROR = 5
 

Additional Inherited Members

- Protected Attributes inherited from FannieTask
 $error_threshold = 99
 
 $config = null
 
 $logger = null
 
 $options = array()
 
 $arguments = array()
 

Member Function Documentation

TransArchiveTask::run ( )

: this query should not fail unless the database server is down or inaccessible

: generally should not fail, but this isn't as important as the long-term archive table(s)

: should not happen, but impact is limited. performance issues may eventually crop up if the table gets very large.

: no long term impact but may lead to reporting oddities

lack of partitions will eventually cause performance problems in large data sets

: transaction data was not archived. absolutely needs to be addressed.

: missing monthly table will prevent proper transaction archiving. absolutely needs to be addressed.

: transaction data was not archived. absolutely needs to be addressed.

: should not fail. could eventually create duplicate archive records if this is failing and queries above are not

Member Data Documentation

TransArchiveTask::$default_schedule
Initial value:
= array(
'min' => 30,
'hour' => 0,
'day' => '*',
'month' => '*',
'weekday' => '*',
)
TransArchiveTask::$description
Initial value:
= 'Archive current transaction data.
Replaces the old nightly.dtrans.php script.'

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