SHARE
TWEET

Untitled

a guest Jun 8th, 2017 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.    
  3.     include_once(APPPATH . INTERFACE_PATH . 'IUser' . EXT);
  4.     include_once(APPPATH . CLASS_PATH . 'Encryption' . EXT);
  5.    
  6.     final class User extends Encryption implements IUser
  7.     {
  8.         private $_username;
  9.         private $_password;
  10.         private $_email;
  11.        
  12.         public function SetUserData(StdClass $data)
  13.         {
  14.             $this->_username = $data->Username;
  15.             $this->_password = self::EncryptPassword($data->Password);
  16.             $this->_email = $data->Email;
  17.         }
  18.        
  19.         public function Username()
  20.         {
  21.             return (string)$this->_username;
  22.         }
  23.         public function Password()
  24.         {
  25.             return (string)$this->_password;
  26.         }
  27.         public function Email()
  28.         {
  29.             return (string)$this->_email;
  30.         }
  31.     }
  32.  
  33. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top