Esempio n. 1
0
 /**
  * Sets the user context for this class. It basically allows two methods of using this class, either by constructing it or manually setting it.
  * 
  * @param $subject_id  int
  * @param $role_set object
  * 
  * @return null
  */
 public function set_user($subject_id, RoleSet $role_set = null)
 {
     parent::__construct($subject_id, $role_set);
     $this->user_data['id'] = $subject_id;
 }