Get column definition
mixed
getColumnDefinition
([ $col = array()])
Get all containers of a specific layer id
array
getContainers
(integer $id)
Get layer table by layer id
Zend_Db_Table
getLayerTableById
(integer $id, [ $options = array()])
-
integer
$id: Layer id
-
array
$options: Available options
Get table XML definition
string
getTableDefinition
(integer $id)
Add item
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)
Add default layer settings to the result
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
Check if layer belongs to current user
void
checkCurrUserOwnLayer
(integer $id)
Edit item
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
Get the current editable layer
array
getEditLayer
()
Get editable tables for the current user
Zend_Db_Table
getEditTables
([ $options = array()])
-
array
$options: Available options
Get items
Zend_Db_Table_Rowset
getItems
([ $options = array()])
-
array
$options: Available options:
Parse the result
void
parse
(Zend_Db_Select $select, &$result, [ $options = array()], array $result)
-
Zend_Db_Select
$select
-
array
$result: Result
-
array
$options: Available options
-
&$result
Update wfs layers
void
updateWfsLayers
(array $rows)
Fetch rows with the specified ids
void
whereIds
(Zend_Db_Select $select, [ $options = array()])
-
Zend_Db_Select
$select
-
array
$options: Available options:
- whereIds array - Fetch rows with specific ids
Fetch access list data
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
Fetch classes and styles data
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
Fetch rows owned by current user
void
withCurrUserOwnLayer
(Zend_Db_Select $select, [ $options = array()])
-
Zend_Db_Select
$select
-
array
$options: Available options:
- withCurrUserOwnLayer bool - Fetch rows owned by current user
Fetch fields data
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
Fetch container data
void
withGroups
(Zend_Db_Select $select, [ $options = array()])
-
Zend_Db_Select
$select
-
array
$options: Available options:
- withGroups bool - Fetch with container rows
Fetch layer settings data
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)
Fetch metadata data
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
Fetch OWS access list data
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
Fetch ows client data
void
withOwsclient
(Zend_Db_Select $select, [ $options = array()])
-
Zend_Db_Select
$select
-
array
$options: Available options
Fetch permission data
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
Fetch publish data
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)
Fetch routing data
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)
Fetch routing cost coefficient data
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
Get default search scale for point layer
integer
_getSearchScale
()
Pupulate with generic information the row from the $data form object
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()