/** * returns the user name from person id * @param integer $id * @return User_Model_User */ public function getUser($id) { $userDao = new User_Persist_Dao_User(); $user = $userDao->getByPersonId($id); return $user; }
public function getByPersonId($id) { try { $u = new User_Persist_Dao_User(); return $u->getByPersonId($id); } catch (Exception $e) { throw $e; } }