diff options
author | Michael Tänzer <neo@nhng.de> | 2011-06-20 23:08:08 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2011-06-20 23:08:08 +0200 |
commit | bf1495e18b3deabc34ae86f6a34642e9bb221235 (patch) | |
tree | 2205f6220586ab1eb561c1b394c070b5e66c84a9 /manager/application/models | |
parent | f4d471baacad50526b8ee722a810998379f8c414 (diff) | |
download | cacert-mgr-bf1495e18b3deabc34ae86f6a34642e9bb221235.tar.gz cacert-mgr-bf1495e18b3deabc34ae86f6a34642e9bb221235.tar.xz cacert-mgr-bf1495e18b3deabc34ae86f6a34642e9bb221235.zip |
Doh, apparently the convention has changed nowadays models are placed in the Application_ namespace but we still use Default_
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'manager/application/models')
-rw-r--r-- | manager/application/models/User.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/manager/application/models/User.php b/manager/application/models/User.php index 29bd1e7..f68b352 100644 --- a/manager/application/models/User.php +++ b/manager/application/models/User.php @@ -3,7 +3,7 @@ * @author Michael Tänzer */ -class Application_Model_User { +class Default_Model_User { protected $db; protected $id; @@ -20,7 +20,7 @@ class Application_Model_User { * Get an user object for the given ID * * @param $id int - * @return Application_Model_User + * @return Default_Model_User */ public static function findById($id) { // Get database connection @@ -40,13 +40,13 @@ class Application_Model_User { } $row = $result->fetch(); - return new Application_Model_User($db, $row['id']); + return new Default_Model_User($db, $row['id']); } /** * Get an user object for the currently logged in user * - * @return Application_Model_User + * @return Default_Model_User */ public static function findCurrentUser() { $session = Zend_Registry::get('session'); @@ -61,7 +61,7 @@ class Application_Model_User { /** * Get the first assurer who didn't already assure the user * - * @return Application_Model_User + * @return Default_Model_User */ public function findNewAssurer() { @@ -77,7 +77,7 @@ class Application_Model_User { 'assured this account'); } - return new Application_Model_User($this->db, $row['assurer']); + return new Default_Model_User($this->db, $row['assurer']); } /** @@ -174,7 +174,7 @@ class Application_Model_User { /** * Assure another user. Usual restrictions apply * - * @param $assuree Application_Model_User + * @param $assuree Default_Model_User * @param $points int * @param $location string * @param $date string @@ -184,7 +184,7 @@ class Application_Model_User { * The amount of points that have been issued (might be less than * $points) */ - public function assure(Application_Model_User $assuree, $points, $location, + public function assure(Default_Model_User $assuree, $points, $location, $date) { // Sanitize inputs $points = intval($points); |