Changeset View
Standalone View
modules/in-news/units/articles/articles_config.php
Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Line(s) | |||||
'status' => STATUS_PENDING, | 'status' => STATUS_PENDING, | ||||
), | ), | ||||
), | ), | ||||
'TableName' => TABLE_PREFIX.'News', | 'TableName' => TABLE_PREFIX.'News', | ||||
'CustomDataTableName' => TABLE_PREFIX . 'NewsCustomData', | 'CustomDataTableName' => TABLE_PREFIX . 'NewsCustomData', | ||||
'CalculatedFields' => Array ( | 'CalculatedFields' => Array ( | ||||
'' => Array ( | '' => 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 | |||||
'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", "n/a")), IF(u.Username = "", u.Email, u.Username))', | 'UserName' => 'IF (ISNULL(u.Username), IF (%1$s.CreatedById = ' . USER_ROOT . ', "root", IF (%1$s.CreatedById = ' . USER_GUEST . ', "Guest", IF (%1$s.CreatedById = ' . USER_SYSTEM . ', "system", "n/a"))), IF(u.Username = "", u.Email, u.Username))', | ||||
'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', | 'CategoryId' => TABLE_PREFIX.'%3$sCategoryItems.CategoryId', | ||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', | 'Filename' => TABLE_PREFIX.'%3$sCategoryItems.Filename', | ||||
'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', | 'CategoryFilename' => TABLE_PREFIX.'Categories.NamedParentPath', | ||||
'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', | 'PrimaryCat' => TABLE_PREFIX.'%3$sCategoryItems.PrimaryCat', | ||||
'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', | 'ParentPath' => TABLE_PREFIX.'Categories.ParentPath', | ||||
'AltName' => 'img.AltName', | 'AltName' => 'img.AltName', | ||||
'SameImages' => 'img.SameImages', | 'SameImages' => 'img.SameImages', | ||||
'LocalThumb' => 'img.LocalThumb', | 'LocalThumb' => 'img.LocalThumb', | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | |||||
'TextFormat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'TextFormat' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'EndOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), | 'EndOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), | ||||
'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), | 'Hits' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%d', 'not_null' => 1, 'default' => 0), | ||||
'CachedRating' => Array ('type' => 'string', 'default' => 0), | 'CachedRating' => Array ('type' => 'string', 'default' => 0), | ||||
'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'CachedVotesQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'CreatedById' => Array ( | 'CreatedById' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kLEFTFormatter', | 'formatter' => 'kLEFTFormatter', | ||||
'options' => Array (USER_ROOT => 'root', USER_GUEST => 'Guest'), | 'options' => Array (USER_ROOT => 'root', USER_SYSTEM => 'system', USER_GUEST => 'Guest'), | ||||
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 | |||||
'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | 'left_sql' => 'SELECT %s FROM ' . TABLE_PREFIX . 'Users WHERE %s', | ||||
'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | 'left_key_field' => 'PortalUserId', 'left_title_field' => USER_TITLE_FIELD, | ||||
'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), | ||||
'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, | 'sample_value' => 'Guest', 'required' => 1, 'default' => NULL, | ||||
), | ), | ||||
'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'Status' => Array ( | 'Status' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
Show All 21 Lines | |||||
), | ), | ||||
'ResourceId' => Array ('type' => 'int', 'default' => null), | 'ResourceId' => Array ('type' => 'int', 'default' => null), | ||||
'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), | 'StartDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'required' => 1, 'default' => '#NOW#'), | ||||
'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | 'NewItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | ||||
'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | 'PopItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | ||||
'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | 'HotItem' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Auto', 1 => 'la_Always', 0 => 'la_Never'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2), | ||||
'Archived' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), | 'Archived' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 2 => 'la_No'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 0), | ||||
'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | 'Modified' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | ||||
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 | |||||
'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), '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, 'default' => NULL), | 'ModifiedById' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), '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, 'default' => NULL), | ||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
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 | |||||
Expected 1 space after concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceAfter: Expected 1 space after concat operator; 0 found | |||||
Expected 1 space before concat operator; 0 found Lint: CodingStandard.Strings.ConcatenationSpacing.NoSpaceBefore: Expected 1 space before concat operator; 0 found | |||||
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" | |||||
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 | |||||
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 | |||||
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" | |||||
'OrgId' => Array ('type' => 'int', 'default' => null), | 'OrgId' => Array ('type' => 'int', 'default' => null), | ||||
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 | |||||
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" | |||||
'MetaKeywords' => Array ('type' => 'string', 'default' => null), | 'MetaKeywords' => Array ('type' => 'string', 'default' => null), | ||||
'MetaDescription' => Array ('type' => 'string', 'default' => null), | 'MetaDescription' => Array ('type' => 'string', 'default' => null), | ||||
), | ), | ||||
'VirtualFields' => Array ( | 'VirtualFields' => Array ( | ||||
'Relevance' => Array ('type' => 'float', 'default' => 0), | 'Relevance' => Array ('type' => 'float', 'default' => 0), | ||||
'MoreCategories' => Array ('type' => 'string', 'default' => ''), | 'MoreCategories' => Array ('type' => 'string', 'default' => ''), | ||||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |
PHP keywords must be lowercase; expected "array" but found "Array"