add errormsg

This commit is contained in:
Uwe Steinmann 2015-04-15 16:11:45 +02:00
parent b0bc6e5c01
commit ffe2192376

View File

@ -29,9 +29,16 @@ class SeedDMS_Controller_Common {
*/
protected $error;
/**
* @var string $errormsg error message of last run
* @access protected
*/
protected $errormsg;
function __construct($params) {
$this->params = $params;
$this->error = 0;
$this->errormsg = '';
}
function setParams($params) {
@ -88,6 +95,15 @@ class SeedDMS_Controller_Common {
return $this->error;
} /* }}} */
/**
* Get error message of last run
*
* @return string error message
*/
public function getErrorMsg() { /* {{{ */
return $this->errormsg;
} /* }}} */
/**
* Call a controller hook
*