Abstract Class Giscuit_Db_Table_Multilang

Description

Abstract class for a multilang table

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

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Multilang
Direct descendents
Class Description
 class Giscuit_Db_Table_Layers Class for layers table
 class Giscuit_Db_Table_JobsActionsMap Class for Jobs Actions Map table
 class Giscuit_Db_Table_Base Class for base table
Abstract class Giscuit_Db_Table_Articles Abstract class for a multilang table
 class Giscuit_Db_Table_JobsActionsWorkflows Class for Jobs Actions Workflows table
 class Giscuit_Db_Table_RoutingCostColumns Abstract class for routing cost columns table
 class Giscuit_Db_Table_Layer_IncidentsCategory Class for incidents categories table
 class Giscuit_Db_Table_Layer_Incidents Class for incidents table
 class Giscuit_Db_Table_Menu Class for menu table
Class Constant Summary
 INSERT = 1
 UPDATE = 2
Variable Summary
Method Summary
 addMultilangFields (Zend_Db_Select $select) void
 delete (array|string $where) int
 getMultilangPostData (array $values) array
 manageMultilangText ( $arr, Zend_Db_Table_Row $row, [mixed $action = self::INSERT]) void
 withMultilangFields (Zend_Db_Select $select, [ $options = array()]) void
Variables
array $_multilangTextColumns = array(
)
(line 35)

Contains the names of multilang fields inside the table

  • access: protected

Redefined in descendants as:

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addMultilangFields (line 105)

Add all the tables multilanguage fields to the select object

  • access: public
void addMultilangFields (Zend_Db_Select $select)
  • Zend_Db_Select $select
delete (line 150)

Deletes existing rows.

  • return: The number of rows deleted
  • access: public
int delete (array|string $where)
  • array|string $where: SQL WHERE clause(s)
getMultilangPostData (line 195)

Get all the tables multilanguage fields and return the data as an array

  • access: public
array getMultilangPostData (array $values)
  • array $values: Multilanguage fields
manageMultilangText (line 56)

Insert or update text in a multilanguage table

  • access: public
void manageMultilangText ( $arr, Zend_Db_Table_Row $row, [mixed $action = self::INSERT])
  • array $arr: Fields with multilang field name and value, example: arr[text] = value
  • Zend_Db_Table_Row $row: Inserted or updated row
  • mixed $action: By default insert the multilang text or pass the Giscuit_Db_Table_Multilang::UPDATE to update
withMultilangFields (line 135)

Check for multilanguage fields addition

  • access: public
void withMultilangFields (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options:
    • withMultilangFields bool - Add all the tables multilanguage fields to the select object

Inherited Methods

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
INSERT = 1 (line 41)

Class wide constant for INSERT

UPDATE = 2 (line 46)

Class wide constant for UPDATE

Documentation generated on Wed, 28 May 2014 08:33:21 +0000 by phpDocumentor 1.4.3