Beispiel #1
0
 /**
  * __construct()
  *
  * @access public
  * @param {class} $os The os.
  */
 public function __construct(os $os)
 {
     if (!$os->session_exists()) {
         die('Session does not exist!');
     }
     $this->member_id = $os->get_member_id();
     $this->group_id = $os->get_group_id();
     if (!isset($this->member_id, $this->group_id)) {
         die('Member/Group not found!');
     }
     $this->os = $os;
     $this->member_info = $this->get_member_info();
     $this->preferences = $this->get_preferences();
 }