Source for file messages.php
Documentation is available at messages.php
* @package Joomla.Administrator
* @subpackage com_messages
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* @subpackage com_messages
* @param int $value The state value
public static function state($value =
0, $i, $canChange)
// Array of image, task, title, action.
-
2 =>
array('trash.png', 'messages.unpublish', 'JTRASHED', 'COM_MESSAGES_MARK_AS_UNREAD'),
1 =>
array('tick.png', 'messages.unpublish', 'COM_MESSAGES_OPTION_READ', 'COM_MESSAGES_MARK_AS_UNREAD'),
0 =>
array('publish_x.png', 'messages.publish', 'COM_MESSAGES_OPTION_UNREAD', 'COM_MESSAGES_MARK_AS_READ')
$html =
JHtml::_('image', 'admin/'.
$state[0], JText::_($state[2]), null, true);
$html =
'<a href="#" onclick="return listItemTask(\'cb'.
$i.
'\',\''.
$state[1].
'\')" title="'.
JText::_($state[3]).
'">'
Documentation generated on Tue, 19 Nov 2013 15:08:09 +0100 by phpDocumentor 1.4.3