Class Giscuit_Db_Table_Mapstats

Description

Class for mapstats table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Mapstats
Variable Summary
 string $_name
Method Summary
 addItem (array $data) integer
 getChartItems ([ $options = array()]) Zend_Db_Table_Rowset
 getTotals ([ $options = array()]) Zend_Db_Table_Rowset
 whereAccesses (Zend_Db_Select $select, [ $options = array()]) void
 whereAccountLike (Zend_Db_Select $select, [ $options = array()]) void
 whereDateInterval (Zend_Db_Select $select, [ $options = array()]) void
 whereServices (Zend_Db_Select $select, [ $options = array()]) void
Variables
string $_name = 'mapstats' (line 36)

Table name

  • access: protected

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addItem (line 226)

Add item

  • return: Row id
  • access: public
integer addItem (array $data)
  • array $data: Statistics data:
    • service integer - Service type
    • access integer - Access type
    • layers string - Requested layers separated by comma
    • size integer - Size of the data requested
    • user_id integer - If option is set saves the id of the requesting user
    • imageSize array - Size in width and height of the image
    • extent array - Extent of the window
getChartItems (line 184)

Get data for charts

  • access: public
Zend_Db_Table_Rowset getChartItems ([ $options = array()])
  • array $options: Available options:
    • interval integer - Number of intervals to create
    • whereServices array - Fetch rows that match the services
    • whereAccesses array - Fetch rows that match the accesses
    • whereDateInterval array - Get elements between the start time and end time
    • whereAccountLike string - Get elements with users.account like the passed string
getTotals (line 48)

Get service requests totals

  • access: public
Zend_Db_Table_Rowset getTotals ([ $options = array()])
  • array $options: Available options:
    • whereServices array - Fetch rows that match the services
    • whereAccesses array - Fetch rows that match the accesses
    • whereDateInterval array - Get elements between the start time and end time
    • whereAccountLike string - Get elements with users.account like the passed string
whereAccesses (line 153)

Fetch rows that match the access field

  • access: public
void whereAccesses (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereAccesses array - If option is set selects rows with the given accesses
whereAccountLike (line 82)

Fetch rows that partially or totally match the users.account field

  • access: public
void whereAccountLike (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereAccountLike string - If option is set selects rows with account like the value
whereDateInterval (line 127)

Fetch rows that are between date fields

  • access: public
void whereDateInterval (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereDateInterval array - If option is set selects rows between the given dates
whereServices (line 105)

Fetch rows that match the service field

  • access: public
void whereServices (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereServices array - If option is set selects rows with the given services

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:54 +0000 by phpDocumentor 1.4.3