Abstract Class Giscuit_Db_Table_Abstract

Description

Abstract class for table

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

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
Direct descendents
Class Description
 class Giscuit_Db_Table_Users Class for users table
 class Giscuit_Db_Table_GeometryTables Class for geometry tables table
 class Giscuit_Db_Table_Sessions Class for sessions table
 class Giscuit_Db_Table_LayerPermissions Class for layers permissions table
 class Giscuit_Db_Table_History Class for history table
 class Giscuit_Db_Table_Roles Class for roles table
 class Giscuit_Db_Table_LayerDefaults Class for layers defaults table
 class Giscuit_Db_Table_Rules Class for rules table
Abstract class Giscuit_Db_Table_Multilang Abstract class for a multilang table
 class Giscuit_Db_Table_Files Class for files table
 class Giscuit_Db_Table_Text Class for text table
 class Giscuit_Db_Table_Comm Class for comments table
 class Giscuit_Db_Table_LayerSettings Class for layers settings table
 class Giscuit_Db_Table_Layer_IncidentsNotifications Class for incidents notifications table
 class Giscuit_Db_Table_Layer_Abstract Abstract class for table
 class Giscuit_Db_Table_Joins Class for fields table
 class Giscuit_Db_Table_Fields Class for fields table
 class Giscuit_Db_Table_LayerPublish Class for layers publish table
 class Giscuit_Db_Table_QuerybuilderQueries Class for queries table
 class Giscuit_Db_Table_Mapstats Class for mapstats table
 class Giscuit_Db_Table_Classes Class for classes table
 class Giscuit_Db_Table_LayerOwsclient Class for layers ows services table
 class Giscuit_Db_Table_Styles Class for classes table
 class Giscuit_Db_Table_LayerRouting Class for routing table
Variable Summary
 string $_primary
Method Summary
 __construct ([array $options = array()]) void
 count ([array $options = array()]) integer
 getPrimaryKey ([ $options = array()]) string
 joinMultilangField (Zend_Db_Select $select, string $name, [string $table = null], [string $schema = null]) void
 moveItem (integer $first, integer $second, [string $key = 'order']) void
 whereActive (Zend_Db_Select $select, [ $options = array()]) void
 whereCurrentUser (Zend_Db_Select $select, [ $options = array()]) void
 whereId (Zend_Db_Select $select, [ $options = array()]) void
Variables
string $_primary = 'id' (line 36)

Table primary key name

  • access: protected

Redefined in descendants as:
Methods
Constructor __construct (line 44)

Constructor

  • access: public
void __construct ([array $options = array()])
  • array $options: Available options

Redefined in descendants as:
count (line 144)

Count the number of items in the table

  • access: public
integer count ([array $options = array()])
  • array $options: Available options:
    • onlyActive bool - Counts only active rows

Redefined in descendants as:
getPrimaryKey (line 195)

Get primary key

  • access: public
string getPrimaryKey ([ $options = array()])
  • array $options: Available options, defaults to unquoted
    • name bool - Return the primary key name only
    • quote bool - Return quoted table name and primary key name
joinMultilangField (line 118)

Add multilanguage fields based on current language

  • access: public
void joinMultilangField (Zend_Db_Select $select, string $name, [string $table = null], [string $schema = null])
  • Zend_Db_Select $select
  • string $name: - language abbreviation
  • string $table: - table to join
  • string $schema: - database schema
moveItem (line 169)

Order the rows by moving them up or down, $first and $second order column values are being exchanged with each other

  • access: public
void moveItem (integer $first, integer $second, [string $key = 'order'])
  • integer $first: id
  • integer $second: id
  • string $key: Order column name, defaults to order
whereActive (line 83)

Fetch active or inactive users

  • access: public
void whereActive (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereActive t,f - If value is 't' fetches active users, 'f' inactive
whereCurrentUser (line 64)

Fetch rows that belong to current user

  • access: public
void whereCurrentUser (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereCurrentUser bool - Fetch the row that belongs to current user
whereId (line 100)

Fetch id

  • access: public
void whereId (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereId integer - Fetch the row with a given id

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