Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package wo2009
  4. * @subpackage library
  5. */
  6.  
  7. SomeLoader::import('library.some.user.iuser', SOME_PATH.DS.'interface',null);
  8.  
  9.  
  10. class SomeUser implements ISomeUser {
  11.  
  12.     public $id;
  13.     public $username;
  14.     public $password;
  15.     public $userrole;
  16.     public $email;
  17.     public $homepage;
  18.  
  19.     public function __construct() {
  20.    
  21.     }
  22.    
  23.     public function setId($id) { $this->id = $id;}
  24.     public function setUsername($username) { $this->username = $username;}
  25.     public function setPassword($pw) { $this->password = $pw;}
  26.     public function setUserrole($ur) { $this->userrole = $ur;}
  27.     public function setEmail($email) { $this->email = $email;}
  28.     public function setHomepage($hp) { $this->homepage = $hp;}
  29.    
  30.     public function getId()    { return $this->id;}
  31.     public function getUsername() { return $this->username;}
  32.     public function getPassword() { return $this->password;}
  33.     public function getUserrole() { return $this->userrole ? $this->userrole : 'guest'; }
  34.     public function getEmail()    { return $this->email;}
  35.     public function getHomepage() { return $this->homepage; }
  36.    
  37. //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement