__construct() public method

Instantiates a user account. This is passed either "anonymous" or the Account ID as the constructor parameter. User account login is done via the login method below.
public __construct ( mixed $accountID )
$accountID mixed
Beispiel #1
0
 public function __construct($account, $staffID, $staffNo, $name)
 {
     parent::__construct($accountID, $username, $password);
     $this->staffID = $staffID;
     $this->staffNo = $staffNo;
     $this->name = $name;
 }
Beispiel #2
0
 /**
  * Giro Account constructor.
  *
  * @param int $number
  * @param float $balance
  * @param int $credit
  */
 public function __construct($number = 12345, $balance = 0.0, $credit = 0)
 {
     if ($credit >= 0) {
         $this->credit = $credit;
     }
     parent::__construct($number, $balance);
 }
 public function __construct($username, $password)
 {
     parent::__construct($username);
     $this->password = $password;
     $selector = new DBSelect('localhost', 'root', '', 'mydb');
     $result = $selector->hasUserUsername($this->getUsername());
     if ($result) {
         $password = $selector->selectUserPassword($this->getUsername());
         if ($this->password == $password) {
             $this->loggedIn = true;
         } else {
             echo 'password';
         }
     } else {
         echo 'username';
     }
 }
Beispiel #4
0
 /**
  *Class constructor
  * @param string $account
  */
 function __construct($account)
 {
     parent::__construct($account);
     $this->mapType = 'GTALK';
 }
 public function __construct()
 {
     parent::__construct();
     $this::$clients = array("10102060000786786720" => "Andrzej Kowalski", "10105040000367586543" => "Karol Nieb³ocki", "10128060000347526750" => "Stefan Nowak", "10158060000353555786" => "Mateusz Szperkowski");
 }
 function __construct($name, AssetType $type, Unit $unit)
 {
     $actype = new AccountType($type, $unit);
     parent::__construct($name, $actype);
 }
Beispiel #7
0
 function __construct($uniqueID = DEFAULT_UNIQUE_ID, $screenName = "", $password = "", $email = "", $accessLevel = 2, $name = "")
 {
     parent::__construct($uniqueID, $screenName, $password, $email, $accessLevel);
     if ($uniqueID == DEFAULT_UNIQUE_ID) {
         if ($name != "") {
             $this->setName($name);
         }
     } else {
         $this->load();
     }
 }
Beispiel #8
0
 public function __construct()
 {
     parent::__construct();
 }