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

Public Member Functions

 run ()
 
- Public Member Functions inherited from FannieTaskArgs
 setThreshold ($t)
 
 setConfig (FannieConfig $fc)
 
 setLogger (FannieLogger $fl)
 
 setOptions ($o)
 
 setArguments ($a)
 
 run ()
 
 cronMsg ($str, $severity=6)
 
 lazyGetOpt ($argv)
 
- 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 = 'Coop Cred One Lane Sync'
 
 $description
 
 $default_schedule
 
- Public Attributes inherited from FannieTaskArgs
 $name = 'Fannie Task With Args'
 
 $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
 
- 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 FannieTaskArgs
 $error_threshold = 99
 
 $config = null
 
 $logger = null
 
 $options = array()
 
 $arguments = array()
 

Member Data Documentation

CoopCredOneLaneSyncTask::$default_schedule
Initial value:
= array(
'min' => 30,
'hour' => 0,
'day' => '*',
'month' => '*',
'weekday' => '*',
)
CoopCredOneLaneSyncTask::$description
Initial value:
= "Bring tables on one lane into the same state as server tables.
DO NOT Enable this as an Automated Task.
Only run it from the command line:
sudo -u www-data php /path/to/FannieTask.php \
CoopCredOneLaneSyncTask lane#
Replace these tables on all lanes with contents of
server table:
coop_cred: CCredPrograms, CCredMemberships
If you can use fannie/sync/special/coopcred.mysql.inc
the transfers will go much faster.
If you cannot use CoopCred/sync/special/coopcred.mysql.inc
then you must create the tables and database on the
lanes before you run this task.
Coordinate this task with tasks such as Coop Cred History
that update the tables this is pushing to the lanes
so that the lanes have the most current data.
If run from the command line can take a lane-number
parameter: CoopCredOneLaneSyncTask lane#
to sync a single lane.
"

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