/**
  * setup object.
  */
 protected function _setupObject()
 {
     $id = $this->_getId();
     $this->mObjectHandler =& $this->_getHandler();
     $this->mObject =& $this->mObjectHandler->get($id);
     if ($this->mObject == null && $this->_isEnableCreate()) {
         $this->mObject =& $this->mObjectHandler->create();
     }
 }
예제 #2
0
파일: users.php 프로젝트: hiro1173/legacy
 function &get($id)
 {
     $obj =& parent::get($id);
     if (is_object($obj)) {
         $obj->_loadGroups();
     }
     return $obj;
 }
 /**
  * set object.
  * 
  * @param void
  */
 protected function _setupObject()
 {
     $id = $this->_getId();
     $this->mObjectHandler =& $this->_getHandler();
     $this->mObject =& $this->mObjectHandler->get($id);
 }