Changeset View
Changeset View
Standalone View
Standalone View
core/units/page_revisions/page_revisions_config.php
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | |||||
'CreatedBy' => 'IF(created_by.Username = "", created_by.Email, created_by.Username)', | 'CreatedBy' => 'IF(created_by.Username = "", created_by.Email, created_by.Username)', | ||||
'IsLive' => 'IF(%1$s.RevisionNumber = c.LiveRevisionNumber, 1, 0)', | 'IsLive' => 'IF(%1$s.RevisionNumber = c.LiveRevisionNumber, 1, 0)', | ||||
), | ), | ||||
), | ), | ||||
'Fields' => Array ( | 'Fields' => Array ( | ||||
'RevisionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'RevisionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'PageId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'PageId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'RevisionNumber' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'RevisionNumber' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
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.Array.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'ContentBlockContent' => array('type' => 'string', 'formatter' => 'kMultiLanguage', 'using_fck' => 1, 'default' => null), | |||||
'IsDraft' => Array ( | 'IsDraft' => Array ( | ||||
There must be no space between the Array keyword and the opening parenthesis Lint: CodingStandard.Array.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" | |||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, | 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, | ||||
'not_null' => 1, 'default' => 0 | 'not_null' => 1, 'default' => 0 | ||||
), | ), | ||||
'FromRevisionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'FromRevisionId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'CreatedById' => Array ( | 'CreatedById' => 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', 'required' => 1, | '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', 'required' => 1, | ||||
'default' => NULL | 'default' => NULL | ||||
), | ), | ||||
'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | 'CreatedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | ||||
'AutoSavedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), | 'AutoSavedOn' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => NULL), | ||||
'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Pending', 1 => 'la_opt_Published', 0 => 'la_opt_Declined'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2) | 'Status' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array (2 => 'la_Pending', 1 => 'la_opt_Published', 0 => 'la_opt_Declined'), 'use_phrases' => 1, 'not_null' => 1, 'default' => 2) | ||||
), | ), | ||||
'VirtualFields' => Array ( | 'VirtualFields' => Array ( | ||||
'CreatedBy' => Array ('type' => 'string', 'default' => ''), | 'CreatedBy' => Array ('type' => 'string', 'default' => ''), | ||||
'IsLive' => Array ( | 'IsLive' => Array ( | ||||
'type' => 'int', | 'type' => 'int', | ||||
'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, | 'formatter' => 'kOptionsFormatter', 'options' => Array (1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, | ||||
'default' => 0, | 'default' => 0, | ||||
) | ) | ||||
), | ), | ||||
); | ); | ||||
No newline at end of file |
PHP keywords must be lowercase; expected "array" but found "Array"