mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 14:58:42 +00:00
add user name rendering
This commit is contained in:
parent
288e9d62d6
commit
7456a32a1f
|
|
@ -114,6 +114,34 @@ abstract class ViewAbstract implements RenderableInterface
|
||||||
return $text === null ? '' : \htmlspecialchars($text);
|
return $text === null ? '' : \htmlspecialchars($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print cli output.
|
||||||
|
*
|
||||||
|
* @param ?string $text Text
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public function printCli(?string $text) : string
|
||||||
|
{
|
||||||
|
return $text === null ? '' : \escapeshellcmd($text);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Print cli output.
|
||||||
|
*
|
||||||
|
* @param ?string $text Text
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public static function cli(?string $text) : string
|
||||||
|
{
|
||||||
|
return $text === null ? '' : \escapeshellcmd($text);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all views
|
* Returns all views
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user