Class Giscuit_Db_Table_Layer_History

Description

History class for table

  • copyright: Copyright (c) 2012 VEC

Located in /Db/Table/Layer/History.php (line 31)

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Layer_Abstract
         |
         --Giscuit_Db_Table_Layer_History
Variable Summary
Method Summary
 __construct ([ $options = array()]) void
 activateHistory (integer $hId, Giscuit_Db_Table_Layer_Abstract $table) void
 addFromParent (integer $gid, Giscuit_Db_Table_Layer_Abstract $table, [ $options = array()]) integer
 addItemForHistory (array $data, [ $options = array()]) array
 clearHistory (integer $hId, integer $userId) void
 getHistoryVersions (integer $gid) mixed
 _historyInterval (Zend_Db_Select $select) void
 _joinTablesCallback (Zend_Db_Select $select) void
 _populateRow (Zend_Db_Table_Row_Abstract $hRow, Zend_Db_Table_Row_Abstract $row) Zend_Db_Table_Row_Abstract
 _publicFieldsCallback ( $fieldsArr, [ $options = array()]) array
 _selectCallback (Zend_Db_Select $select, [ $options = array()]) void
Variables
Methods
Constructor __construct (line 58)

Constructor

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

Redefinition of:
Giscuit_Db_Table_Layer_Abstract::__construct()
Constructor
activateHistory (line 90)

Activate temporary changes

  • access: public
void activateHistory (integer $hId, Giscuit_Db_Table_Layer_Abstract $table)
addFromParent (line 396)

Add a history row from the row's current state and return it's id

  • access: public
integer addFromParent (integer $gid, Giscuit_Db_Table_Layer_Abstract $table, [ $options = array()])
  • integer $gid: Row id
  • Giscuit_Db_Table_Layer_Abstract $table: Layer table
  • array $options:
    • hstatus string - Type of the modification C(create) U(update) D(delete)
addItemForHistory (line 299)

Add row with history

  • access: public
array addItemForHistory (array $data, [ $options = array()])
  • array $data: Data
  • array $options: Available options:
    • geometry string - Geometry in WKT format
clearHistory (line 171)

Clear temporary changes

  • access: public
void clearHistory (integer $hId, integer $userId)
  • integer $hId
  • integer $userId
getHistoryVersions (line 444)

Get all changes of a specified row

  • access: public
mixed getHistoryVersions (integer $gid)
  • integer $gid: Row id
_historyInterval (line 273)

Fetch rows that match an interval specified by $settings->historyDateBegin and $settings->historyDateEnd

  • access: protected
void _historyInterval (Zend_Db_Select $select)
  • Zend_Db_Select $select
_joinTablesCallback (line 356)

Join history tables

  • access: protected
void _joinTablesCallback (Zend_Db_Select $select)
  • Zend_Db_Select $select

Redefinition of:
Giscuit_Db_Table_Layer_Abstract::_joinTablesCallback()
Called after _joinTables
_populateRow (line 151)

Populate row

  • access: protected
Zend_Db_Table_Row_Abstract _populateRow (Zend_Db_Table_Row_Abstract $hRow, Zend_Db_Table_Row_Abstract $row)
  • Zend_Db_Table_Row_Abstract $hRow: History layer row
  • Zend_Db_Table_Row_Abstract $row: Layer row
_publicFieldsCallback (line 321)

Add history fields (created_by, verified_by, changed_date)

  • access: protected
array _publicFieldsCallback ( $fieldsArr, [ $options = array()])
  • array $fieldsArr
  • array $options: Available options

Redefinition of:
Giscuit_Db_Table_Layer_Abstract::_publicFieldsCallback()
Called after getPublicFields
_selectCallback (line 218)

Apply custom history logic. By default will show the latest version of rows with out the deleted ones in a given interval specified by $settings->historyDateBegin and $settings->historyDateEnd

  • access: protected
void _selectCallback (Zend_Db_Select $select, [ $options = array()])
  • Zend_Db_Select $select
  • array $options: Available options:
    • whereHistoryId integer - Show only temporary changes for the specified value
    • whereRawHistory bool - Show all changes

Redefinition of:
Giscuit_Db_Table_Layer_Abstract::_selectCallback()
Is called after getSelect to apply custom logic

Inherited Methods

Inherited From Giscuit_Db_Table_Layer_Abstract

 Giscuit_Db_Table_Layer_Abstract::__construct()
 Giscuit_Db_Table_Layer_Abstract::addBbox()
 Giscuit_Db_Table_Layer_Abstract::addItemForEditCallback()
 Giscuit_Db_Table_Layer_Abstract::addLabelFields()
 Giscuit_Db_Table_Layer_Abstract::deleteItemForEditCallback()
 Giscuit_Db_Table_Layer_Abstract::formatInfoResults()
 Giscuit_Db_Table_Layer_Abstract::formatSearchResults()
 Giscuit_Db_Table_Layer_Abstract::getArea()
 Giscuit_Db_Table_Layer_Abstract::getByField()
 Giscuit_Db_Table_Layer_Abstract::getByPoint()
 Giscuit_Db_Table_Layer_Abstract::getDefaultField()
 Giscuit_Db_Table_Layer_Abstract::getItemForAddCallback()
 Giscuit_Db_Table_Layer_Abstract::getItemForEditCallback()
 Giscuit_Db_Table_Layer_Abstract::getItems()
 Giscuit_Db_Table_Layer_Abstract::getMaxAndMinValues()
 Giscuit_Db_Table_Layer_Abstract::getPublicFields()
 Giscuit_Db_Table_Layer_Abstract::getRandomValues()
 Giscuit_Db_Table_Layer_Abstract::getSelect()
 Giscuit_Db_Table_Layer_Abstract::getSettings()
 Giscuit_Db_Table_Layer_Abstract::getUniqueColumnValues()
 Giscuit_Db_Table_Layer_Abstract::init()
 Giscuit_Db_Table_Layer_Abstract::joinTables()
 Giscuit_Db_Table_Layer_Abstract::parseGeometryBeforeEdit()
 Giscuit_Db_Table_Layer_Abstract::setSettings()
 Giscuit_Db_Table_Layer_Abstract::updateItemForEditCallback()
 Giscuit_Db_Table_Layer_Abstract::_filter()
 Giscuit_Db_Table_Layer_Abstract::_joinTablesCallback()
 Giscuit_Db_Table_Layer_Abstract::_publicFieldsCallback()
 Giscuit_Db_Table_Layer_Abstract::_querybuilder()
 Giscuit_Db_Table_Layer_Abstract::_querybuilderCallback()
 Giscuit_Db_Table_Layer_Abstract::_selectCallback()

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 Mon, 19 Aug 2013 07:50:16 +0000 by phpDocumentor 1.4.3