SproutCMS

This is the code documentation for the SproutCMS project

class ColModifier

Base class for modifying values for main_columns of an ItemList,
e.g. in ManagedAdminController::_getContents

Source code (30 results)

/modules/Demo/Controllers/Admin/DemoItemAdminController.php   Highlighted file source

Line 20: use Sprout\Helpers\ColModifierBinary;
Line 49: 'Active' => [new ColModifierBinary(), 'active'],

/modules/Demo/Controllers/Admin/WordAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\ColModifierBinary;
Line 43: 'Active' => [new ColModifierBinary(), 'active'],

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

Line 20: use Sprout\Helpers\ColModifierActionLogData;
Line 21: use Sprout\Helpers\ColModifierBinary;
Line 22: use Sprout\Helpers\ColModifierDate;
Line 23: use Sprout\Helpers\ColModifierHexIP;
Line 59: 'Date' => array(new ColModifierDate('d/m/Y H:i:s'), 'date_added'),
Line 62: 'Record' => [new ColModifierActionLogData(), 'id'],
Line 182: 'Success' => array(new ColModifierBinary(), 'success'),
Line 183: 'Date' => array(new ColModifierDate(), 'date_added'),
Line 184: 'IP Address' => array(new ColModifierHexIP(), 'ip'),

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

Line 17: use Sprout\Helpers\ColModifierLookupArray;
Line 49: 'Type' => array(new ColModifierLookupArray($this->extra_page_types), 'type'),

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

Line 26: use Sprout\Helpers\ColModifierBinary;
Line 27: use Sprout\Helpers\ColModifierLookupArray;
Line 78: 'Type' => [new ColModifierLookupArray(FileConstants::$type_names), 'type'],
Line 81: 'Show Author' => [new ColModifierBinary(), 'embed_author'],

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

Line 147: * Should be a class which extends ColModifier

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

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

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

Line 16: use Sprout\Helpers\ColModifierLnk;
Line 17: use Sprout\Helpers\ColModifierLookupTable;
Line 57: 'Subsite' => [new ColModifierLookupTable('subsites'), 'subsite_id'],
Line 58: 'Destination' => [new ColModifierLnk(), 'destination'],

/sprout/Controllers/DbToolsController.php   Highlighted file source

Line 1775: $field = "[new ColModifierBinary(), '{$ind}']";
Line 2141: $field = "[new ColModifierBinary(), '{$ind}']";

/sprout/Helpers/ColModifier.php   Highlighted file source

Line 21: abstract class ColModifier {

/sprout/Helpers/ColModifierActionLogData.php   Highlighted file source

Line 19: class ColModifierActionLogData extends SortedColModifier

/sprout/Helpers/ColModifierBinary.php   Highlighted file source

Line 16: class ColModifierBinary extends SortedColModifier

/sprout/Helpers/ColModifierDate.php   Highlighted file source

Line 22: class ColModifierDate extends SortedColModifier

/sprout/Helpers/ColModifierFilename.php   Highlighted file source

Line 16: class ColModifierFilename extends SortedColModifier

/sprout/Helpers/ColModifierHexIP.php   Highlighted file source

Line 23: * Use this ColModifier
Line 25: class ColModifierHexIP extends ColModifier

/sprout/Helpers/ColModifierImage.php   Highlighted file source

Line 16: class ColModifierImage extends UnescapedColModifier

/sprout/Helpers/ColModifierLnk.php   Highlighted file source

Line 19: class ColModifierLnk extends ColModifier

/sprout/Helpers/ColModifierLookupArray.php   Highlighted file source

Line 19: class ColModifierLookupArray extends ColModifier

/sprout/Helpers/ColModifierLookupTable.php   Highlighted file source

Line 19: * This is basically than ColModifierLookupArray(Pdb::lookup),
Line 23: class ColModifierLookupTable extends ColModifier

/sprout/Helpers/ColModifierMoney.php   Highlighted file source

Line 16: class ColModifierMoney extends SortedColModifier

/sprout/Helpers/ColModifierSubRecordCount.php   Highlighted file source

Line 23: class ColModifierSubRecordCount extends ColModifier

/sprout/Helpers/Itemlist.php   Highlighted file source

Line 101: (is_array($col_name) and $col_name[0] instanceof SortedColModifier)
Line 180: throw new InvalidArgumentException('Main column must either be a string, or an array with 0: ColModifier, 1: string');
Line 248: // Escape value, except if it was processed by an UnescapedColModifier
Line 249: if (empty($agg_defn['modifier']) or !($agg_defn['modifier'] instanceof UnescapedColModifier)) {
Line 343: * @param ColModifier $modifier Column modifier applied after aggregation to format the result
Line 345: public function addAggregateColumn($title, $operation, ColModifier $modifier = null)
Line 431: * - An array with two indexes, 0 => ColModifier, 1 => field name
Line 444: if ($defn[0] instanceof UnescapedColModifier) {
Line 446: } else if ($defn[0] instanceof ColModifier) {

/sprout/Helpers/QueryTo.php   Highlighted file source

Line 29: * @param array $modifiers ColModifier objects to apply result set before exporting their values,
Line 30: * as column_name => ColModifier instance
Line 101: * @param array $modifiers ColModifier objects to apply result set before exporting their values,
Line 102: * as column_name => ColModifier instance

/sprout/Helpers/SortedColModifier.php   Highlighted file source

Line 17: * Extend this instead of ColModifier, if your output sort order matches the database sort order.
Line 20: abstract class SortedColModifier extends ColModifier {

/sprout/Helpers/UnescapedColModifier.php   Highlighted file source

Line 17: * Extend this instead of ColModifier, if your output SHOULD NOT be escaped, i.e. it is already HTML
Line 19: abstract class UnescapedColModifier extends ColModifier {

/sprout/module_template/has_categories/Controllers/Admin/CNAMEAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\ColModifierBinary;
Line 42: 'Active' => [new ColModifierBinary(), 'active'],

/sprout/module_template/list/Controllers/Admin/CNAMEAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\ColModifierBinary;
Line 43: 'Active' => [new ColModifierBinary(), 'active'],

/sprout/module_template/tree/Controllers/Admin/CNAMEAdminController.php   Highlighted file source

Line 19: use Sprout\Helpers\ColModifierBinary;
Line 43: 'Active' => [new ColModifierBinary(), 'active'],

/sprout/tests/itemlistTest.php   Highlighted file source

Line 13: use Sprout\Helpers\ColModifierDate;
Line 14: use Sprout\Helpers\ColModifierMoney;
Line 38: public function testColModifierVal() {
Line 45: 'Key' => [new ColModifierDate(), 'key'],
Line 121: public function testAggregateTotalColModifier() {
Line 127: $itemlist->addAggregateColumn('Val', 'sum', new ColModifierMoney('AUS'));

/sprout/views/admin/action_log_edit.php   Highlighted file source

Line 16: use Sprout\Helpers\ColModifierHexIP;
Line 60: $mod = new ColModifierHexIP();

A total of 74 lines in 30 files were found