Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User extends MysqlActiveRecord{
- private $name;
- private $lastName;
- private $email;
- private $password;
- private $creationDate;
- private $apiKey;
- public function __construct(){
- parent::__construct($this);
- }
- public function setEmail($email){
- $this->email = $email;
- }
- public function getEmail(){
- return $this-email;
- }
- public function isAuthenticated(){
- if(Session::get('is_logged_in')):
- return true;
- else:
- return false;
- endif;
- }
- }
Add Comment
Please, Sign In to add comment