Class Giscuit_Db_Table_Layers

Description

Class for layers table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Multilang
         |
         --Giscuit_Db_Table_Layers
Variable Summary
Method Summary
 static getColumnDefinition ([ $col = array()]) mixed
 static getContainers (integer $id) array
 static getLayerTableById (integer $id, [ $options = array()]) Zend_Db_Table
 static getTableDefinition (integer $id) string
 add (Zend_Form $data, [ $options = array()]) integer
 addDefaultSettings (Zend_Db_Select $select, array $result, [ $options = array()]) boolean
 checkCurrUserOwnLayer (integer $id) void
 edit (integer $id, Zend_Form $data) void
 getEditLayer () array
 getEditTables ([ $options = array()]) Zend_Db_Table
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
 parse (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 updateWfsLayers (array $rows) void
 whereIds (Zend_Db_Select $select, [ $options = array()]) void
 withAcl (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 withClassesAndStyles (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 withCurrUserOwnLayer (Zend_Db_Select $select, [ $options = array()]) void
 withFields (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 withGroups (Zend_Db_Select $select, [ $options = array()]) void
 withLayerSettings (Zend_Db_Select $select, [ $options = array()]) void
 withMetadata (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 withOwsAcl (Zend_Db_Select $select,  &$result, [ $options = array()], array $result) void
 withOwsclient (Zend_Db_Select $select, [ $options = array()]) void
 withPermissions (Zend_Db_Select $select, [ $options = array()]) void
 withPublish (Zend_Db_Select $select, [ $options = array()]) void
 withRouting (Zend_Db_Select $select, [ $options = array()]) void
 withRoutingCostCoefColumn (Zend_Db_Select $select, [ $options = array()]) void
 _getSearchScale () integer
 _populateRow (Zend_Db_Table_Row $row, Zend_Form $data, [ $rows = array()]) void
Variables
string $defaultResource = 'registered' (line 43)

User role

  • access: public
array $_multilangTextColumns = array(
'name'
)
(line 50)

Contains the 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
string $_name = 'layers' (line 36)

Table name

  • access: protected

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
static getColumnDefinition (line 1749)

Get column definition

  • access: public
mixed getColumnDefinition ([ $col = array()])
  • array $col: Columns
static getContainers (line 1664)

Get all containers of a specific layer id

  • access: public
array getContainers (integer $id)
  • integer $id: Layer id
static getLayerTableById (line 1472)

Get layer table by layer id

  • access: public
Zend_Db_Table getLayerTableById (integer $id, [ $options = array()])
  • integer $id: Layer id
  • array $options: Available options
static getTableDefinition (line 1704)

Get table XML definition

  • access: public
string getTableDefinition (integer $id)
  • integer $id: Layer id
add (line 880)

Add item

  • return: Id of the new element
  • access: public
integer add (Zend_Form $data, [ $options = array()])
  • Zend_Form $data: A form object populated with request data
  • array $options: Available options:
    • type string - Layer type (vector, wfs, raster, javascript, wms)
    • layerType string - Layer geometry type (Point, Line, Polygon)
    • parentId integer - Parent container id (root if empty)
addDefaultSettings (line 256)

Add default layer settings to the result

  • access: public
boolean addDefaultSettings (Zend_Db_Select $select, array $result, [ $options = array()])
  • Zend_Db_Select $select
  • array $result: Result
  • array $options: Available options:
    • withLayerSettings bool - Add default layer settings to the result
checkCurrUserOwnLayer (line 1647)

Check if layer belongs to current user

  • access: public
void checkCurrUserOwnLayer (integer $id)
  • integer $id: Layer id
edit (line 784)

Edit item

  • access: public
void edit (integer $id, Zend_Form $data)
  • integer $id: The id of the row to edit
  • Zend_Form $data: A form object populated with request data
getEditLayer (line 1509)

Get the current editable layer

  • access: public
array getEditLayer ()
getEditTables (line 1412)

Get editable tables for the current user

  • access: public
Zend_Db_Table getEditTables ([ $options = array()])
  • array $options: Available options
getItems (line 678)

Get items

  • access: public
Zend_Db_Table_Rowset getItems ([ $options = array()])
  • array $options: Available options:
parse (line 432)

Parse the result

  • access: public
void parse (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result: Result
  • array $options: Available options
  • &$result
updateWfsLayers (line 741)

Update wfs layers

  • access: public
void updateWfsLayers (array $rows)
  • array $rows: Layers
whereIds (line 237)

Fetch rows with the specified ids

  • access: public
void whereIds (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereIds array - Fetch rows with specific ids
withAcl (line 366)

Fetch access list data

  • access: public
void withAcl (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result: Result
  • array $options: Available options:
    • withAcl bool - Fetch acl data
  • &$result
withClassesAndStyles (line 477)

Fetch classes and styles data

  • access: public
void withClassesAndStyles (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result
  • array $options: Available options:
    • withClassesAndStyles bool - Fetch classes and styles data
    • withPublish bool - Fetch additional publish data
  • &$result
withCurrUserOwnLayer (line 1595)

Fetch rows owned by current user

  • access: public
void withCurrUserOwnLayer (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withCurrUserOwnLayer bool - Fetch rows owned by current user
withFields (line 557)

Fetch fields data

  • access: public
void withFields (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result: Result
  • array $options: Available options:
    • withFields bool - Fetch fields data
  • &$result
withGroups (line 139)

Fetch container data

  • access: public
void withGroups (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withGroups bool - Fetch with container rows
withLayerSettings (line 67)

Fetch layer settings data

  • access: public
void withLayerSettings (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withLayerSettings bool - Fetch rows with layer settings for current user
    • whereView string - Fetch rows with a specific "view" value (t,f)
    • whereSelect string - Fetch rows with a specific "select" (information) value (t,f)
    • whereEdit string - Fetch rows with a specific "edit" value (t,f)
    • orderDirection string - Order direction (ASC, DESC)
withMetadata (line 628)

Fetch metadata data

  • access: public
void withMetadata (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result
  • array $options: Available options:
    • withMetadata bool - Fetch metadata data
  • &$result
withOwsAcl (line 399)

Fetch OWS access list data

  • access: public
void withOwsAcl (Zend_Db_Select $select,  &$result, [ $options = array()], array $result)
  • Zend_Db_Select $select
  • array $result: Result
  • array $options: Available options:
    • withOwsAcl bool - Fetch OWS access list data
  • &$result
withOwsclient (line 1566)

Fetch ows client data

  • access: public
void withOwsclient (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options
withPermissions (line 1617)

Fetch permission data

  • access: public
void withPermissions (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereAdminLayers bool - Fetch rows that belong to admin role
    • whereUserLayers bool - Fetch rows that DO NOT belong to admin role
withPublish (line 167)

Fetch publish data

  • access: public
void withPublish (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withPublish bool - Fetch publish data
    • whereWmsPublic string - Fetch rows with a specific "wms_public" value (t,f)
    • whereWmsPrivate string - Fetch rows with a specific "wms_private" value (t,f)
    • whereWfsPublic string - Fetch rows with a specific "wfs_public" value (t,f)
    • whereWfsPrivate string - Fetch rows with a specific "wfs_private" value (t,f)
    • whereWcsPublic string - Fetch rows with a specific "wcs_public" value (t,f)
    • whereWcsPrivate string - Fetch rows with a specific "wcs_private" value (t,f)
withRouting (line 296)

Fetch routing data

  • access: public
void withRouting (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withRouting bool - Fetch routing data
    • whereRoutingActive string - Fetch rows with a specific "routing_active" value (t,f)
withRoutingCostCoefColumn (line 336)

Fetch routing cost coefficient data

  • access: public
void withRoutingCostCoefColumn (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • withRoutingCostCoefColumn string - Fetch rows with a specific cost coefficient column name
_getSearchScale (line 1053)

Get default search scale for point layer

  • access: protected
integer _getSearchScale ()
_populateRow (line 1071)

Pupulate with generic information the row from the $data form object

  • access: protected
void _populateRow (Zend_Db_Table_Row $row, Zend_Form $data, [ $rows = array()])
  • Zend_Db_Table_Row $row: Row
  • Zend_Form $data: A form object populated with request data
  • array $rows: Foreign rows

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, 23 Jan 2013 15:54:43 +0000 by phpDocumentor 1.4.3