Class Giscuit_Db_Table_Jobs

Description

Class for Jobs table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Jobs
Variable Summary
 string $_name
 string $_primary
Method Summary
 addItem (Zend_Form $data, array $geometry) integer
 editItem (intreger $id, Zend_Form $data) void
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
 getTotal ([ $options = array()]) Zend_Db_Table_Row
 updateStatus (integer $id, string $status) void
 withActions (Zend_Db_Select $select, array $result, [ $options = array()]) array
Variables
string $_name = 'jobs' (line 36)

Table name

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

Table primary key name

  • access: protected

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

Add item

  • return: The id of the new element
  • access: public
integer addItem (Zend_Form $data, array $geometry)
  • Zend_Form $data: A form object populated with request data
  • array $geometry: Array with x and y coordinates of a point
editItem (line 190)

Edit item

  • access: public
void editItem (intreger $id, Zend_Form $data)
  • intreger $id: The id of the row to edit
  • Zend_Form $data: A form object populated with request data
getItems (line 56)

Get items

  • access: public
Zend_Db_Table_Rowset getItems ([ $options = array()])
  • array $options: Available options:
    • limit integer - Number of results to get
    • offset integer - Offset number
    • whereStatus string - Fetch jobs with these statuses
    • allActiveJobs boolean - Fetch all active jobs
    • order string - Sort column name and direction
getTotal (line 141)

Get total number of jobs

  • access: public
Zend_Db_Table_Row getTotal ([ $options = array()])
  • array $options: Available options:
    • whereStatus string - Fetch jobs with these statuses
updateStatus (line 123)

Update status

  • access: public
void updateStatus (integer $id, string $status)
  • integer $id: The id of the job
  • string $status: New status
withActions (line 221)

Fetch actions data

  • return: Parsed result
  • access: public
array withActions (Zend_Db_Select $select, array $result, [ $options = array()])
  • Zend_Db_Select $select
  • array $result
  • array $options: Available options:
    • withActions bool - Fetch actions data

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