@@ -31,7 +31,7 @@ |
||
31 | 31 | return self::$_oInstance; |
32 | 32 | } |
33 | 33 | |
34 | - self::$aClassNames[] = $oProp->sClassName; |
|
34 | + self::$aClassNames[ ] = $oProp->sClassName; |
|
35 | 35 | self::$_oInstance = new AdminPageFramework_PageLoadInfo_admin_page( $oProp, $oMsg ); |
36 | 36 | |
37 | 37 | return self::$_oInstance; |
@@ -82,4 +82,4 @@ |
||
82 | 82 | * @package AdminPageFramework/Factory/NetworkAdmin |
83 | 83 | * @heading Network Admin Page |
84 | 84 | */ |
85 | -abstract class AdminPageFramework_NetworkAdmin_Documentation extends AdminPageFramework_Documentaiton{} |
|
85 | +abstract class AdminPageFramework_NetworkAdmin_Documentation extends AdminPageFramework_Documentaiton {} |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'. |
12 | 12 | */ |
13 | 13 | if ( php_sapi_name() === 'cli' ) { |
14 | - $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ) . '/admin-page-framework.php'; |
|
14 | + $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ).'/admin-page-framework.php'; |
|
15 | 15 | if ( file_exists( $_sFrameworkFilePath ) ) { |
16 | 16 | include_once( $_sFrameworkFilePath ); |
17 | 17 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * If accessed from a console, include the registry class to laod 'AdminPageFramework_Registry_Base'. |
12 | 12 | */ |
13 | 13 | if ( php_sapi_name() === 'cli' ) { |
14 | - $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ) . '/admin-page-framework.php'; |
|
14 | + $_sFrameworkFilePath = dirname( dirname( __FILE__ ) ).'/admin-page-framework.php'; |
|
15 | 15 | if ( file_exists( $_sFrameworkFilePath ) ) { |
16 | 16 | include_once( $_sFrameworkFilePath ); |
17 | 17 | } |
@@ -18,19 +18,19 @@ discard block |
||
18 | 18 | */ |
19 | 19 | public function start() { |
20 | 20 | |
21 | - if ( ! $this->oProp->bIsAdmin ) { |
|
21 | + if ( !$this->oProp->bIsAdmin ) { |
|
22 | 22 | return; |
23 | 23 | } |
24 | - if ( ! is_network_admin() ) { |
|
24 | + if ( !is_network_admin() ) { |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 | |
28 | 28 | // Enable / disable the demo pages |
29 | - if ( isset( $_GET['enable_apfl_demo_pages'] ) ) { |
|
29 | + if ( isset( $_GET[ 'enable_apfl_demo_pages' ] ) ) { |
|
30 | 30 | |
31 | 31 | // Update the options and reload the page |
32 | - $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys['main'] ); |
|
33 | - $_oOption->update( 'enable_demo', $_GET['enable_apfl_demo_pages'] ); |
|
32 | + $_oOption = AdminPageFrameworkLoader_Option::getInstance( AdminPageFrameworkLoader_Registry::$aOptionKeys[ 'main' ] ); |
|
33 | + $_oOption->update( 'enable_demo', $_GET[ 'enable_apfl_demo_pages' ] ); |
|
34 | 34 | |
35 | 35 | $this->setSettingNotice( |
36 | 36 | __( 'Enabled demo!', 'admin-page-framework-loader' ), |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->_getDemoSwitcherLink( $this->oProp->aOptions ) |
58 | 58 | ); |
59 | 59 | $this->addLinkToPluginDescription( |
60 | - "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>" . __( 'Support', 'admin-page-framework-loader' ) . "</a>" |
|
60 | + "<a href='https://wordpress.org/support/plugin/admin-page-framework' target='_blank'>".__( 'Support', 'admin-page-framework-loader' )."</a>" |
|
61 | 61 | ); |
62 | 62 | |
63 | 63 | } |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Returns the switch link of the demo pages. |
67 | 67 | */ |
68 | - private function _getDemoSwitcherLink( $mOptions=array() ) { |
|
68 | + private function _getDemoSwitcherLink( $mOptions = array() ) { |
|
69 | 69 | |
70 | - $_bEnabled = isset( $mOptions['enable_demo'] ) && $mOptions['enable_demo']; |
|
71 | - $_sLink = esc_url( |
|
70 | + $_bEnabled = isset( $mOptions[ 'enable_demo' ] ) && $mOptions[ 'enable_demo' ]; |
|
71 | + $_sLink = esc_url( |
|
72 | 72 | add_query_arg( |
73 | 73 | array( |
74 | 74 | 'enable_apfl_demo_pages' => $_bEnabled ? 0 : 1, |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | ) |
77 | 77 | ); |
78 | 78 | return $_bEnabled |
79 | - ? "<a href='{$_sLink}'>" . __( 'Disable Demo', 'admin-page-framework-loader' ) . "</a>" |
|
80 | - : "<a href='{$_sLink}'><strong style='font-size: 1em;'>" . __( 'Enable Demo', 'admin-page-framework-loader' ) . "</strong></a>"; |
|
79 | + ? "<a href='{$_sLink}'>".__( 'Disable Demo', 'admin-page-framework-loader' )."</a>" |
|
80 | + : "<a href='{$_sLink}'><strong style='font-size: 1em;'>".__( 'Enable Demo', 'admin-page-framework-loader' )."</strong></a>"; |
|
81 | 81 | |
82 | 82 | } |
83 | 83 |
@@ -68,9 +68,9 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * Responds to a request to an undefined property. |
|
72 | - * @since 3.8.17 |
|
73 | - */ |
|
71 | + * Responds to a request to an undefined property. |
|
72 | + * @since 3.8.17 |
|
73 | + */ |
|
74 | 74 | public function __get( $sPropertyName ) { |
75 | 75 | if ( $this->oProp->bAssumedAsWPWidget ) { |
76 | 76 | if ( isset( $this->oProp->aWPWidgetProperties[ $sPropertyName ] ) ) { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @return mixed |
56 | 56 | * @since 3.8.17 |
57 | 57 | */ |
58 | - public function __call( $sMethodName, $aArguments=null ) { |
|
58 | + public function __call( $sMethodName, $aArguments = null ) { |
|
59 | 59 | if ( $this->oProp->bAssumedAsWPWidget ) { |
60 | 60 | if ( in_array( $sMethodName, $this->oProp->aWPWidgetMethods ) ) { |
61 | 61 | return call_user_func_array( |
@@ -43,15 +43,15 @@ discard block |
||
43 | 43 | * For the `admin_page` fields type, an option key is prepended. |
44 | 44 | * For `page_meta_box`, no prepended element and it starts with the section or field ID. |
45 | 45 | */ |
46 | - static public function getInputsUnset( array $aInputs, $sFieldsType, $iSkipDepth=0 ) { |
|
46 | + static public function getInputsUnset( array $aInputs, $sFieldsType, $iSkipDepth = 0 ) { |
|
47 | 47 | |
48 | - $_sUnsetKey = '__unset_' . $sFieldsType; |
|
49 | - if ( ! isset( $_POST[ $_sUnsetKey ] ) ) { |
|
48 | + $_sUnsetKey = '__unset_'.$sFieldsType; |
|
49 | + if ( !isset( $_POST[ $_sUnsetKey ] ) ) { |
|
50 | 50 | return $aInputs; |
51 | 51 | } |
52 | 52 | |
53 | 53 | $_aUnsetElements = array_unique( $_POST[ $_sUnsetKey ] ); |
54 | - foreach( $_aUnsetElements as $_sFlatInputName ) { |
|
54 | + foreach ( $_aUnsetElements as $_sFlatInputName ) { |
|
55 | 55 | |
56 | 56 | $_aDimensionalKeys = explode( '|', $_sFlatInputName ); |
57 | 57 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | } |
62 | 62 | |
63 | 63 | // The first element is the option key for the `admin_page` field type and section or field dimensional keys follow. |
64 | - for ( $_i = 0; $_i < $iSkipDepth; $_i++) { |
|
64 | + for ( $_i = 0; $_i < $iSkipDepth; $_i++ ) { |
|
65 | 65 | unset( $_aDimensionalKeys[ $_i ] ); |
66 | 66 | } |
67 | 67 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | */ |
119 | 119 | static public function hasNestedFields( $aFieldset ) { |
120 | 120 | |
121 | - if ( ! self::hasFieldDefinitionsInContent( $aFieldset ) ) { |
|
121 | + if ( !self::hasFieldDefinitionsInContent( $aFieldset ) ) { |
|
122 | 122 | return false; |
123 | 123 | } |
124 | 124 | // At this point, the `content` argument contains either the definition of nested fields or inline-mixed fields. |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | static public function hasFieldDefinitionsInContent( $aFieldset ) { |
142 | 142 | |
143 | - if ( ! isset( $aFieldset[ 'content' ] ) ) { |
|
143 | + if ( !isset( $aFieldset[ 'content' ] ) ) { |
|
144 | 144 | return false; |
145 | 145 | } |
146 | 146 | if ( empty( $aFieldset[ 'content' ] ) ) { |
@@ -175,10 +175,10 @@ discard block |
||
175 | 175 | * @since 3.8.13 |
176 | 176 | */ |
177 | 177 | static public function isDynamicField( $aField ) { |
178 | - if ( ! empty( $aField[ 'repeatable' ] ) ) { |
|
178 | + if ( !empty( $aField[ 'repeatable' ] ) ) { |
|
179 | 179 | return true; |
180 | 180 | } |
181 | - if ( ! empty( $aField[ 'sortable' ] ) ) { |
|
181 | + if ( !empty( $aField[ 'sortable' ] ) ) { |
|
182 | 182 | return true; |
183 | 183 | } |
184 | 184 | return false; |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | if ( empty( $sString ) ) { |
208 | 208 | return $sString; |
209 | 209 | } |
210 | - return $sString . '|'; |
|
210 | + return $sString.'|'; |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |
@@ -223,17 +223,17 @@ discard block |
||
223 | 223 | */ |
224 | 224 | static public function getFieldsetReformattedBySubFieldIndex( $aFieldset, $iSubFieldIndex, $bHasSubFields, $aParentFieldset ) { |
225 | 225 | |
226 | - $_oCallerForm = $aFieldset[ '_caller_object' ]; |
|
226 | + $_oCallerForm = $aFieldset[ '_caller_object' ]; |
|
227 | 227 | |
228 | 228 | // Add sub-field index to the parent field path for repeated nested items. |
229 | - $aFieldset[ '_parent_field_path' ] = self::getAOrB( |
|
229 | + $aFieldset[ '_parent_field_path' ] = self::getAOrB( |
|
230 | 230 | $bHasSubFields, |
231 | - $aFieldset[ '_parent_field_path' ] . '|' . $iSubFieldIndex, |
|
231 | + $aFieldset[ '_parent_field_path' ].'|'.$iSubFieldIndex, |
|
232 | 232 | $aFieldset[ '_parent_field_path' ] |
233 | 233 | ); |
234 | - $aFieldset[ '_parent_tag_id' ] = self::getAOrB( |
|
234 | + $aFieldset[ '_parent_tag_id' ] = self::getAOrB( |
|
235 | 235 | $bHasSubFields, |
236 | - $aParentFieldset[ 'tag_id' ] . '__' . $iSubFieldIndex, |
|
236 | + $aParentFieldset[ 'tag_id' ].'__'.$iSubFieldIndex, |
|
237 | 237 | $aParentFieldset[ 'tag_id' ] |
238 | 238 | ); |
239 | 239 | |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $aFieldset, |
243 | 243 | $aFieldset[ '_structure_type' ], |
244 | 244 | $aFieldset[ 'capability' ], |
245 | - ( integer ) $iSubFieldIndex + 1, // 1-based count (not index) |
|
245 | + ( integer ) $iSubFieldIndex + 1, // 1-based count (not index) |
|
246 | 246 | $aFieldset[ '_subsection_index' ], |
247 | 247 | $aFieldset[ '_is_section_repeatable' ], |
248 | 248 | $aFieldset[ '_caller_object' ] |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | |
252 | 252 | $_oFieldsetOutputFormatter = new AdminPageFramework_Form_Model___Format_FieldsetOutput( |
253 | 253 | $aFieldset, |
254 | - $aFieldset[ '_section_index' ], // `_section_index` is defined in the ...FieldsetOutput class. Since this is a nested item, it should be already set. |
|
254 | + $aFieldset[ '_section_index' ], // `_section_index` is defined in the ...FieldsetOutput class. Since this is a nested item, it should be already set. |
|
255 | 255 | $_oCallerForm->aFieldTypeDefinitions |
256 | 256 | ); |
257 | 257 | return $_oFieldsetOutputFormatter->get(); |
@@ -288,12 +288,12 @@ discard block |
||
288 | 288 | if ( empty( $aArguments ) ) { |
289 | 289 | return ''; |
290 | 290 | } |
291 | - if ( self::hasBeenCalled( 'disabled_repeatable_elements_modal_' . $sBoxElementID ) ) { |
|
291 | + if ( self::hasBeenCalled( 'disabled_repeatable_elements_modal_'.$sBoxElementID ) ) { |
|
292 | 292 | return ''; |
293 | 293 | } |
294 | 294 | add_thickbox(); // to display a message to the user. |
295 | 295 | return "<div id='{$sBoxElementID}' style='display:none'>" |
296 | - . "<p>" . $aArguments[ 'message' ] . "</p>" |
|
296 | + . "<p>".$aArguments[ 'message' ]."</p>" |
|
297 | 297 | . "</div>"; |
298 | 298 | |
299 | 299 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | // For form sections, a dummy key is set |
59 | 59 | if ( '__dummy_option_key' === $_aDimensionalKeys[ 0 ] ) { |
60 | - array_shift( $_aDimensionalKeys ); |
|
60 | + array_shift( $_aDimensionalKeys ); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | // The first element is the option key for the `admin_page` field type and section or field dimensional keys follow. |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | } |
130 | 130 | |
131 | 131 | // If the first element is a string, it is an inline mixed field definition. |
132 | - return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) ); |
|
132 | + return is_array( self::getElement( $aFieldset[ 'content' ], 0 ) ); |
|
133 | 133 | |
134 | 134 | } |
135 | 135 |
@@ -75,13 +75,13 @@ discard block |
||
75 | 75 | |
76 | 76 | $_sPropertyClassName = isset( $this->aSubClassNames[ 'oProp' ] ) |
77 | 77 | ? $this->aSubClassNames[ 'oProp' ] |
78 | - : 'AdminPageFramework_Property_' . $this->_sStructureType; |
|
78 | + : 'AdminPageFramework_Property_'.$this->_sStructureType; |
|
79 | 79 | $this->oProp = new $_sPropertyClassName( |
80 | - $this, // caller object |
|
81 | - null, // the caller script path |
|
82 | - $sThisClassName, // class name |
|
83 | - $sCapability, // capability |
|
84 | - $sTextDomain, // text domain |
|
80 | + $this, // caller object |
|
81 | + null, // the caller script path |
|
82 | + $sThisClassName, // class name |
|
83 | + $sCapability, // capability |
|
84 | + $sTextDomain, // text domain |
|
85 | 85 | $this->_sStructureType // fields type |
86 | 86 | ); |
87 | 87 | |
@@ -103,22 +103,22 @@ discard block |
||
103 | 103 | * @since 3.8.17 |
104 | 104 | */ |
105 | 105 | private function ___getConstructorParametersUsedForThisClassName( $sClassName ) { |
106 | - if ( ! isset( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
106 | + if ( !isset( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
107 | 107 | return array(); |
108 | 108 | } |
109 | - if ( ! is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
109 | + if ( !is_object( $GLOBALS[ 'wp_widget_factory' ] ) ) { |
|
110 | 110 | return array(); |
111 | 111 | } |
112 | - if ( ! isset( $GLOBALS[ 'wp_widget_factory' ]->widgets[ $sClassName ] ) ) { |
|
112 | + if ( !isset( $GLOBALS[ 'wp_widget_factory' ]->widgets[ $sClassName ] ) ) { |
|
113 | 113 | return array(); |
114 | 114 | } |
115 | 115 | // At this point, the widget of the given name is already registered. |
116 | 116 | $_oWPWidget = $GLOBALS[ 'wp_widget_factory' ]->widgets[ $sClassName ]; |
117 | 117 | return array( |
118 | - $_oWPWidget->oCaller->oProp->sWidgetTitle, // 1. widget title, |
|
119 | - $_oWPWidget->oCaller->oProp->aWidgetArguments, // 2. widget arguments |
|
120 | - $_oWPWidget->oCaller->oProp->sCapability, // 3. capability |
|
121 | - $_oWPWidget->oCaller->oProp->sTextDomain, // 4. text domain |
|
118 | + $_oWPWidget->oCaller->oProp->sWidgetTitle, // 1. widget title, |
|
119 | + $_oWPWidget->oCaller->oProp->aWidgetArguments, // 2. widget arguments |
|
120 | + $_oWPWidget->oCaller->oProp->sCapability, // 3. capability |
|
121 | + $_oWPWidget->oCaller->oProp->sTextDomain, // 4. text domain |
|
122 | 122 | ); |
123 | 123 | } |
124 | 124 |
@@ -27,17 +27,17 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function _replyToGetSectionName( /* $sAttribute, $aSectionset */ ) { |
29 | 29 | |
30 | - $_aParams = func_get_args() + array( null, null, ); |
|
30 | + $_aParams = func_get_args() + array( null, null,); |
|
31 | 31 | $sNameAttribute = $_aParams[ 0 ]; |
32 | 32 | $aSectionset = $_aParams[ 1 ]; |
33 | 33 | $_aSectionPath = $aSectionset[ '_section_path_array' ]; |
34 | 34 | $_aDimensionalKeys = array( $this->oProp->sOptionKey ); |
35 | - foreach( $_aSectionPath as $_sDimension ) { |
|
36 | - $_aDimensionalKeys[] = '[' . $_sDimension . ']'; |
|
35 | + foreach ( $_aSectionPath as $_sDimension ) { |
|
36 | + $_aDimensionalKeys[ ] = '['.$_sDimension.']'; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | if ( isset( $aSectionset[ '_index' ] ) ) { |
40 | - $_aDimensionalKeys[] = '[' . $aSectionset[ '_index' ] . ']'; |
|
40 | + $_aDimensionalKeys[ ] = '['.$aSectionset[ '_index' ].']'; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | return implode( '', $_aDimensionalKeys ); |
@@ -50,25 +50,25 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function _replyToGetFieldNameAttribute( /* $sAttribute, $aFieldset */ ) { |
52 | 52 | |
53 | - $_aParams = func_get_args() + array( null, null, ); |
|
53 | + $_aParams = func_get_args() + array( null, null,); |
|
54 | 54 | $sNameAttribute = $_aParams[ 0 ]; |
55 | 55 | $aFieldset = $_aParams[ 1 ]; |
56 | 56 | $_aDimensionalKeys = array( |
57 | 57 | $this->oProp->sOptionKey // Use `$this->oProp->sOptionKey` instead of `$aFieldset[ 'option_key' ]` which is not set for nested items. |
58 | 58 | ); |
59 | 59 | if ( $this->isSectionSet( $aFieldset ) ) { |
60 | - $_aSectionPath = $aFieldset[ '_section_path_array' ]; |
|
61 | - foreach( $_aSectionPath as $_sDimension ) { |
|
62 | - $_aDimensionalKeys[] = '[' . $_sDimension . ']'; |
|
60 | + $_aSectionPath = $aFieldset[ '_section_path_array' ]; |
|
61 | + foreach ( $_aSectionPath as $_sDimension ) { |
|
62 | + $_aDimensionalKeys[ ] = '['.$_sDimension.']'; |
|
63 | 63 | } |
64 | 64 | if ( isset( $aFieldset[ '_section_index' ] ) ) { |
65 | - $_aDimensionalKeys[] = '[' . $aFieldset[ '_section_index' ] . ']'; |
|
65 | + $_aDimensionalKeys[ ] = '['.$aFieldset[ '_section_index' ].']'; |
|
66 | 66 | } |
67 | 67 | } |
68 | 68 | |
69 | 69 | // 3.8.0+ Support for nested fields. |
70 | - foreach( $aFieldset[ '_field_path_array' ] as $_sPathPart ) { |
|
71 | - $_aDimensionalKeys[] = '[' . $_sPathPart . ']'; |
|
70 | + foreach ( $aFieldset[ '_field_path_array' ] as $_sPathPart ) { |
|
71 | + $_aDimensionalKeys[ ] = '['.$_sPathPart.']'; |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | return implode( '', $_aDimensionalKeys ); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function _replyToGetFlatFieldName( /* $sAttribute, $aFieldset */ ) { |
83 | 83 | |
84 | - $_aParams = func_get_args() + array( null, null, ); |
|
84 | + $_aParams = func_get_args() + array( null, null,); |
|
85 | 85 | $sNameAttribute = $_aParams[ 0 ]; |
86 | 86 | $aFieldset = $_aParams[ 1 ]; |
87 | 87 | |
@@ -89,11 +89,11 @@ discard block |
||
89 | 89 | $this->oProp->sOptionKey // Use `$this->oProp->sOptionKey` instead of `$aFieldset[ 'option_key' ]` which is not set for nested items. |
90 | 90 | ); |
91 | 91 | if ( $this->isSectionSet( $aFieldset ) ) { |
92 | - foreach( $aFieldset[ '_section_path_array' ] as $_sDimension ) { |
|
93 | - $_aDimensionalKeys[] = $_sDimension; // $aFieldset[ 'section_id' ]; |
|
92 | + foreach ( $aFieldset[ '_section_path_array' ] as $_sDimension ) { |
|
93 | + $_aDimensionalKeys[ ] = $_sDimension; // $aFieldset[ 'section_id' ]; |
|
94 | 94 | } |
95 | 95 | if ( isset( $aFieldset[ '_section_index' ] ) ) { |
96 | - $_aDimensionalKeys[] = $aFieldset[ '_section_index' ]; |
|
96 | + $_aDimensionalKeys[ ] = $aFieldset[ '_section_index' ]; |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | "[{$sKey}]" |
123 | 123 | ); |
124 | 124 | |
125 | - $_sNamePrefix = $this->_replyToGetFieldNameAttribute( '', $aField ); |
|
126 | - return $_sNamePrefix . $sKey; |
|
125 | + $_sNamePrefix = $this->_replyToGetFieldNameAttribute( '', $aField ); |
|
126 | + return $_sNamePrefix.$sKey; |
|
127 | 127 | |
128 | 128 | } |
129 | 129 | /** |
@@ -141,10 +141,10 @@ discard block |
||
141 | 141 | $_sKey = $this->oUtil->getAOrB( |
142 | 142 | '0' !== $_sKey && empty( $_sKey ), |
143 | 143 | '', |
144 | - "|" . $_sKey |
|
144 | + "|".$_sKey |
|
145 | 145 | ); |
146 | 146 | |
147 | - return $this->_replyToGetFlatFieldName( '', $aField ) . $_sKey; |
|
147 | + return $this->_replyToGetFlatFieldName( '', $aField ).$_sKey; |
|
148 | 148 | |
149 | 149 | } |
150 | 150 |