Source for file contacts.php
Documentation is available at contacts.php
* @package Joomla.Administrator
* @subpackage com_contact
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Articles list controller class.
* @package Joomla.Administrator
* @subpackage com_contact
* @param array $config An optional associative array of configuration settings.
* @return ContactControllerContacts
* Method to toggle the featured setting of a list of contacts.
// Check for request forgeries
$ids =
$this->input->get('cid', array(), 'array');
$values =
array('featured' =>
1, 'unfeatured' =>
0);
foreach ($ids as $i =>
$id)
$item =
$model->getItem($id);
if (!$user->authorise('core.edit.state', 'com_contact.category.'.(int)
$item->catid))
// Prune items that you can't change.
if (!$model->featured($ids, $value))
$this->setRedirect('index.php?option=com_contact&view=contacts');
* @param string $name The name of the model.
* @param string $prefix The prefix for the PHP class name.
public function getModel($name =
'Contact', $prefix =
'ContactModel', $config =
array('ignore_request' =>
true))
$model =
parent::getModel($name, $prefix, $config);
* Function that allows child controller access to model data
* after the item has been deleted.
* @param JModelLegacy $model The data model object.
* @param integer $ids The array of ids for items being deleted.
Documentation generated on Tue, 19 Nov 2013 14:56:43 +0100 by phpDocumentor 1.4.3