Changeset View
Changeset View
Standalone View
Standalone View
core/units/spam_reports/spam_reports_config.php
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Line(s) | |||||
'formatter' => 'kOptionsFormatter', 'options' => Array ('p-rev' => 'la_opt_ProductReview'), 'use_phrases' => 1, | 'formatter' => 'kOptionsFormatter', 'options' => Array ('p-rev' => 'la_opt_ProductReview'), 'use_phrases' => 1, | ||||
'not_null' => 1, 'default' => '' | 'not_null' => 1, 'default' => '' | ||||
), | ), | ||||
'ItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'ItemId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'MessageText' => Array ('type' => 'string', 'required' => 1, 'default' => NULL), | 'MessageText' => Array ('type' => 'string', 'required' => 1, 'default' => NULL), | ||||
'ReportedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | 'ReportedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | ||||
'ReportedById' => Array ( | 'ReportedById' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kLEFTFormatter', 'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'sample_value' => 'Guest', | 'formatter' => 'kLEFTFormatter', 'options' => Array (USER_ROOT => 'root', USER_SYSTEM => 'system', USER_GUEST => 'Guest'), 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'sample_value' => 'Guest', | ||||
Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
PHP keywords must be lowercase; expected "array" but found "Array" Lint: Generic.PHP.LowerCaseKeyword.Found: PHP keywords must be lowercase; expected "array" but found "Array" | |||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Arrays.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'default' => NULL | 'default' => NULL | ||||
TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" Lint: Generic.PHP.LowerCaseConstant.Found: TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" | |||||
A comma should follow the last multiline array item. Found: NULL Lint: CodingStandard.Arrays.Array.NoLastComma: A comma should follow the last multiline array item. Found: NULL | |||||
) | ) | ||||
), | ), | ||||
'VirtualFields' => Array ( | 'VirtualFields' => Array ( | ||||
'ItemName' => Array ('type' => 'string', 'default' => ''), | 'ItemName' => Array ('type' => 'string', 'default' => ''), | ||||
'ReportedBy' => Array ('type' => 'string', 'default' => ''), | 'ReportedBy' => Array ('type' => 'string', 'default' => ''), | ||||
), | ), | ||||
'Grids' => Array ( | 'Grids' => Array ( | ||||
'Default' => Array ( | 'Default' => Array ( | ||||
'Fields' => Array ( | 'Fields' => Array ( | ||||
'ReportId' => Array ('title' => 'column:la_fld_Id', 'filter_block' => 'grid_range_filter'), | 'ReportId' => Array ('title' => 'column:la_fld_Id', 'filter_block' => 'grid_range_filter'), | ||||
'ItemPrefix' => Array ('data_block' => 'grid_item_prefix_td', 'filter_block' => 'grid_options_filter', 'width' => 150), | 'ItemPrefix' => Array ('data_block' => 'grid_item_prefix_td', 'filter_block' => 'grid_options_filter', 'width' => 150), | ||||
'ItemId' => Array ('filter_block' => 'grid_range_filter'), | 'ItemId' => Array ('filter_block' => 'grid_range_filter'), | ||||
'ItemName' => Array ('data_block' => 'grid_edit_item_td', 'filter_block' => 'grid_like_filter'), | 'ItemName' => Array ('data_block' => 'grid_edit_item_td', 'filter_block' => 'grid_like_filter'), | ||||
'MessageText' => Array ('filter_block' => 'grid_like_filter'), | 'MessageText' => Array ('filter_block' => 'grid_like_filter'), | ||||
'ReportedOn' => Array ('filter_block' => 'grid_date_range_filter'), | 'ReportedOn' => Array ('filter_block' => 'grid_date_range_filter'), | ||||
'ReportedBy' => Array ('filter_block' => 'grid_like_filter'), | 'ReportedBy' => Array ('filter_block' => 'grid_like_filter'), | ||||
), | ), | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
No newline at end of file |
There must be no space between the Array keyword and the opening parenthesis