mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-14 13:42:04 +00:00
running controller can set an error number
getErrorNr() retrieves this number
This commit is contained in:
parent
c560d21425
commit
c1b216bf51
|
@ -17,8 +17,21 @@
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
class SeedDMS_Controller_Common {
|
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) {
|
function __construct($params) {
|
||||||
$this->params = $params;
|
$this->params = $params;
|
||||||
|
$this->error = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setParams($params) {
|
function setParams($params) {
|
||||||
|
@ -37,6 +50,15 @@ class SeedDMS_Controller_Common {
|
||||||
function run() {
|
function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get error number of last run
|
||||||
|
*
|
||||||
|
* @return integer error number
|
||||||
|
*/
|
||||||
|
public function getErrorNo() { /* {{{ */
|
||||||
|
return $this->error;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call a controller hook
|
* Call a controller hook
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user