Back to Grid class

Method _checkedOut

protected static string
_checkedOut
(mixed &$row, mixed $overlib = true)
Method to create a checked out icon with optional overlib in a grid.
Parameters
  • object $row The row object
  • bool $overlib True if an overlib with checkout information should be created.
Returns
  • string HTMl for the icon and overlib
Since
  • 1.5
Class: Grid
Project: Joomla

Method _checkedOut - Source code

/**
 * Method to create a checked out icon with optional overlib in a grid.
 *
 * @param   object   $row      The row object
 * @param   boolean  $overlib  True if an overlib with checkout information should be created.
 *
 * @return  string   HTMl for the icon and overlib
 *
 * @since   1.5
 */
protected static function _checkedOut(&$row, $overlib = true)
{
    $hover = '';
    if ($overlib) {
        $date = HTMLHelper::_('date', $row->checked_out_time, Text::_('DATE_FORMAT_LC1'));
        $time = HTMLHelper::_('date', $row->checked_out_time, 'H:i');
        $hover = '<span class="editlinktip hasTooltip" title="' . HTMLHelper::_('tooltipText', 'JLIB_HTML_CHECKED_OUT', $row->editor) . '<br>' . $date . '<br>' . $time . '">';
    }
    return $hover . HTMLHelper::_('image', 'admin/checked_out.png', null, null, true) . '</span>';
}