Class mosUser

Description

Users Table Class

Provides access to the mos_templates table

  • author: Andrew Eddie <eddieajau@users.sourceforge.net

Located in /includes/core.classes.php (line 1997)

mosDBAbstractRow
   |
   --mosDBTable
      |
      --mosUser
Variable Summary
 string $activation
 int $block
 string $email
 int $gid
 int $grp
 int $id
 datetime $lastvisitDate
 string $name
 string $params
 string $password
 datetime $registerDate
 string $username
 string $usertype
Method Summary
 mosUser mosUser (database 0)
 boolean check ()
 void delete ([ $oid = null])
 void getSession ()
 void getSessionData ()
 void isAdmin ()
 void store ([ $updateNulls = false])
Variables
string $activation = null (line 2023)
  • var: activation hash
int $block = null (line 2011)
string $email = null (line 2005)
  • var: email
int $gid = null (line 2015)
  • var: The group id number
int $grp = null (line 2017)
  • var: Group number from ACL
int $id = null (line 1999)
  • var: Unique id
datetime $lastvisitDate = null (line 2021)
string $name = null (line 2001)
  • var: The users real name (or nickname)
string $params = null (line 2025)
string $password = null (line 2007)
  • var: MD5 encrypted password
datetime $registerDate = null (line 2019)
int $sendEmail = null (line 2013)
string $username = null (line 2003)
  • var: The login name
string $usertype = null (line 2009)

Inherited Variables

Inherited from mosDBTable

mosDBTable::$_db

Inherited from mosDBAbstractRow

mosDBAbstractRow::$_error
mosDBAbstractRow::$_tbl
mosDBAbstractRow::$_tbl_key
Methods
Constructor mosUser (line 2030)
mosUser mosUser (database 0)
  • database 0: A database connector object
check (line 2064)

Validation and filtering

  • return: True is satisfactory
boolean check ()

Redefinition of:
mosDBAbstractRow::check()
generic check method
delete (line 2118)
void delete ([ $oid = null])
  • $oid

Redefinition of:
mosDBTable::delete()
Default delete method
getSession (line 2053)
void getSession ()
getSessionData (line 2045)

Fill a user object with information from the current session

void getSessionData ()
isAdmin (line 2038)

Return true if this user is an administrator, false otherwise

void isAdmin ()
store (line 2091)
void store ([ $updateNulls = false])
  • $updateNulls

Redefinition of:
mosDBTable::store()
Inserts a new row if id is zero or updates an existing row in the database table

Inherited Methods

Inherited From mosDBTable

 mosDBTable::bind()
 mosDBTable::checkin()
 mosDBTable::checkout()
 mosDBTable::delete()
 mosDBTable::filter()
 mosDBTable::get()
 mosDBTable::getError()
 mosDBTable::getPublicProperties()
 mosDBTable::hit()
 mosDBTable::load()
 mosDBTable::publish_array()
 mosDBTable::queryTestFailure()
 mosDBTable::save()
 mosDBTable::set()
 mosDBTable::store()
 mosDBTable::toXML()

Inherited From mosDBAbstractRow

 mosDBAbstractRow::mosDBAbstractRow()
 mosDBAbstractRow::check()
 mosDBAbstractRow::lacks()
 mosDBAbstractRow::move()
 mosDBAbstractRow::updateOrder()

Documentation generated on Mon, 05 May 2008 16:19:02 +0400 by phpDocumentor 1.4.0