Class Register

Description

Regisztráció, és aktiváció

Csak egy kérelmet kell indítani. A többi automatikus. A kérelem visszaadja sikeres volt-e vagy sem.

Szerző weboldala: http://rimelek.hu/
Login weblapja: R.E. Login v2.0

Located in /classes/Register.class.php (line 44)


	
			
Method Summary
 static boolean activate (int $id, string $code)
 static int addUser (User $user)
 static string createHash (int $id, string $email)
 static string createLink (int $id, string $email, [string $file = null])
 static User createUser ()
 static array errors ()
 static array getRecord ()
 static array getValues ()
 static boolean isValidInput (User $user)
 static mixed request ()
Methods
static activate (line 307)

User aktiválása

  • return: True, ha sikeres volt, false, ha sikertelen
  • access: public
boolean activate (int $id, string $code)
  • int $id: User id-je
  • string $code: code Hash ($_GET['code'])
static addUser (line 244)

User felvétele adatbázisba

Az IsMySQLListClass osztály gondoskodik az objektumként kapott user adatbázisba viteléről

  • return: User id-je
  • access: public
int addUser (User $user)
  • User $user: Példányosított User objektum
static createHash (line 200)

Az aktivációs linkhez a code hash létrehozása

  • return: Code hash Base64 formában
  • access: public
string createHash (int $id, string $email)
  • int $id: User id-je
  • string $email: User email címe
static createLink (line 169)

Aktivációs link létrehozása

  • return: Aktivációs link
  • access: public
string createLink (int $id, string $email, [string $file = null])
  • int $id: User id-je
  • string $email: User email címe
  • string $file: Fájlnév, ahova az aktivációs link mutat
static createUser (line 256)

Egy új User létrehozása

  • return: Már az elészült User objektum
  • access: protected
User createUser ()
static errors (line 337)

Hibaüzenetek tömbje

  • access: public
array errors ()
static getRecord (line 67)
  • return: Lekérdezendő táblák+mezők
  • access: public
array getRecord ()
static getValues (line 84)

Űrlapmezők neveit kulcsként tartalmazó tömb visszaadása

  • access: public
array getValues ()
static isValidInput (line 95)

Megvizsgálja, érvényesek-e a megadott adatok

  • return: True, ha nincs hiba. És false, ha hibásak az adatok
  • access: public
boolean isValidInput (User $user)
  • User $user: Példányosított User objektum
static request (line 211)

Regisztráció kérelem

  • return: False, ha nem sikerült a regisztráció. Egyébként az új felhasználó azonosítója.
  • access: public
mixed request ()

Documentation generated on Sun, 04 Apr 2010 22:43:50 +0200 by phpDocumentor 1.4.1