wCMF  3.6
All Classes Namespaces Files Functions Variables Groups Pages
MySQLBackupController Class Reference
+ Inheritance diagram for MySQLBackupController:

Public Member Functions

 validate ()
 
 initialize (&$request, &$response)
 
 getAdditionalWorkPackage ($number, $action)
 
 backupMySQL ()
 
 restoreMySQL ()
 
 getConnectionParameters ()
 
- Public Member Functions inherited from BackupController
 validate ()
 
 initialize (&$request, &$response)
 
 getWorkPackage ($number)
 
 getAdditionalWorkPackage ($number, $action)
 
 backupFiles ()
 
 restoreFiles ()
 
 getBackupDir ()
 
- Public Member Functions inherited from BatchController
 initialize (&$request, &$response)
 
 addWorkPackage ($name, $size, $oids, $callback, $args=null)
 
 getWorkPackage ($number)
 
 getNumberOfSteps ()
 
 getDisplayText ($step)
 
 getSummaryText ()
 
 processPart ()
 
- Public Member Functions inherited from LongTaskController
 initialize (&$request, &$response)
 
 hasView ()
 
 executeKernel ()
 
 getStepNumber ()
 
 getNumberOfSteps ()
 
 getDisplayText ($step)
 
 getSummaryText ()
 
 initializeTask ()
 
 processPart ()
 
- Public Member Functions inherited from Controller
 Controller (&$delegate)
 
 initialize (&$request, &$response)
 
 validate ()
 
 hasView ()
 
 execute ()
 
 executeKernel ()
 
 getErrorMsg ()
 
 setErrorMsg ($msg)
 
 appendErrorMsg ($msg)
 
getRequest ()
 
getResponse ()
 
getView ()
 
getDelegate ()
 
 getViewTemplate ($controller, $context, $action)
 
 getCacheId ()
 
 assignViewDefaults (&$view)
 
 isLocalizedRequest ()
 

Public Attributes

 $PARAMS_SECTION_VARNAME = 'MySQLBackupController.paramsSection'
 
- Public Attributes inherited from BackupController
 $BACKUP_NAME_VARNAME = 'BackupController.backupName'
 
 $SOURCE_DIR_VARNAME = 'BackupController.sourceDir'
 
- Public Attributes inherited from BatchController
 $WORK_PACKAGES_VARNAME = 'BatchController.workPackages'
 
 $NUM_STEPS_VARNAME = 'BatchController.numSteps'
 
 $_workPackages = array()
 
- Public Attributes inherited from LongTaskController
 $STEP_SESSION_VARNAME = 'LongTaskController.curStep'
 
 $ONE_CALL_SESSION_VARNAME = 'LongTaskController.oneCall'
 
 $_curStep = 1
 
- Public Attributes inherited from Controller
 $_request = null
 
 $_response = null
 
 $_errorMsg = ''
 
 $_view = null
 
 $_delegate = null
 

Detailed Description

This Controller enhances the file backup defined by BackupController by a backup of a given MySQL database.

wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH

Licensed under the terms of any of the following licenses at your choice:

See the license.txt file distributed with this work for additional information.

Id:
class.MySQLBackupController.php 1462 2014-02-04 23:52:27Z iherwig

Input actions:

Output actions:

Parameters
[in]paramsSectionThe configuration section which holds the database connection parameters.
Note
This controller uses the programs mysqldump and mysql. So these must be included in the system's search path. The database user also needs the FILE and LOCK TABLES permissions.
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 41 of file class.MySQLBackupController.php.

Member Function Documentation

MySQLBackupController::validate ( )
See Also
Controller::validate()

Definition at line 48 of file class.MySQLBackupController.php.

References SessionData\getInstance(), and Controller\setErrorMsg().

+ Here is the call graph for this function:

MySQLBackupController::initialize ( $request,
$response 
)
See Also
Controller::initialize()

Definition at line 62 of file class.MySQLBackupController.php.

References SessionData\getInstance().

+ Here is the call graph for this function:

MySQLBackupController::getAdditionalWorkPackage (   $number,
  $action 
)
MySQLBackupController::backupMySQL ( )

Create a backup of the database

Definition at line 92 of file class.MySQLBackupController.php.

References Log\debug(), BackupController\getBackupDir(), and getConnectionParameters().

+ Here is the call graph for this function:

MySQLBackupController::restoreMySQL ( )

Restore a backup to the database

Definition at line 103 of file class.MySQLBackupController.php.

References Log\debug(), BackupController\getBackupDir(), and getConnectionParameters().

+ Here is the call graph for this function:

MySQLBackupController::getConnectionParameters ( )

Get connection parameters

Returns
Assoziative array hoding the parameter configuration section

Definition at line 115 of file class.MySQLBackupController.php.

References InifileParser\getInstance(), SessionData\getInstance(), and WCMFException\throwEx().

Referenced by backupMySQL(), and restoreMySQL().

+ Here is the call graph for this function:

Member Data Documentation

MySQLBackupController::$PARAMS_SECTION_VARNAME = 'MySQLBackupController.paramsSection'

Definition at line 43 of file class.MySQLBackupController.php.


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