Differential D301 Diff 736 modules/in-commerce/units/affiliate_payments/affiliate_payments_config.php
Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/affiliate_payments/affiliate_payments_config.php
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | |||||
'Sorting' => Array ('PaymentDate' => 'desc'), | 'Sorting' => Array ('PaymentDate' => 'desc'), | ||||
) | ) | ||||
), | ), | ||||
'Fields' => Array ( | 'Fields' => Array ( | ||||
'AffiliatePaymentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | 'AffiliatePaymentId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), | ||||
'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = af.PortalUserId WHERE %s', 'left_key_field' => 'af.AffiliateId', 'left_title_field' => 'IF(u.Email = "", u.Username, u.Email)', 'not_null'=>1,'default'=>0), | 'AffiliateId' => Array ('type' => 'int', 'formatter' => 'kLEFTFormatter', 'error_msgs' => Array ('invalid_option' => '!la_error_UserNotFound!'), 'options' => Array (0 => 'lu_None'), 'left_sql' => 'SELECT %s FROM '.TABLE_PREFIX.'Affiliates af LEFT JOIN '.TABLE_PREFIX.'Users u ON u.PortalUserId = af.PortalUserId WHERE %s', 'left_key_field' => 'af.AffiliateId', 'left_title_field' => 'IF(u.Email = "", u.Username, u.Email)', 'not_null'=>1,'default'=>0), | ||||
'PaymentDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | 'PaymentDate' => Array ('type' => 'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), | ||||
'Amount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'required'=>1, 'default' => '0.00'), | 'Amount' => Array ('type' => 'double', 'formatter' => 'kFormatter', 'format' => '%.02f', 'not_null' => '1', 'required'=>1, 'default' => '0.00'), | ||||
Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingAfter: Whitespace must follow the item assignment operator => | |||||
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" | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore: Expected 1 space before "=>"; 0 found | |||||
Lint: Squiz.WhiteSpace.OperatorSpacing.NoSpaceAfter: Expected 1 space after "=>"; 0 found | |||||
Whitespace must prefix the item assignment operator => Lint: CodingStandard.Formatting.ItemAssignment.NoSpacingBefore: Whitespace must prefix the item assignment operator => | |||||
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 | |||||
'Comment' => Array ('type' => 'string', 'formatter' => 'kFormatter', 'using_fck' => 1, 'default' => NULL), | 'Comment' => Array ('type' => 'string', 'default' => NULL), | ||||
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 | |||||
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" | |||||
'PaymentReference' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), | 'PaymentReference' => Array ('type' => 'string', 'not_null' => '1', 'default' => ''), | ||||
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.Array.Array.SpaceAfterKeyword: There must be no space between the Array keyword and the opening parenthesis | |||||
'PaymentTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), | 'PaymentTypeId' => Array ('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options_sql' => 'SELECT Name, PaymentTypeId FROM '.TABLE_PREFIX.'AffiliatePaymentTypes WHERE Status = 1 ORDER BY IsPrimary DESC, Priority DESC, Name ASC', 'option_key_field' => 'PaymentTypeId', 'option_title_field' => 'Name', 'not_null' => 1, 'default' => 0), | ||||
), | ), | ||||
'VirtualFields' => Array ( | 'VirtualFields' => Array ( | ||||
'Username' => Array ('type' => 'string', 'default' => ''), | 'Username' => Array ('type' => 'string', 'default' => ''), | ||||
'PortalUserId' => Array ('type' => 'int', 'default' => 0), | 'PortalUserId' => Array ('type' => 'int', 'default' => 0), | ||||
), | ), | ||||
Show All 32 Lines |
Whitespace must follow the item assignment operator =>