protected static function _checkedOut(&$row, $tooltip = 1)
	{
		$hover = '<span class="checkedout">';

		if ($tooltip && isset($row->checked_out_time))
		{
			$text = addslashes(htmlspecialchars($row->editor, ENT_COMPAT, 'UTF-8'));

			$date = with(new Date($row->checked_out_time))->toLocal(Lang::txt('DATE_FORMAT_LC1'));
			$time = with(new Date($row->checked_out_time))->toLocal('H:i');

			$hover = '<span class="editlinktip hasTip" title="' . Lang::txt('JLIB_HTML_CHECKED_OUT') . '::' . $text . '<br />' . $date . '<br />' . $time . '">';
		}

		return $hover . Lang::txt('JLIB_HTML_CHECKED_OUT') . '</span>';
	}
protected static function _checkedOut(&$row, $tooltip = 1)
	{
		$hover = '<span class="checkedout">';

		if ($tooltip && isset($row->checked_out_time))
		{
			$text = addslashes(htmlspecialchars($row->editor, ENT_COMPAT, 'UTF-8'));

			$date = with(new Date($row->checked_out_time))->toLocal(Lang::txt('DATE_FORMAT_LC1'));
			$time = with(new Date($row->checked_out_time))->toLocal('H:i');

			$hover = '<span class="editlinktip hasTip" title="' . Lang::txt('JLIB_HTML_CHECKED_OUT') . '::' . $text . '<br />' . $date . '<br />' . $time . '">';
		}

		return $hover . Lang::txt('JLIB_HTML_CHECKED_OUT') . '</span>';
	}
protected static function _checkedOut ( & $ row , $ tooltip = 1 ) { $ hover = '<span class="checkedout">' ; if ( $ tooltip && isset ( $ row -> checked_out_time ) ) { $ text = addslashes ( htmlspecialchars ( $ row -> editor , ENT_COMPAT , 'UTF-8' ) ) ; $ date = with ( new Date ( $ row -> checked_out_time ) ) -> toLocal ( Lang :: txt ( 'DATE_FORMAT_LC1' ) ) ; $ time = with ( new Date ( $ row -> checked_out_time ) ) -> toLocal ( 'H:i' ) ; $ hover = '<span class="editlinktip hasTip" title="' . Lang :: txt ( 'JLIB_HTML_CHECKED_OUT' ) . '::' . $ text . '<br />' . $ date . '<br />' . $ time . '">' ; } return $ hover . Lang :: txt ( 'JLIB_HTML_CHECKED_OUT' ) . '</span>' ; }
Method to create a checked out icon with optional overlib in a grid.

@param   object   &$row     The row object
@param   boolean  $tooltip  True if an overlib with checkout information should be created.
@return  string   HTML for the icon and tooltip
Method to create a checked out icon with optional overlib in a grid .