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 meta model:

###public function createMeta($jobId, $ctgId, $location, $offerId = 0, $needsId = 0, $attributes) Creates a meta entry in the table with the incoming values.

###public function editMeta($id, $jobId, $ctgId, $location, $offerId = 0, $needsId = 0, $attributes) Edits a meta entry in the table with the incoming values.

###public function getMetaById($id = 0) Returns meta data with the incoming id.

Clone this wiki locally