Add item
integer
addItem
(Zend_Form $data, [ $options = array()])
-
Zend_Form
$data: A form object populated with request data
-
array
$options: Available options:
- emailSecret string - Set the email secret to current user's account
Update item from admin panel
integer
adminEditItem
(integer $id, Zend_Filter_Input $data)
-
integer
$id: The id of the row to edit
-
Zend_Filter_Input
$data: A Zend_Filter_Input object populated with request data
Check if current user owns the table
void
checkCurrUserOwnTable
(string $tableName)
-
string
$tableName: Name of the table
Update item
void
editItem
(integer $id, Zend_Form $data)
-
integer
$id: The id of the row to edit
-
Zend_Form
$data: A form object populated with request data
Update language value
void
editLanguage
(integer $id, string $language)
-
integer
$id: The id of the row to edit
-
string
$language: Language
Get items
Zend_Db_Table_Rowset
getItems
([ $options = array()])
-
array
$options: Available options:
- whereId integer - Fetch rows that match the id
- whereNameLike string - Get elements with similar name
- whereAccount string - Fetch rows that match the account field
- whereIdsIn string - Get elements whose ids are in the string
- limit integer - Number of results to get
Get language
string
getLanguage
(integer $userId)
Get password
string
getPassword
(integer $userId)
Get all table names that belong to users
string
getTables
()
Update password
void
setPassword
(integer $userId, string $newPassword)
-
integer
$userId: User id
-
string
$newPassword: New password
Set lastlogin_date to current date
void
updateLastLoginDate
(integer $userId)
Fetch rows that match the text
void
whereIdentityLike
(Zend_Db_Select $select, [ $options = array()])
-
Zend_Db_Select
$select
-
array
$options: Available options:
- whereIdentityLike string - If option is set selects rows that match the text
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()