0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Profile.php
Go to the documentation of this file.
1 <?
24 class Profile
25 {
26  public function getId() {
27  return ($this->_id);
28  }
29 
30  public function setId($id) {
31  $this->_id=$id;
32  }
33 
34  public function getGuid() {
35  return ($this->_guid);
36  }
37 
38  public function setGuid($guid) {
39  $this->_guid=$guid;
40  }
41 
42  public function getDisplayName() {
43  return ($this->_display_name);
44  }
45 
46  public function setDisplayName($name) {
47  $this->_display_name=$name;
48  }
49 
50  public function getPassword() {
51  return ($this->_password);
52  }
53 
54  public function setPasswordPlain($password) {
55  $this->_password=md5($password);
56  }
57 
58  public function setPasswordMd5($password) {
59  $this->_password=$password;
60  }
61 
62  public function checkPassword($password) {
63  if ($this->_password==md5($password))
64  return true;
65  return false;
66  }
67 
68  public function getEmail() {
69  return ($this->_email);
70  }
71 
72  public function setEmail($email) {
73  $this->_email=$email;
74  }
75 
76  public function getAvatar() {
77  return ($this->_avatar);
78  }
79 
80  public function setAvatar($avatar) {
81  $this->_avatar=$avatar;
82  }
83 
84  public function getLocation() {
85  return ($this->_location);
86  }
87 
88  public function setLocation($location) {
89  $this->_location=$location;
90  }
91 
92  public function getWebpage() {
93  return ($this->_webpage);
94  }
95 
96  public function setWebpage($webpage) {
97  $this->_webpage=$webpage;
98  }
99 
100  public function getBio() {
101  return ($this->_bio);
102  }
103 
104  public function setBio($bio) {
105  $this->_bio=$bio;
106  }
107 
108  protected $_guid;
109  protected $_id;
110  protected $_display_name;
111  protected $_password;
112  protected $_email;
113  protected $_avatar;
114  protected $_location;
115  protected $_webpage;
116  protected $_bio;
117 }
118 
119 ?>
setLocation($location)
Definition: Profile.php:88
getPassword()
Definition: Profile.php:50
getLocation()
Definition: Profile.php:84
getWebpage()
Definition: Profile.php:92
Copyright (C) 2007-2015 Hypertable, Inc.
Definition: Profile.php:24
getGuid()
Definition: Profile.php:34
setPasswordPlain($password)
Definition: Profile.php:54
setEmail($email)
Definition: Profile.php:72
$_location
Definition: Profile.php:114
getBio()
Definition: Profile.php:100
checkPassword($password)
Definition: Profile.php:62
getDisplayName()
Definition: Profile.php:42
setPasswordMd5($password)
Definition: Profile.php:58
getAvatar()
Definition: Profile.php:76
$_display_name
Definition: Profile.php:110
$_password
Definition: Profile.php:111
getEmail()
Definition: Profile.php:68
setId($id)
Definition: Profile.php:30
getId()
Definition: Profile.php:26
setWebpage($webpage)
Definition: Profile.php:96
setAvatar($avatar)
Definition: Profile.php:80
setBio($bio)
Definition: Profile.php:104
setDisplayName($name)
Definition: Profile.php:46
setGuid($guid)
Definition: Profile.php:38