__construct() 공개 메소드

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
예제 #1
0
 public function __construct($account, $staffID, $staffNo, $name)
 {
     parent::__construct($accountID, $username, $password);
     $this->staffID = $staffID;
     $this->staffNo = $staffNo;
     $this->name = $name;
 }
예제 #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);
 }
예제 #3
0
 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';
     }
 }
예제 #4
0
파일: Gtalk.php 프로젝트: didww/php-sdk
 /**
  *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");
 }
예제 #6
0
 function __construct($name, AssetType $type, Unit $unit)
 {
     $actype = new AccountType($type, $unit);
     parent::__construct($name, $actype);
 }
예제 #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();
     }
 }
예제 #8
0
파일: user.php 프로젝트: camigreen/ttop
 public function __construct()
 {
     parent::__construct();
 }