mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
add errormsg
This commit is contained in:
parent
b0bc6e5c01
commit
ffe2192376
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user