Class Giscuit_Db_Table_Users

Description

Class for users table

  • copyright: Copyright (c) 2012 VEC

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

Zend_Db_Table_Abstract
   |
   --Giscuit_Db_Table_Abstract
      |
      --Giscuit_Db_Table_Users
Variable Summary
 string $_name
Method Summary
 addItem (Zend_Form $data, [ $options = array()]) integer
 adminEditItem (integer $id, Zend_Filter_Input $data) integer
 checkCurrUserOwnTable (string $tableName) void
 editItem (integer $id, Zend_Form $data) void
 editLanguage (integer $id, string $language) void
 getItems ([ $options = array()]) Zend_Db_Table_Rowset
 getLanguage (integer $userId) string
 getPassword (integer $userId) string
 getTables () string
 setPassword (integer $userId, string $newPassword) void
 updateLastLoginDate (integer $userId) void
 whereIdentityLike (Zend_Db_Select $select, [ $options = array()]) void
Variables
string $_name = 'users' (line 36)

Table name

  • access: protected

Inherited Variables

Inherited from Giscuit_Db_Table_Abstract

Giscuit_Db_Table_Abstract::$_primary
Methods
addItem (line 136)

Add item

  • return: The id of the new element
  • access: public
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
adminEditItem (line 240)

Update item from admin panel

  • return: The id of the element
  • access: public
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
checkCurrUserOwnTable (line 351)

Check if current user owns the table

  • access: public
void checkCurrUserOwnTable (string $tableName)
  • string $tableName: Name of the table
editItem (line 208)

Update item

  • access: public
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
editLanguage (line 273)

Update language value

  • access: public
void editLanguage (integer $id, string $language)
  • integer $id: The id of the row to edit
  • string $language: Language
getItems (line 49)

Get items

  • access: public
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
getLanguage (line 310)

Get language

  • return: Users language
  • access: public
string getLanguage (integer $userId)
  • integer $userId: User id
getPassword (line 296)

Get password

  • return: Users password in md5
  • access: public
string getPassword (integer $userId)
  • integer $userId: User id
getTables (line 375)

Get all table names that belong to users

  • return: All users tables
  • access: public
string getTables ()
setPassword (line 325)

Update password

  • access: public
void setPassword (integer $userId, string $newPassword)
  • integer $userId: User id
  • string $newPassword: New password
updateLastLoginDate (line 185)

Set lastlogin_date to current date

  • access: public
void updateLastLoginDate (integer $userId)
  • integer $userId: User id
whereIdentityLike (line 115)

Fetch rows that match the text

  • access: public
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()

Documentation generated on Wed, 28 May 2014 08:33:25 +0000 by phpDocumentor 1.4.3