1 | <?php |
||
21 | class PendingUser extends User |
||
22 | { |
||
23 | protected $intData = array(); |
||
24 | |||
25 | /** An instance of the Settings class */ |
||
26 | protected $settings; |
||
27 | /** The prfiles app URL */ |
||
28 | protected $profilesUrl; |
||
29 | |||
30 | public function __construct() |
||
31 | { |
||
32 | parent::__construct(); |
||
33 | $this->settings = \Settings::getInstance(); |
||
34 | $this->profilesUrl = $this->settings->getGlobalSetting('profiles_url', 'https://profiles.burningflipside.com/'); |
||
35 | } |
||
36 | |||
37 | public function getHash() |
||
41 | |||
42 | public function getRegistrationTime() |
||
46 | |||
47 | /** |
||
48 | * Is this user in the Group or a child of that group? |
||
49 | * |
||
50 | * @param string $name The name of the group to check if the user is in |
||
51 | * |
||
52 | * @return boolean True if the user is in the group, false otherwise |
||
53 | */ |
||
54 | public function isInGroupNamed($name) |
||
58 | |||
59 | public function __get($propName) |
||
67 | |||
68 | public function __set($propName, $value) |
||
72 | |||
73 | public function __isset($propName) |
||
77 | |||
78 | /** |
||
79 | * Get the user's password as specified during registration |
||
80 | * |
||
81 | * We need the ability to obtain the user's unhashed plain text password to allow for it to be sent |
||
82 | * to the correct backend which will hash it |
||
83 | * |
||
84 | * @return boolean|string The current password |
||
85 | */ |
||
86 | public function getPassword() |
||
90 | |||
91 | /** |
||
92 | * Serialize the user data into a format usable by the json_encode method |
||
93 | * |
||
94 | * @return array A simple keyed array representing the user |
||
95 | */ |
||
96 | public function jsonSerialize() |
||
110 | |||
111 | public function sendEmail() |
||
131 | |||
132 | public function delete() |
||
135 | } |
||
136 | /* vim: set tabstop=4 shiftwidth=4 expandtab: */ |
||
137 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.