Property | Type | Description | |
---|---|---|---|
$dataGridUsers |
Method | Description | |
---|---|---|
cleanupPlainText ( string $var ) : string | Formats plain text as HTML, links will be detected, paragraphs will be inserted | |
formatFloat ( float $number, integer $decimals = 2 ) : string | Format a number as a float | |
getDate ( integer $timestamp ) : string | Format a date according the users' settings | |
getLongDate ( integer $timestamp ) : string | Format a date as a long representation according the users' settings | |
getTime ( integer $timestamp ) : string | Format a time according the users' settings | |
getTimeAgo ( integer $timestamp ) : string | Get time ago as a string for use in a datagrid | |
getUser ( integer $id ) : string | Get the HTML for a user to use in a datagrid | |
greyOut ( string $type, string $value, array $attributes = [] ) : array | This will grey out certain rows from common columns. These columns are: | |
showBool ( string | boolean $status, boolean $reverse = false ) : string | This is an alias for the template modifier since it can also be used here and people didn't find it. | |
showImage ( string $path, string $image, string $title = '', string $url = null, integer $width = null, integer $height = null ) : string | Returns an image tag | |
truncate ( string $string, integer $length, boolean $useHellip = true ) : string | Truncate a string |
public static cleanupPlainText ( string $var ) : string | ||
$var | string | The data to cleanup. |
return | string |
public static getLongDate ( integer $timestamp ) : string | ||
$timestamp | integer | The UNIX-timestamp to format as a human readable date. |
return | string |
public static getTimeAgo ( integer $timestamp ) : string | ||
$timestamp | integer | The UNIX-timestamp to convert in a time-ago-string. |
return | string |
public static showImage ( string $path, string $image, string $title = '', string $url = null, integer $width = null, integer $height = null ) : string | ||
$path | string | The path to the image. |
$image | string | The filename of the image. |
$title | string | The title (will be used as alt). |
$url | string | The url |
$width | integer | The width for the |
$height | integer | The height for the |
return | string |