first commit
This commit is contained in:
53
administrator/components/com_j2xml/controllers/fields.php
Normal file
53
administrator/components/com_j2xml/controllers/fields.php
Normal file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Administrator
|
||||
* @subpackage com_j2xml
|
||||
*
|
||||
* @version 3.9.229-rc1
|
||||
* @since 3.7.172
|
||||
*
|
||||
* @author Helios Ciancio <info (at) eshiol (dot) it>
|
||||
* @link https://www.eshiol.it
|
||||
* @copyright Copyright (C) 2010 - 2023 Helios Ciancio. All Rights Reserved
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL v3
|
||||
* J2XML is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License
|
||||
* or other free or open source software licenses.
|
||||
*/
|
||||
|
||||
// no direct access
|
||||
defined('_JEXEC') or die();
|
||||
|
||||
/**
|
||||
* Content controller class.
|
||||
*/
|
||||
class J2xmlControllerFields extends JControllerLegacy
|
||||
{
|
||||
|
||||
function __construct ($default = array())
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function display ($cachable = false, $urlparams = false)
|
||||
{
|
||||
$this->input->set('view', 'fields');
|
||||
parent::display($cachable, $urlparams);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export fields in XML format
|
||||
*/
|
||||
function export ()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or jexit('Invalid Token');
|
||||
|
||||
$cid = $this->input->post->get('cid', array(
|
||||
0
|
||||
), 'array');
|
||||
$ids = 'cid=' . implode(',', $cid);
|
||||
$this->setRedirect('index.php?option=com_j2xml&task=fields.display&format=raw&' . $ids);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user