Source for file Authentication.php

Documentation is available at Authentication.php

  1. <?php
  2.  
  3. abstract class Authentication implements Accountable
  4. {
  5.     private $account null;
  6.     
  7.     public function getAccount($user '')
  8.     {
  9.         if ($this->account !== null{
  10.             return $this->account;
  11.         else {
  12.             return AUTHENTICATION_ERR_MSG;
  13.         }
  14.     }
  15.     
  16.     public function isLoggedIn()
  17.     {
  18.         return ($this->account !== null);
  19.     }
  20.     
  21.     abstract public function login($user$password);
  22. }
  23.  
  24. ?>

Documentation generated on Mon, 26 Jul 2010 21:52:59 +0100 by phpDocumentor 1.4.3