public function render() { //app $this->app = JFactory::getApplication(); //load reports menu bar $this->menu = TemplateHelper::loadReportMenu(); //get document $this->document = JFactory::getDocument(); //determine view layout $this->layout = $this->getLayout(); $func = "_display_" . $this->layout; if (method_exists($this, $func)) { $this->{$func}(); } //assign user filter priviliges $this->member_role = UsersHelper::getRole(); $this->user_id = UsersHelper::getUserId(); $this->team_id = UsersHelper::getTeamId(); //if the user is not basic then they are able to filter through company/team/user data if ($this->member_role != 'basic') { //exec can see teams if ($this->member_role == 'exec') { $this->teams = UsersHelper::getTeams(); } //manager and exec users $this->users = UsersHelper::getUsers(); } //assign team names for drop downs $this->team_names = DropdownHelper::getTeamNames(); //assign user names for drop downs $this->user_names = DropdownHelper::getUserNames(); //assign categories for drop downs $this->categories = NoteHelper::getCategories(); //display return parent::render(); }