Skip to content
LangMichael edited this page Jan 16, 2013 · 1 revision

As in the parent Page was introduced, Models are used to map Data from the Database. Therefore all Models extends the Zend_Db_Table_Abstract.

class Default_Model_Category extends Zend_Db_Table_Abstract

Beside some properties about the table name or the primary key, it has to provide some methods to get or manipulate the data directly into the database.

Methods of the user model:

###public function getMetaData($id_usr) Returns the meta data of the incoming user.

###public function changeUserPassword($id = -1, $password) Changes the password of the user with the incoming id.

###public function getUserByFilter($pattern) Returns users which match to the incoming pattern.

###public function getMatchingUsers($job, $location, $attribute, $id) Returns the top 5 users, which match best to the incoming values.

Clone this wiki locally