JHtmlJGrid/checkedout
From Joomla! Documentation
< API16:JHtmlJGridRevision as of 17:51, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Displays a checked-out icon
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowik...)
Revision as of 17:51, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description===
Displays a checked-out icon
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowik...)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Displays a checked-out icon
Template:Description:JHtmlJGrid/checkedout
Syntax[edit]
static checkedout($editorName, $time)
Parameter Name | Default Value | Description |
---|---|---|
$editorName | The name of the editor. | |
$time | The time that the object was checked out. |
Returns[edit]
string The required HTML.
Defined in[edit]
libraries/joomla/html/html/jgrid.php
Importing[edit]
jimport( 'joomla.html.html.jgrid' );
Source Body[edit]
public static function checkedout($editorName, $time)
{
$text = addslashes(htmlspecialchars($editorName, ENT_COMPAT, 'UTF-8'));
$date = JHTML::_('date',$time, '%A, %d %B %Y');
$time = JHTML::_('date',$time, '%H:%M');
$hover = '<span class="editlinktip hasTip" title="'. JText::_('CHECKED_OUT') .'::'. $text .'<br />'. $date .'<br />'. $time .'">';
$checked = $hover .JHTML::_('image','admin/checked_out.png', JText::_('CHECKED_OUT'), NULL, true).'</span>';
return $checked;
}
[Edit See Also] Template:SeeAlso:JHtmlJGrid/checkedout
Examples[edit]
<CodeExamplesForm />