joomla/com_wk1_3/site/models/wk1.php
<?php
/**
* @package Joomla.Administrator
* @subpackage com_wk1
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
/**
* wk1 Model
*
* @since 0.0.2
*/
class Wk1ModelWk1 extends JModelItem
{
protected $title;
protected $list;
public function __construct() {
parent::__construct();
wkTrace('__construct');
$this->title = 'wk1 component title menuTxt=' . JFactory::getApplication()->input->get('menuTxt', 'undefined', 'string');
$this->list = array ( 'Wk1ModelWk1 default list from __file__' => __file__
, 'SERVER[REQUEST_METHOD]' => $_SERVER['REQUEST_METHOD']
, 'SERVER[REQUEST_URI]' => $_SERVER['REQUEST_URI']
, '$_GET' => print_r($_GET, true)
, '$_POST' => print_r($_POST, true)
, 'headers_list()' => print_r(headers_list(), true)
, 'headers_sent()' => print_r(headers_sent(), true)
, 'JURI toString' => JURI::getInstance()->toString()
, 'JURI' => print_r(JURI::getInstance(), true)
, 'application->scope (component)' => ($com = JFactory::getApplication()->scope)
, 'component' => print_r(JComponentHelper::getComponent($com), true)
, 'menu' => print_r(JFactory::getApplication()->getMenu()->getActive(), true)
, 'app input' => print_r(JFactory::getApplication()->input, true)
);
}
public function getTitle()
{
return $this->title;
}
public function getList()
{
wkTrace('getList');
return $this->list;
}
}