Abstract Class Giscuit_Db_Table_Articles

Description

Abstract class for a multilang table

  • copyright: Copyright (c) 2012 VEC
  • abstract:

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Multilang
         |
         --Giscuit_Db_Table_Articles
Direct descendents
Class Description
 class Giscuit_Db_Table_News Class for news table
Variable Summary
Method Summary
 addItem (Zend_Form $data) integer
 editItem (integer $id, Zend_Form $data) void
 getItems ( $options) Zend_Db_Table_Rowset
 incrementViews (Zend_Db_Table_Row $row) void
Variables
array $_multilangTextColumns = array('title', 'tags', 'desc', 'text') (line 36)

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

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addItem (line 163)

Add item

  • return: The id of the new element
  • access: public
integer addItem (Zend_Form $data)
  • Zend_Form $data: A form object populated with request data
editItem (line 191)

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 54)

Get items

  • access: public
Zend_Db_Table_Rowset getItems ( $options)
  • array $options:
    • withDesc bool - Include desc field in the results
    • withText bool - Include text field in the results
    • withTitle bool - Include title field in the results
    • withTags bool - Include tags field in the results
    • withMultilangFields bool - Add multilanguage fields based on current language
    • whereCurrentUser bool - Get only elements that belong to current user
    • whereActive bool - Get only active elements
    • whereId integer - Fetch rows that match the id
    • limit integer - Maximum number of rows to return
    • limitStart integer - Offset of the first row to return
incrementViews (line 219)

Increment table views column by one

  • access: public
void incrementViews (Zend_Db_Table_Row $row)
  • Zend_Db_Table_Row $row

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, 28 May 2014 08:33:11 +0000 by phpDocumentor 1.4.3