Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package wo2009
- * @subpackage library
- */
- SomeLoader::import('library.some.user.iuser', SOME_PATH.DS.'interface',null);
- class SomeUser implements ISomeUser {
- public $id;
- public $username;
- public $password;
- public $userrole;
- public $email;
- public $homepage;
- public function __construct() {
- }
- public function setId($id) { $this->id = $id;}
- public function setUsername($username) { $this->username = $username;}
- public function setPassword($pw) { $this->password = $pw;}
- public function setUserrole($ur) { $this->userrole = $ur;}
- public function setEmail($email) { $this->email = $email;}
- public function setHomepage($hp) { $this->homepage = $hp;}
- public function getId() { return $this->id;}
- public function getUsername() { return $this->username;}
- public function getPassword() { return $this->password;}
- public function getUserrole() { return $this->userrole ? $this->userrole : 'guest'; }
- public function getEmail() { return $this->email;}
- public function getHomepage() { return $this->homepage; }
- //...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement