SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class ColModifierDate

Converts a MySQL date into something friendlier. Works for DATE, TIME, DATETIME AND [BIG]INT.

The default output format is d/m/Y, but can be changed in the constructor.
Format strings are anything supported by the PHP function date().

Variables

NameVisibilityDescription
$format 

Functions

NameVisibilityDescription
__constructpublic 
modifypublicModify a column value

public __construct

void $ColModifierDate->__construct ( [ string $format ] );

This function does not have a description

public modify

string $ColModifierDate->modify ( string $val , string $field_name );

Modify a column value
This value will be html/csv/etc encoded afterwards.