Actions

API16

JHtmlJGrid/checkedout

From Joomla! Documentation

< API16:JHtmlJGrid
Revision as of 21:57, 13 May 2013 by JoomlaWikiBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Contents

Description

Displays a checked-out icon

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

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

string The required HTML.

Defined in

libraries/joomla/html/html/jgrid.php

Importing

jimport( 'joomla.html.html.jgrid' );

Source Body

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;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />