Changeset View
Standalone View
modules/in-link/units/links/links_config.php
Show First 20 Lines • Show All 391 Lines • ▼ Show 20 Line(s) | |||||
'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), | 'show_pick' => Array ('label' => 'la_prompt_EditorsPick', 'on_sql' => '', 'off_sql' => '%1$s.`EditorsPick` != 1' ), | ||||
), | ), | ||||
), | ), | ||||
'TableName' => TABLE_PREFIX.'Link', | 'TableName' => TABLE_PREFIX.'Link', | ||||
'CustomDataTableName' => TABLE_PREFIX . 'LinkCustomData', | 'CustomDataTableName' => TABLE_PREFIX . 'LinkCustomData', | ||||
'CalculatedFields' => Array ( | 'CalculatedFields' => Array ( | ||||
'' => Array ( | '' => Array ( | ||||
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" | |||||
'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 54 Lines • ▼ Show 20 Line(s) | |||||
'Expire' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => null), | 'Expire' => 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', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), | 'CachedRating' => Array ('type' => 'string', 'not_null' => 1, 'formatter' => 'kFormatter', 'default' => 0), | ||||
'CachedVotesQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'not_null' => 1, 'default' => 0), | 'CachedVotesQty' => Array ('type' => 'int', 'formatter' => 'kFormatter', 'not_null' => 1, 'default' => 0), | ||||
'CachedReviewsQty' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'CachedReviewsQty' => 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, | ||||
), | ), | ||||
'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 | |||||
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" | |||||
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" | |||||
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" | |||||
'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'Priority' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
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" | |||||
'Status' => Array ( | 'Status' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kOptionsFormatter', | 'formatter' => 'kOptionsFormatter', | ||||
'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, | 'options' => Array (1 => 'la_Active', 2 => 'la_Pending', 0 => 'la_Disabled'), 'use_phrases' => 1, | ||||
'not_null' => 1, 'default' => 2, | 'not_null' => 1, 'default' => 2, | ||||
), | ), | ||||
'EditorsPick' => Array ( | 'EditorsPick' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |
There must be no space between the Array keyword and the opening parenthesis