Class Giscuit_Db_Table_Classes

Description

Class for classes table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Classes
Variable Summary
 string $_name
 string $_primary
Method Summary
 addClassify (Zend_Filter_Input $input, string $expr, string $intervalRange, string $color) void
 addInitial (mixed $table) Zend_Db_Table_Row
 addItem (Zend_Filter_Input $data) Zend_Db_Table_Row
 checkCurrUserOwnClass (integer $id) void
 editItem (integer $id, Zend_Filter_Input $data) integer
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
Variables
string $_name = 'classes' (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 211)

Add classifying class for a layer

  • access: public
void addClassify (Zend_Filter_Input $input, string $expr, string $intervalRange, string $color)
  • Zend_Filter_Input $input: Filtered classes and styles data
  • string $expr: Custom interval expression
  • string $intervalRange: Interval range used as a class name
  • string $color: Specified color for this class style
addInitial (line 182)

Add initial class for a layer

  • access: public
Zend_Db_Table_Row addInitial (mixed $table)
  • mixed $table: Table settings
addItem (line 153)

Add item

  • access: public
Zend_Db_Table_Row addItem (Zend_Filter_Input $data)
  • Zend_Filter_Input $data: A Zend_Filter_Input object populated with request data
checkCurrUserOwnClass (line 242)

Check if class belongs to current user

  • access: public
void checkCurrUserOwnClass (integer $id)
  • integer $id: Class id
editItem (line 125)

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

Get classes

  • access: public
Zend_Db_Table_Rowset getItems ([ $options = array()])
  • $options $options: Available options:
    • withClassLabels bool - If true gets classes with labels
    • whereStm string - Fetch rows that match the statement
    • whereLayerId integer - Fetch rows that match the layer id
    • whereId integer - Fetch rows that match the 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 Wed, 28 May 2014 08:33:12 +0000 by phpDocumentor 1.4.3