Source for file banners.php
Documentation is available at banners.php
* @package Joomla.Administrator
* @subpackage com_banners
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Banners list controller class.
* @package Joomla.Administrator
* @subpackage com_banners
* @var string The prefix to use with controller messages.
* @param array An optional associative array of configuration settings.
public function getModel($name =
'Banner', $prefix =
'BannersModel', $config =
array('ignore_request' =>
true))
$model =
parent::getModel($name, $prefix, $config);
// Check for request forgeries.
$ids =
$this->input->get('cid', array(), 'array');
$values =
array('sticky_publish' =>
1, 'sticky_unpublish' =>
0);
// Change the state of the records.
if (!$model->stick($ids, $value))
$ntext =
'COM_BANNERS_N_BANNERS_STUCK';
$ntext =
'COM_BANNERS_N_BANNERS_UNSTUCK';
$this->setRedirect('index.php?option=com_banners&view=banners');
Documentation generated on Tue, 19 Nov 2013 14:54:20 +0100 by phpDocumentor 1.4.3