mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 08:25:44 +00:00
add errormsg
This commit is contained in:
parent
b0bc6e5c01
commit
ffe2192376
|
@ -29,9 +29,16 @@ class SeedDMS_Controller_Common {
|
||||||
*/
|
*/
|
||||||
protected $error;
|
protected $error;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string $errormsg error message of last run
|
||||||
|
* @access protected
|
||||||
|
*/
|
||||||
|
protected $errormsg;
|
||||||
|
|
||||||
function __construct($params) {
|
function __construct($params) {
|
||||||
$this->params = $params;
|
$this->params = $params;
|
||||||
$this->error = 0;
|
$this->error = 0;
|
||||||
|
$this->errormsg = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function setParams($params) {
|
function setParams($params) {
|
||||||
|
@ -88,6 +95,15 @@ class SeedDMS_Controller_Common {
|
||||||
return $this->error;
|
return $this->error;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get error message of last run
|
||||||
|
*
|
||||||
|
* @return string error message
|
||||||
|
*/
|
||||||
|
public function getErrorMsg() { /* {{{ */
|
||||||
|
return $this->errormsg;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call a controller hook
|
* Call a controller hook
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user