FANDOM



Description Edit

User.php implements the User class, which encapsulates all of the user-specific settings (user_id, name, rights, password, email address, options, last login time). Client classes use the getXXX() functions to access these fields. These functions do all the work of determining whether the user is logged in, whether the requested option can be satisfied from cookies or whether a database query is needed. Most of the settings needed for rendering normal pages are set in the cookie to minimize use of the database. 



createAndPromote.php uses User::newFromName(), User::addToDatabase(), and User::saveSettings().



Static factory methodsEdit

  • static newFromName ($name, $validate= 'valid')
  • static newFromId ($id)
  • static newFromConfirmationCode ($code)
  • static newFromSession (WebRequest $request=null)
  • static newFromRow ($row, $data=null)



Other methodsEdit

There are a whole host of other ones.

  • getId ()
  • getName ()



See alsoEdit



Language: English

 

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.