Source for file styles.php
Documentation is available at styles.php
* @package Joomla.Administrator
* @subpackage com_templates
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Template styles list controller class.
* @package Joomla.Administrator
* @subpackage com_templates
* Method to clone and existing template style.
// Check for request forgeries
$pks =
$this->input->post->get('cid', array(), 'array');
throw
new Exception(JText::_('COM_TEMPLATES_NO_TEMPLATE_SELECTED'));
$this->setRedirect('index.php?option=com_templates&view=styles');
* @param string $name The model name. Optional.
* @param string $prefix The class prefix. Optional.
* @param array $config Configuration array for model. Optional.
public function getModel($name =
'Style', $prefix =
'TemplatesModel', $config =
array())
$model =
parent::getModel($name, $prefix, array('ignore_request' =>
true));
* Method to set the home template for a client.
// Check for request forgeries
$pks =
$this->input->post->get('cid', array(), 'array');
throw
new Exception(JText::_('COM_TEMPLATES_NO_TEMPLATE_SELECTED'));
// Pop off the first element.
$this->setRedirect('index.php?option=com_templates&view=styles');
* Method to unset the default template for a client and for a language
// Check for request forgeries
$pks =
$this->input->get->get('cid', array(), 'array');
throw
new Exception(JText::_('COM_TEMPLATES_NO_TEMPLATE_SELECTED'));
// Pop off the first element.
$this->setRedirect('index.php?option=com_templates&view=styles');
Documentation generated on Tue, 19 Nov 2013 15:14:41 +0100 by phpDocumentor 1.4.3