SproutCMS

This is the code documentation for the SproutCMS project

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().

Source code (9 results)

/sprout/Controllers/Admin/ActionLogAdminController.php   Highlighted file source

Line 22: use Sprout\Helpers\ColModifierDate;
Line 59: 'Date' => array(new ColModifierDate('d/m/Y H:i:s'), 'date_added'),
Line 183: 'Date' => array(new ColModifierDate(), 'date_added'),

/sprout/Controllers/Admin/ActionLogAdminController.php   Highlighted file source

Line 22: use Sprout\Helpers\ColModifierDate;
Line 59: 'Date' => array(new ColModifierDate('d/m/Y H:i:s'), 'date_added'),
Line 183: 'Date' => array(new ColModifierDate(), 'date_added'),

/sprout/Controllers/Admin/ContentSubscriptionAdminController.php   Highlighted file source

Line 16: use Sprout\Helpers\ColModifierDate;
Line 44: 'Date' => [new ColModifierDate('d/m/Y - h:i a'), 'date_added'],

/sprout/Controllers/Admin/ContentSubscriptionAdminController.php   Highlighted file source

Line 16: use Sprout\Helpers\ColModifierDate;
Line 44: 'Date' => [new ColModifierDate('d/m/Y - h:i a'), 'date_added'],

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 32: use Sprout\Helpers\ColModifierDate;
Line 101: 'Added' => [new ColModifierDate('g:ia d/m/Y'), 'date_added']
Line 2594: 'Date modified' => [new ColModifierDate(), 'date_modified'],

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 32: use Sprout\Helpers\ColModifierDate;
Line 101: 'Added' => [new ColModifierDate('g:ia d/m/Y'), 'date_added']
Line 2594: 'Date modified' => [new ColModifierDate(), 'date_modified'],

/sprout/Helpers/ColModifierDate.php   Highlighted file source

Line 22: class ColModifierDate extends SortedColModifier

/sprout/tests/itemlistTest.php   Highlighted file source

Line 13: use Sprout\Helpers\ColModifierDate;
Line 45: 'Key' => [new ColModifierDate(), 'key'],

/sprout/tests/itemlistTest.php   Highlighted file source

Line 13: use Sprout\Helpers\ColModifierDate;
Line 45: 'Key' => [new ColModifierDate(), 'key'],

A total of 21 lines in 9 files were found