daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. if ( ! defined('SB_ENGINE_PATH')) exit('No direct script access allowed');
  3. /**
  4.  * @package sambhuti
  5.  * @author Piyush Mishra<me[at]piyushmishra[dot]com>
  6.  */
  7.  
  8. class user
  9. {
  10.     var $uid;
  11.     var $firstname;
  12.     var $lastname;
  13.     var $slug;
  14.     var $email;
  15.     function __construct($val=false)
  16.     {
  17.         if(is_array($val))
  18.         {
  19.             $this->uid      =   $val['uid'];
  20.             $this->firstname=   $val['firstname'];
  21.             $this->lastname =   $val['lastname'];
  22.             $this->slug     =   $val['slug'];
  23.             $this->email    =   $val['email'];
  24.         }
  25.     }
  26.     function __sleep()
  27.     {
  28.         return array('uid','firstname','lastname','slug','email');
  29.     }
  30. }
  31.  
  32. /**
  33.  * End of file User
  34.  */
RAW Paste Data
Top