some code clean up, change varialbe dms to _dms

This commit is contained in:
Uwe Steinmann 2016-03-04 09:26:27 +01:00
parent f84c8eedd2
commit 1fe2b3bdc2

View File

@ -125,7 +125,7 @@ class SeedDMS_AroAco { /* {{{ */
* @var object $dms reference to dms object. * @var object $dms reference to dms object.
* @access protected * @access protected
*/ */
public $dms; public $_dms;
/** /**
* @var integer id of access request object * @var integer id of access request object
@ -154,7 +154,7 @@ class SeedDMS_AroAco { /* {{{ */
* @return object instance of SeedDMS_Aco * @return object instance of SeedDMS_Aco
*/ */
function __construct($dms, $id, $parent, $object, $alias) { /* {{{ */ function __construct($dms, $id, $parent, $object, $alias) { /* {{{ */
$this->dmѕ = $dms; $this->_dmѕ = $dms;
$this->_id = $id; $this->_id = $id;
$this->_parent = $parent; $this->_parent = $parent;
$this->_object = $object; $this->_object = $object;
@ -162,11 +162,11 @@ class SeedDMS_AroAco { /* {{{ */
} /* }}} */ } /* }}} */
public function setDMS($dms) { /* {{{ */ public function setDMS($dms) { /* {{{ */
$this->dms = $dms; $this->_dms = $dms;
} /* }}} */ } /* }}} */
public function getDMS() { /* {{{ */ public function getDMS() { /* {{{ */
return($this->dms); return($this->_dms);
} /* }}} */ } /* }}} */
public function getID() { /* {{{ */ public function getID() { /* {{{ */
@ -201,10 +201,6 @@ class SeedDMS_Aro extends SeedDMS_AroAco { /* {{{ */
* @param object $dms object to access the underlying database * @param object $dms object to access the underlying database
* @return object instance of SeedDMS_Aro * @return object instance of SeedDMS_Aro
*/ */
function __construct($dms, $id, $parent, $object, $alias) { /* {{{ */
parent::__construct($dms, $id, $parent, $object, $alias);
} /* }}} */
public static function getInstance($id, $dms) { /* {{{ */ public static function getInstance($id, $dms) { /* {{{ */
$db = $dms->getDB(); $db = $dms->getDB();
if(is_int($id)) { if(is_int($id)) {
@ -243,7 +239,8 @@ class SeedDMS_Aro extends SeedDMS_AroAco { /* {{{ */
$object = null; $object = null;
} }
$aro = new self($dms, $resArr["id"], $resArr['parent'], $object, $resArr['alias']); $aro = new SeedDMS_Aro($dms, $resArr["id"], $resArr['parent'], $object, $resArr['alias']);
$aro->setDMS($dms);
return $aro; return $aro;
} /* }}} */ } /* }}} */
@ -268,10 +265,6 @@ class SeedDMS_Aco extends SeedDMS_AroAco{ /* {{{ */
* @param object $dms object to access the underlying database * @param object $dms object to access the underlying database
* @return object instance of SeedDMS_Aco * @return object instance of SeedDMS_Aco
*/ */
// function __construct($dms, $id, $object, $alias) { /* {{{ */
// parent::__construct($dms, $id, $object, $alias);
// } /* }}} */
public static function getInstance($id, $dms) { /* {{{ */ public static function getInstance($id, $dms) { /* {{{ */
$db = $dms->getDB(); $db = $dms->getDB();
if(is_int($id)) { if(is_int($id)) {