Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10 class User_Model extends Auth_User_Model
- 11 {
- 12 //ORM array, many to many related to events, roles, sororities
- 13 protected $has_and_belongs_to_many = array('events','roles','sororities');
- 14 public function __construct($id = FALSE)
- 15 {
- 16 parent::__construct($id);
- 17 }
- 18
- 19 public function __get($key)
- 20 {
- 21 return parent::__get($key);
- 22 }
- 23
- 24 public function __set($key,$value)
- 25 {
- 26 return parent::__set($key,$value);
- 27 }
- 28 //when object is destructed save it to the DBMS
- 29 //allows the idea of persistant objects
- 30 public function __destruct()
- 31 {
- 32 $this->save();
- 33 }
- 34
- 35
- 36 }
Add Comment
Please, Sign In to add comment