protected function toObject($rowset)
 {
     $this->loadClass("UserInfoModel", "model");
     $UserInfoModel = new UserInfoModel();
     $UserInfoModel->setUserName($rowset->username);
     $UserInfoModel->setPassword($rowset->password);
     $this->loadClass("UserGroupModel", "model");
     $UserGroupModel = new UserGroupModel();
     $UserGroupModel->setId($rowset->level);
     $UserGroupModel->setIsLoaded(false);
     $UserInfoModel->setUserGroup($UserGroupModel);
     return $UserInfoModel;
 }
 private function bindData()
 {
     $UserInfoModel = new UserInfoModel();
     $UserInfoModel->setUserName($this->getParam("username"));
     $UserInfoModel->setPassword($this->getParam("password"));
     $this->loadClass("UserGroupModel", "model");
     $UserGroupModel = new UserGroupModel();
     $UserGroupModel->setId($this->getParam("level"));
     $UserInfoModel->setUserGroup($UserGroupModel);
     return $UserInfoModel;
 }