Class Giscuit_Db_Table_History

Description

Class for history table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_History
Variable Summary
 string $_name
 string $_primary
Method Summary
 addItem (Zend_Form $data, [ $options = array()]) integer
 ediItem (integer $id, [ $options = array()]) void
 getInactiveItems () Zend_Db_Table_Rowset
 getItem (integer $id, [array $options = NULL]) Zend_Db_Table_Row
 isAllowed (integer $id, [ $options = array()]) boolean
 setActive (integer $id, [bool $bool = false]) void
 setGidlist (integer $id, string $value) void
Variables
string $_name = 'history' (line 42)

Table name

  • access: protected
string $_primary = 'id' (line 35)

Table primary key name

  • access: protected

Redefinition of:
Giscuit_Db_Table_Abstract::$_primary
Table primary key name
Methods
addItem (line 141)

Add new item

  • return: The id of the new element
  • access: public
integer addItem (Zend_Form $data, [ $options = array()])
  • Zend_Form $data: Zend Form history data
  • array $options:
    • active t,f - Activate the new entry or not
    • withOutActivateUserId bool - activate_user_id field value
ediItem (line 229)

Update item

  • access: public
void ediItem (integer $id, [ $options = array()])
  • integer $id: Id of the required element
  • array $options:
    • bounds array - Extent bounds
getInactiveItems (line 186)

Get inactive items

  • access: public
Zend_Db_Table_Rowset getInactiveItems ()
getItem (line 53)

Get item

  • access: public
Zend_Db_Table_Row getItem (integer $id, [array $options = NULL])
  • integer $id: Id of the required element
  • array $options: Available options:
    • withGidlist bool - Include gidlist field in the result
    • whereFetchUserId integer - Get only elements with given fetch_user_id
isAllowed (line 255)

Check if current user can activate package

  • access: public
boolean isAllowed (integer $id, [ $options = array()])
  • integer $id: The id of the row to check
  • array $options
setActive (line 94)

Set active field

  • access: public
void setActive (integer $id, [bool $bool = false])
  • integer $id: Id of the required element
  • bool $bool: If true sets active, false sets inactive
setGidlist (line 122)

Set value for gidlist

  • access: public
void setGidlist (integer $id, string $value)
  • integer $id: Id of the required element
  • string $value: Gidlist value

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