Add item
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
Edit item
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
Get items
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
Get total number of jobs
Zend_Db_Table_Row
getTotal
([ $options = array()])
-
array
$options: Available options:
- whereStatus string - Fetch jobs with these statuses
Update status
void
updateStatus
(integer $id, string $status)
-
integer
$id: The id of the job
-
string
$status: New status
Fetch actions data
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()