public static function checkedout($i, $editorName, $time, $prefix = '', $enabled = false, $checkbox = 'cb')
	{
		if (is_array($prefix))
		{
			$options  = $prefix;
			$enabled  = array_key_exists('enabled', $options)  ? $options['enabled']  : $enabled;
			$checkbox = array_key_exists('checkbox', $options) ? $options['checkbox'] : $checkbox;
			$prefix   = array_key_exists('prefix', $options)   ? $options['prefix']   : '';
		}

		$text = addslashes(htmlspecialchars($editorName, ENT_COMPAT, 'UTF-8'));
		$date = addslashes(htmlspecialchars(with(new Date($time))->toLocal(Lang::txt('DATE_FORMAT_LC')), ENT_COMPAT, 'UTF-8'));
		$time = addslashes(htmlspecialchars(with(new Date($time))->toLocal('H:i'), ENT_COMPAT, 'UTF-8'));

		$active_title   = Lang::txt('JLIB_HTML_CHECKIN') . '::' . $text . '<br />' . $date . '<br />' . $time;
		$inactive_title = Lang::txt('JLIB_HTML_CHECKED_OUT') . '::' . $text . '<br />' . $date . '<br />' . $time;

		return self::action(
			$i, 'checkin', $prefix, Lang::txt('JLIB_HTML_CHECKED_OUT'), $active_title, $inactive_title, true, 'checkedout',
			'checkedout', $enabled, false, $checkbox
		);
	}
public static function checkedout($i, $editorName, $time, $prefix = '', $enabled = false, $checkbox = 'cb')
	{
		if (is_array($prefix))
		{
			$options  = $prefix;
			$enabled  = array_key_exists('enabled', $options)  ? $options['enabled']  : $enabled;
			$checkbox = array_key_exists('checkbox', $options) ? $options['checkbox'] : $checkbox;
			$prefix   = array_key_exists('prefix', $options)   ? $options['prefix']   : '';
		}

		$text = addslashes(htmlspecialchars($editorName, ENT_COMPAT, 'UTF-8'));
		$date = addslashes(htmlspecialchars(with(new Date($time))->toLocal(Lang::txt('DATE_FORMAT_LC')), ENT_COMPAT, 'UTF-8'));
		$time = addslashes(htmlspecialchars(with(new Date($time))->toLocal('H:i'), ENT_COMPAT, 'UTF-8'));

		$active_title   = Lang::txt('JLIB_HTML_CHECKIN') . '::' . $text . '<br />' . $date . '<br />' . $time;
		$inactive_title = Lang::txt('JLIB_HTML_CHECKED_OUT') . '::' . $text . '<br />' . $date . '<br />' . $time;

		return self::action(
			$i, 'checkin', $prefix, Lang::txt('JLIB_HTML_CHECKED_OUT'), $active_title, $inactive_title, true, 'checkedout',
			'checkedout', $enabled, false, $checkbox
		);
	}
public static function checkedout ( $ i , $ editorName , $ time , $ prefix = '' , $ enabled = false , $ checkbox = 'cb' ) { if ( is_array ( $ prefix ) ) { $ options = $ prefix ; $ enabled = array_key_exists ( 'enabled' , $ options ) ? $ options [ 'enabled' ] : $ enabled ; $ checkbox = array_key_exists ( 'checkbox' , $ options ) ? $ options [ 'checkbox' ] : $ checkbox ; $ prefix = array_key_exists ( 'prefix' , $ options ) ? $ options [ 'prefix' ] : '' ; } $ text = addslashes ( htmlspecialchars ( $ editorName , ENT_COMPAT , 'UTF-8' ) ) ; $ date = addslashes ( htmlspecialchars ( with ( new Date ( $ time ) ) -> toLocal ( Lang :: txt ( 'DATE_FORMAT_LC' ) ) , ENT_COMPAT , 'UTF-8' ) ) ; $ time = addslashes ( htmlspecialchars ( with ( new Date ( $ time ) ) -> toLocal ( 'H:i' ) , ENT_COMPAT , 'UTF-8' ) ) ; $ active_title = Lang :: txt ( 'JLIB_HTML_CHECKIN' ) . '::' . $ text . '<br />' . $ date . '<br />' . $ time ; $ inactive_title = Lang :: txt ( 'JLIB_HTML_CHECKED_OUT' ) . '::' . $ text . '<br />' . $ date . '<br />' . $ time ; return self :: action ( $ i , 'checkin' , $ prefix , Lang :: txt ( 'JLIB_HTML_CHECKED_OUT' ) , $ active_title , $ inactive_title , true , 'checkedout' , 'checkedout' , $ enabled , false , $ checkbox ) ; }
Returns a checked-out icon

@param   integer       $i           The row index.
@param   string        $editorName  The name of the editor.
@param   string        $time        The time that the object was checked out.
@param   string|array  $prefix      An optional task prefix or an array of options
@param   boolean       $enabled     True to enable the action.
@param   string        $checkbox    An optional prefix for checkboxes.
@return  string  The required HTML.
Returns a checked - out icon