Class Giscuit_Db_Table_Menu

Description

Class for menu table

  • copyright: Copyright (c) 2012 VEC

Located in /Db/Table/Menu.php (line 28)

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Multilang
         |
         --Giscuit_Db_Table_Menu
Variable Summary
Method Summary
 addItem (Zend_Form $data, [array $options = array()]) void
 editItem (integer $id, Zend_Form $data) void
 getItems ([array $options = array()]) Zend_Db_Table_Rowset
Variables
string $defaultResource = 'registered' (line 43)

Default menu resource

  • access: public
array $_multilangTextColumns = array(
'title' ,
'tags' ,
'text'
)
(line 50)

Contains the names of multilang fields inside the table

  • access: protected

Redefinition of:
Giscuit_Db_Table_Multilang::$_multilangTextColumns
Contains the names of multilang fields inside the table
string $_name = 'menu' (line 36)

Table name

  • access: protected

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addItem (line 64)

Add item

  • access: public
void addItem (Zend_Form $data, [array $options = array()])
  • Zend_Form $data: A form object populated with request data
  • array $options: Available options:
    • parent_id integer - Parent menu section id
editItem (line 195)

Update item

  • access: public
void editItem (integer $id, Zend_Form $data)
  • integer $id: The id of the row to edit
  • Zend_Form $data: A form object populated with request data
getItems (line 104)

Get items

  • access: public
Zend_Db_Table_Rowset getItems ([array $options = array()])
  • array $options: Available options:
    • withText bool - Include text field in the results
    • withTitle bool - Include title field in the results
    • withDesc bool - Include desc field in the results
    • withTags bool - Include tags field in the results
    • whereActive t,f - Get only active elements
    • whereId integer - Fetch rows that match the id
    • withMultilangFields bool - Add multilanguage fields based on current language
    • buildYuiMenu string - Build yui menu array from results

Inherited Methods

Inherited From Giscuit_Db_Table_Multilang

 Giscuit_Db_Table_Multilang::addMultilangFields()
 Giscuit_Db_Table_Multilang::delete()
 Giscuit_Db_Table_Multilang::getMultilangPostData()
 Giscuit_Db_Table_Multilang::manageMultilangText()
 Giscuit_Db_Table_Multilang::withMultilangFields()

Inherited From Giscuit_Db_Table_Abstract

 Giscuit_Db_Table_Abstract::__construct()
 Giscuit_Db_Table_Abstract::count()
 Giscuit_Db_Table_Abstract::getPrimaryKey()
 Giscuit_Db_Table_Abstract::joinMultilangField()
 Giscuit_Db_Table_Abstract::moveItem()
 Giscuit_Db_Table_Abstract::whereActive()
 Giscuit_Db_Table_Abstract::whereCurrentUser()
 Giscuit_Db_Table_Abstract::whereId()
Class Constants

Documentation generated on Wed, 23 Jan 2013 15:54:46 +0000 by phpDocumentor 1.4.3