function __construct() { // Initialise variables. $app = JFactory::getApplication('administrator'); parent::__construct(); // Set state variables from the request /*$this->setState('pagination.limit', $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int')); $this->setState('pagination.offset',$mainframe->getUserStateFromRequest(JACOMPONENT.'.limitstart.update', 'limitstart', 0, 'int')); $this->setState('pagination.total', 0);*/ // $this->coreExts = array("'com_mailto'", "'com_wrapper'", "'com_admin'", "'com_banners'", "'com_cache'", "'com_categories'", "'com_checkin'", "'com_contact'", "'com_cpanel'", "'com_installer'", "'com_languages'", "'com_login'", "'com_media'", "'com_menus'", "'com_messages'", "'com_modules'", "'com_newsfeeds'", "'com_plugins'", "'com_search'", "'com_templates'", "'com_weblinks'", "'com_content'", "'com_config'", "'com_redirect'", "'com_users'", "'mod_articles_archive'", "'mod_articles_latest'", "'mod_articles_popular'", "'mod_banners'", "'mod_breadcrumbs'", "'mod_custom'", "'mod_feed'", "'mod_footer'", "'mod_login'", "'mod_menu'", "'mod_articles_news'", "'mod_random_image'", "'mod_related_items'", "'mod_search'", "'mod_stats'", "'mod_syndicate'", "'mod_users_latest'", "'mod_weblinks'", "'mod_whosonline'", "'mod_wrapper'", "'mod_articles_category'", "'mod_articles_categories'", "'mod_languages'", "'mod_custom'", "'mod_feed'", "'mod_latest'", "'mod_logged'", "'mod_login'", "'mod_menu'", "'mod_online'", "'mod_popular'", "'mod_quickicon'", "'mod_status'", "'mod_submenu'", "'mod_title'", "'mod_toolbar'", "'mod_unread'", "'gmail'", "'joomla'", "'ldap'", "'emailcloak'", "'geshi'", "'loadmodule'", "'pagebreak'", "'pagenavigation'", "'vote'", "'codemirror'", "'none'", "'tinymce'", "'article'", "'image'", "'pagebreak'", "'readmore'", "'categories'", "'contacts'", "'content'", "'newsfeeds'", "'weblinks'", "'languagefilter'", "'p3p'", "'cache'", "'debug'", "'log'", "'redirect'", "'remember'", "'sef'", "'logout'", "'contactcreator'", "'joomla'", "'profile'", "'atomic'", "'rhuk_milkyway'", "'bluestork'", "'beez_20'", "'hathor'", "'beez5'"); $this->supportedTypes = array("'component'", "'module'", "'plugin'", "'template'"); }
function getState($property = null, $default = null) { static $set; if (!$set) { $folder = JRequest::getVar('folder', '', '', 'none'); //$folder = JPath::clean($folder); $this->setState('folder', $folder); $parent = str_replace("\\", "/", dirname($folder)); $parent = $parent == '.' ? null : $parent; $this->setState('parent', $parent); $set = true; } return parent::getState($property); }
function response() { $model = JAEMModel::getInstance('services', 'JaextmanagerModel'); $type = JRequest::getVar('type', 'admin_response'); if (!isset($item)) { $item = $model->getAdmin_response(); } $cid[0] = $item->item_id; $row = $model->getItem($cid); $item->item_title = $row ? $row->title : ''; $response = JFactory::getUser($item->user_id); $item->responsename = $response ? $response->username : ''; $this->assign('item', $item); $this->assign('type', $type); }
/** * Overridden constructor * @access protected */ function __construct() { parent::__construct(); }