2012-08-04 17:09:48 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This file is part of MySQLDumper released under the GNU/GPL 2 license
|
|
|
|
* http://www.mysqldumper.net
|
|
|
|
*
|
|
|
|
* @package MySQLDumper
|
|
|
|
* @subpackage Controller
|
|
|
|
* @version SVN: $Rev$
|
|
|
|
* @author $Author$
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* General Controller Action class
|
|
|
|
*
|
|
|
|
* @package MySQLDumper
|
|
|
|
* @subpackage Controller
|
|
|
|
*/
|
|
|
|
class Msd_Controller_Action extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var Msd_Config
|
|
|
|
*/
|
|
|
|
protected $_config;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var Msd_Config_Dynamic
|
|
|
|
*/
|
|
|
|
protected $_dynamicConfig;
|
|
|
|
|
2012-08-21 20:22:56 +00:00
|
|
|
/**
|
|
|
|
* @var Msd_Language
|
|
|
|
*/
|
|
|
|
protected $_lang;
|
|
|
|
|
2012-08-04 17:09:48 +00:00
|
|
|
/**
|
|
|
|
* Class constructor
|
|
|
|
*
|
|
|
|
* The request and response objects should be registered with the
|
|
|
|
* controller, as should be any additional optional arguments; these will be
|
|
|
|
* available via {@link getRequest()}, {@link getResponse()}, and
|
|
|
|
* {@link getInvokeArgs()}, respectively.
|
|
|
|
*
|
|
|
|
* When overriding the constructor, please consider this usage as a best
|
|
|
|
* practice and ensure that each is registered appropriately; the easiest
|
|
|
|
* way to do so is to simply call parent::__construct($request, $response,
|
|
|
|
* $invokeArgs).
|
|
|
|
*
|
|
|
|
* After the request, response, and invokeArgs are set, the
|
|
|
|
* {@link $_helper helper broker} is initialized.
|
|
|
|
*
|
|
|
|
* Finally, {@link init()} is called as the final action of
|
|
|
|
* instantiation, and may be safely overridden to perform initialization
|
|
|
|
* tasks; as a general rule, override {@link init()} instead of the
|
|
|
|
* constructor to customize an action controller's instantiation.
|
|
|
|
*
|
|
|
|
* @param Zend_Controller_Request_Abstract $request
|
|
|
|
* @param Zend_Controller_Response_Abstract $response
|
|
|
|
* @param array $invokeArgs Any additional invocation arguments
|
|
|
|
*
|
|
|
|
* @return Msd_Controller_Action
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
Zend_Controller_Request_Abstract $request,
|
|
|
|
Zend_Controller_Response_Abstract $response,
|
|
|
|
array $invokeArgs = array()
|
|
|
|
)
|
|
|
|
{
|
2012-08-21 20:22:56 +00:00
|
|
|
$this->_config = Msd_Registry::getConfig();
|
2012-08-04 17:09:48 +00:00
|
|
|
$this->_dynamicConfig = Msd_Registry::getDynamicConfig();
|
2012-08-21 20:22:56 +00:00
|
|
|
$this->_lang = Msd_Language::getInstance();
|
2012-08-04 17:09:48 +00:00
|
|
|
parent::__construct($request, $response, $invokeArgs);
|
|
|
|
}
|
|
|
|
}
|