running controller can set an error number

getErrorNr() retrieves this number
This commit is contained in:
Uwe Steinmann 2014-12-08 14:36:26 +01:00
parent c560d21425
commit c1b216bf51

View File

@ -17,8 +17,21 @@
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
class SeedDMS_Controller_Common {
/**
* @var array $params list of parameters
* @access protected
*/
protected $params;
/**
* @var integer $error error number of last run
* @access protected
*/
protected $error;
function __construct($params) {
$this->params = $params;
$this->error = 0;
}
function setParams($params) {
@ -37,6 +50,15 @@ class SeedDMS_Controller_Common {
function run() {
}
/**
* Get error number of last run
*
* @return integer error number
*/
public function getErrorNo() { /* {{{ */
return $this->error;
} /* }}} */
/**
* Call a controller hook
*