/**
 * 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>';
}