Class Giscuit_Db_Table_Styles

Description

Class for classes table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Styles
Variable Summary
 string $_name
 string $_primary
Method Summary
 addClassify (Zend_Filter_Input $input, integer $classId, string $color) void
 addInitial (integer $classId, string $type) Zend_Db_Table_Row
 addItem (Zend_Filter_Input $data, [ $options = array()]) Zend_Db_Table_Row
 checkCurrUserOwnStyle (integer $id) void
 editItem (integer $id, Zend_Filter_Input $data) integer
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
Variables
string $_name = 'styles' (line 36)

Table name

  • access: protected
string $_primary = 'id' (line 43)

Table primary key name

  • access: protected

Redefinition of:
Giscuit_Db_Table_Abstract::$_primary
Table primary key name
Methods
addClassify (line 192)

Add classify

  • access: public
void addClassify (Zend_Filter_Input $input, integer $classId, string $color)
  • Zend_Filter_Input $input: A Zend_Filter_Input object populated with request data
  • integer $classId: Id of the class
  • string $color: Style color
addInitial (line 158)

Add initial styles to the given class and type

  • access: public
Zend_Db_Table_Row addInitial (integer $classId, string $type)
  • integer $classId: Id of the class
  • string $type: Geometry type
addItem (line 138)

Add item

  • access: public
Zend_Db_Table_Row addItem (Zend_Filter_Input $data, [ $options = array()])
  • Zend_Filter_Input $data: A Zend_Filter_Input object populated with request data
  • array $options
checkCurrUserOwnStyle (line 217)

Check if style belongs to current user

  • access: public
void checkCurrUserOwnStyle (integer $id)
  • integer $id: Style id
editItem (line 110)

Update item

  • return: The id of the element
  • access: public
integer editItem (integer $id, Zend_Filter_Input $data)
  • integer $id: The id of the row to edit
  • Zend_Filter_Input $data: A Zend_Filter_Input object populated with request data
getItems (line 53)

Get styles

  • access: public
Zend_Db_Table_Rowset getItems ([ $options = array()])
  • array $options: Available options:
    • whereStm bool - Fetch rows that match the given statement
    • whereClassId integer - Fetch rows that match the given class id

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

Documentation generated on Fri, 23 Nov 2012 13:02:59 +0000 by phpDocumentor 1.4.3