Skip to content

User_fromDatabase

Strongbeard edited this page Nov 28, 2014 · 2 revisions

fromDatabase

USER

Summary

Constructor that draws user information from the database using a unique column key and value.

Synopsis

USER::fromDatabase( string $email );

Parameters

  • $email = String. Must be a valid email address and exist in the database.

Returns

Instance of the User class or null on failure to find the user in the database.

Exceptions

  • InvalidArgumentException = The email address is incorrectly formatted.
Clone this wiki locally