function display($tpl = null) { $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_PROFILE_LABEL_APPLICATIONS')); $apps = new Applications(); // contains the user object $rows = $apps->getUserDeviceList(); foreach ($rows as $row) { $row->isAuthorized = $apps->isAuthorized($row->authorized); } $this->assignRef('userDevices', $rows); parent::display($tpl); }