Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
HIPO_Job_Rollback_Management Class Reference
Inheritance diagram for HIPO_Job_Rollback_Management:
HIPO_Job MySource_Object

Public Member Functions

 HIPO_Job_Rollback_Management ($code_name='')
 
 getHipoName ()
 
 getInitialStepData ()
 
 getThresholdPercentageRequired ()
 
 prepare ()
 
 freestyle ()
 
 changeRollbackSetting (&$step_data, $prefix)
 
 configureDBTriggers (&$step_data, $prefix)
 
 openTransaction (&$step_data, $prefix)
 
 purgeFileVersioning (&$step_data, $prefix)
 
 resetRollback (&$step_data, $prefix)
 
 toggleRollbackState (&$step_data, $prefix)
 
 deleteRollbackEntries (&$step_data, $prefix)
 
 alignRollbackEntries (&$step_data, $prefix)
 
 deleteRedundantRollbackEntries (&$step_data, $prefix)
 
 completeTransaction (&$step_data, $prefix)
 
- Public Member Functions inherited from HIPO_Job
 HIPO_Job ($code_name='')
 
 getCodeName ()
 
 getHipoName ()
 
 getInitialStepData ()
 
 complete ()
 
 percentDone ()
 
getRunningVars ()
 
 setRunningVars (&$vars)
 
 setOption ($name, $value)
 
 getOption ($name)
 
 setHipoVar ($name, $value)
 
 getHipoVar ($name)
 
 _addError ($error, $warning=FALSE)
 
 getErrors ()
 
 prepare ()
 
 initialise ($source_code_name=NULL)
 
 getThreshold ()
 
 getThresholdPercentageRequired ()
 
 freestyle ()
 
 load ($code_name)
 
 save ($ignore_running_mode=FALSE)
 
 _updateProgress ()
 
 _renewLastUpdated ($new_time=NULL)
 
_getSubJob ()
 
 getInitialiseMode ()
 
 setRunningMode ($mode, $server_taskid='')
 
 getRunningMode ()
 
 autoStep ()
 
 getNextStep ()
 
 skipStep ($stepid=0)
 
 paint (&$o, $nested=FALSE)
 
 process ()
 
 processWeb (&$step_data, $prefix)
 
 processServer (&$step_data, $prefix)
 
 abort ($abort_source=TRUE, $abort_dependant=TRUE)
 
 jobAborted ()
 
 _paintErrorReport ()
 
 paintStepDefault (&$step_data, &$o, $prefix)
 
 _errorHandler ($err_no, $err_msg, $err_file, $err_line)
 
 getDependantHipoJob ()
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Static Public Member Functions

static paintConfig (&$o, $class, $write_access)
 
static getConfigVars ()
 
- Static Public Member Functions inherited from HIPO_Job
static paintConfig (&$o, $class, $write_access)
 
static getConfigVars ()
 
static paintProgressBar ($percent_done, $message='', $label_class='sq-hipo-progress-bar-label', $percent_class='sq-hipo-progress-bar-percent', $bar_main_class='sq-hipo-progress-bar-main', $bar_done_class='sq-hipo-progress-bar-done')
 

Additional Inherited Members

- Data Fields inherited from HIPO_Job
 $code_name = ''
 
 $source_code_name = ''
 
 $userid = 0
 
 $last_updated = 0
 
 $hipo_name = ''
 
 $is_prepared = FALSE
 
 $uses_trans = TRUE
 
 $_hipo_vars
 
 $_options
 
 $_running_vars = Array()
 
 $_current_mode = 'web'
 
 $_steps = Array()
 

Detailed Description

Definition at line 38 of file hipo_job_rollback_management.inc.

Member Function Documentation

alignRollbackEntries ( $step_data,
  $prefix 
)

Aligns rollback entries to a specified date

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 678 of file hipo_job_rollback_management.inc.

changeRollbackSetting ( $step_data,
  $prefix 
)

Modifies the SQ_CONF_ROLLBACK_ENABLED value in the System Configuration

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 332 of file hipo_job_rollback_management.inc.

completeTransaction ( $step_data,
  $prefix 
)

Completes the database transaction started by this HIPO

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 771 of file hipo_job_rollback_management.inc.

configureDBTriggers ( $step_data,
  $prefix 
)

Configures the appropriate database triggers for Rollback. In essence, this function mimics the "Step 2" installation script

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 375 of file hipo_job_rollback_management.inc.

deleteRedundantRollbackEntries ( $step_data,
  $prefix 
)

Delete redundant entries from the Rollback table

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 725 of file hipo_job_rollback_management.inc.

deleteRollbackEntries ( $step_data,
  $prefix 
)

Deletes rollback entries up to a specified date

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 631 of file hipo_job_rollback_management.inc.

freestyle ( )

Performs the duties of this hipo, without showing any output

Returns
boolean public

Definition at line 276 of file hipo_job_rollback_management.inc.

static getConfigVars ( )
static

Sets some info about thresholds that this hipo requires.

Returns
array public

Definition at line 78 of file hipo_job_rollback_management.inc.

getHipoName ( )

Returns the (localised) HIPO name

Returns
string public

Definition at line 93 of file hipo_job_rollback_management.inc.

getInitialStepData ( )

Returns the steps in this hipo, possibly with localised step names and messages

Returns
string public

Definition at line 107 of file hipo_job_rollback_management.inc.

getThresholdPercentageRequired ( )

Returns the current threshold

Returns a value that represents the total percentage that this hipo would run in freestyle mode in its current state

Returns
float public

Definition at line 244 of file hipo_job_rollback_management.inc.

HIPO_Job_Rollback_Management (   $code_name = '')

Constructor

Parameters
string$code_namea unique codename the HIPO

Definition at line 47 of file hipo_job_rollback_management.inc.

openTransaction ( $step_data,
  $prefix 
)

Opens a sunny-fresh database transaction in which all modifications by this HIPO will be performed

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 459 of file hipo_job_rollback_management.inc.

static paintConfig ( $o,
  $class,
  $write_access 
)
static

Paints backend of this job

Parameters
object&$oreference to the backend outputter
string$classcalling class name
Returns
void private

Definition at line 66 of file hipo_job_rollback_management.inc.

prepare ( )

Prepares the running vars

Returns
boolean public

Definition at line 257 of file hipo_job_rollback_management.inc.

purgeFileVersioning ( $step_data,
  $prefix 
)

Purges file versioning entries up to a specified date

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 482 of file hipo_job_rollback_management.inc.

resetRollback ( $step_data,
  $prefix 
)

Truncates rollback entries

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 524 of file hipo_job_rollback_management.inc.

toggleRollbackState ( $step_data,
  $prefix 
)

Enables or disables Rollback depending on the state change requested

Parameters
array&$step_dataa reference to the array of information about the current step
string$prefixprefix for form vars
Returns
boolean public

Definition at line 569 of file hipo_job_rollback_management.inc.


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