@@ -30,7 +30,6 @@ |
||
30 | 30 | * Returns the field container attribute array. |
31 | 31 | * |
32 | 32 | * @remark Formatting each sub-field should be performed prior to callign this method. |
33 | - * @param array $aField The (sub-)field definition array. This should have been formatted already. |
|
34 | 33 | * @return array The generated field container attribute array. |
35 | 34 | * @internal |
36 | 35 | * @since 3.5.3 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * |
25 | 25 | * @since 3.6.0 |
26 | 26 | */ |
27 | - public $sContext = 'field'; |
|
27 | + public $sContext = 'field'; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Returns the field container attribute array. |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | |
42 | 42 | return array( |
43 | 43 | 'id' => $this->aArguments[ '_field_container_id' ], |
44 | - 'data-type' => $this->aArguments[ 'type' ], // referred by the repeatable field JavaScript script. |
|
44 | + 'data-type' => $this->aArguments[ 'type' ], // referred by the repeatable field JavaScript script. |
|
45 | 45 | // @deprecated 3.6.0 |
46 | 46 | // 'data-id_model' => $this->aArguments[ '_fields_container_id_model' ], // 3.3.1+ |
47 | - 'class' => "admin-page-framework-field admin-page-framework-field-" . $this->aArguments[ 'type' ] |
|
47 | + 'class' => "admin-page-framework-field admin-page-framework-field-".$this->aArguments[ 'type' ] |
|
48 | 48 | . $this->getAOrB( |
49 | 49 | $this->aArguments[ 'attributes' ][ 'disabled' ], |
50 | 50 | ' disabled', |
@@ -60,6 +60,7 @@ |
||
60 | 60 | * |
61 | 61 | * @since 3.1.0 |
62 | 62 | * @since DEVVER Moved from `AdminPageFramework_Form_View___Fieldset`. |
63 | + * @param string $sHeadingMessage |
|
63 | 64 | * @return string The error string message. An empty value if not found. |
64 | 65 | */ |
65 | 66 | private function _getFieldError( $aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage ) { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | private function _getFieldError( $aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage ) { |
66 | 66 | |
67 | 67 | // If this field has a section and the error element is set |
68 | - $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
68 | + $_aErrorPath = array_merge( $aSectionPath, $aFieldPath ); |
|
69 | 69 | if ( $this->_hasFieldError( $aErrors, $_aErrorPath ) ) { |
70 | 70 | return "<span class='field-error'>* " |
71 | 71 | . $sHeadingMessage |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Admin Page Framework |
|
4 | - * |
|
5 | - * http://en.michaeluno.jp/admin-page-framework/ |
|
6 | - * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
7 | - * |
|
8 | - */ |
|
3 | + * Admin Page Framework |
|
4 | + * |
|
5 | + * http://en.michaeluno.jp/admin-page-framework/ |
|
6 | + * Copyright (c) 2013-2016 Michael Uno; Licensed MIT |
|
7 | + * |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Provides an abstract base class to create meta boxes in generic admin pages created by the framework. |
@@ -176,6 +176,7 @@ discard block |
||
176 | 176 | * Returns the repeatable fields script. |
177 | 177 | * |
178 | 178 | * @since 2.1.3 |
179 | + * @param string $sFieldsContainerID |
|
179 | 180 | */ |
180 | 181 | protected function _getRepeaterFieldEnablerScript( $sFieldsContainerID, $iFieldCount, $aSettings ) { |
181 | 182 | |
@@ -222,6 +223,7 @@ discard block |
||
222 | 223 | * Returns the sortable fields script. |
223 | 224 | * |
224 | 225 | * @since 3.0.0 |
226 | + * @param string $sFieldsContainerID |
|
225 | 227 | */ |
226 | 228 | protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) { |
227 | 229 |
@@ -189,7 +189,7 @@ |
||
189 | 189 | $_sButtons = |
190 | 190 | "<div class='admin-page-framework-repeatable-field-buttons' {$_sSettingsAttributes} >" |
191 | 191 | . "<a class='repeatable-field-remove-button button-secondary repeatable-field-button button button-small {$_sDashiconMinus}' href='#' title='{$_sRemove}' {$_sVisibility} data-id='{$sFieldsContainerID}'>" |
192 | - . ( $_bDashiconSupported ? '' : '-' ) |
|
192 | + . ( $_bDashiconSupported ? '' : '-' ) |
|
193 | 193 | . "</a>" |
194 | 194 | . "<a class='repeatable-field-add-button button-secondary repeatable-field-button button button-small {$_sDashiconPlus}' href='#' title='{$_sAdd}' data-id='{$sFieldsContainerID}'>" |
195 | 195 | . ( $_bDashiconSupported ? '' : '+' ) |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * @param object $oMsg An object storing the system messages. |
69 | 69 | * @param array $aCallbacks An array storing the form-field specific callbacks. |
70 | 70 | */ |
71 | - public function __construct( &$aField, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks=array() ) { |
|
71 | + public function __construct( &$aField, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks = array() ) { |
|
72 | 72 | |
73 | 73 | // @todo Investigate why the first parameter is passed by reference. |
74 | 74 | |
@@ -79,13 +79,13 @@ discard block |
||
79 | 79 | $this->aErrors = $this->getAsArray( $aErrors ); |
80 | 80 | $this->oMsg = $oMsg; |
81 | 81 | $this->aCallbacks = $aCallbacks + array( |
82 | - 'hfID' => null, // the input id attribute |
|
83 | - 'hfTagID' => null, // the fieldset/field row container id attribute |
|
84 | - 'hfName' => null, // the input name attribute |
|
85 | - 'hfNameFlat' => null, // the flat input name attribute |
|
82 | + 'hfID' => null, // the input id attribute |
|
83 | + 'hfTagID' => null, // the fieldset/field row container id attribute |
|
84 | + 'hfName' => null, // the input name attribute |
|
85 | + 'hfNameFlat' => null, // the flat input name attribute |
|
86 | 86 | 'hfInputName' => null, |
87 | 87 | 'hfInputNameFlat' => null, |
88 | - 'hfClass' => null, // the class attribute |
|
88 | + 'hfClass' => null, // the class attribute |
|
89 | 89 | ); |
90 | 90 | |
91 | 91 | // 2. Load necessary JavaScript scripts. |
@@ -152,9 +152,9 @@ discard block |
||
152 | 152 | * @since 3.2.0 Added the `$sFieldsType` parameter. |
153 | 153 | * @internal |
154 | 154 | */ |
155 | - private function _loadScripts( $sStructureType='' ) { |
|
155 | + private function _loadScripts( $sStructureType = '' ) { |
|
156 | 156 | |
157 | - if ( 'widget' === $sStructureType && ! self::$_bIsLoadedSScripts_Widget ) { |
|
157 | + if ( 'widget' === $sStructureType && !self::$_bIsLoadedSScripts_Widget ) { |
|
158 | 158 | new AdminPageFramework_Form_View___Script_Widget; |
159 | 159 | self::$_bIsLoadedSScripts_Widget = true; |
160 | 160 | } |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | $_sRemove = $this->oMsg->get( 'remove' ); |
184 | 184 | $_sVisibility = $iFieldCount <= 1 ? " style='visibility: hidden;'" : ""; |
185 | 185 | $_sSettingsAttributes = $this->generateDataAttributes( ( array ) $aSettings ); |
186 | - $_bDashiconSupported = false; // version_compare( $GLOBALS['wp_version'], '3.8', '>=' ); |
|
186 | + $_bDashiconSupported = false; // version_compare( $GLOBALS['wp_version'], '3.8', '>=' ); |
|
187 | 187 | $_sDashiconPlus = $_bDashiconSupported ? 'dashicons dashicons-plus' : ''; |
188 | 188 | $_sDashiconMinus = $_bDashiconSupported ? 'dashicons dashicons-minus' : ''; |
189 | 189 | $_sButtons = |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | . "</a>" |
197 | 197 | . "</div>"; |
198 | 198 | $_aJSArray = json_encode( $aSettings ); |
199 | - $_sButtonsHTML = '"' . $_sButtons . '"'; |
|
199 | + $_sButtonsHTML = '"'.$_sButtons.'"'; |
|
200 | 200 | $_sScript = <<<JAVASCRIPTS |
201 | 201 | jQuery( document ).ready( function() { |
202 | 202 | var _nodePositionIndicators = jQuery( '#{$sFieldsContainerID} .admin-page-framework-field .repeatable-field-buttons' ); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | self::$_bIsLoadedSScripts_Widget = true; |
160 | 160 | } |
161 | 161 | |
162 | - if ( self::$_bIsLoadedSScripts ) { |
|
162 | + if ( self::$_bIsLoadedSScripts ) { |
|
163 | 163 | return; |
164 | 164 | } |
165 | 165 | self::$_bIsLoadedSScripts = true; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @since 3.0.0 |
225 | 225 | */ |
226 | - protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) { |
|
226 | + protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) { |
|
227 | 227 | |
228 | 228 | $_sScript = <<<JAVASCRIPTS |
229 | 229 | jQuery( document ).ready( function() { |
@@ -23,7 +23,6 @@ |
||
23 | 23 | * @internal |
24 | 24 | * @since 3.5.3 |
25 | 25 | * @since 3.6.0 Moved from `AdminPageFramework_FormDefinition`. |
26 | - * @param array $aFieldset a field definition array. |
|
27 | 26 | * @return boolean |
28 | 27 | */ |
29 | 28 | protected function _isSectionSet() { |
@@ -60,6 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * Applies the subject string to the set callback filter function. |
62 | 62 | * @since 3.6.0 |
63 | + * @param string $sSubject |
|
63 | 64 | */ |
64 | 65 | protected function _getFiltered( $sSubject ) { |
65 | 66 | return is_callable( $this->hfCallback ) |
@@ -51,9 +51,9 @@ |
||
51 | 51 | $_sIndex = $this->getAOrB( |
52 | 52 | '0' !== $this->sIndex && empty( $this->sIndex ), |
53 | 53 | '', |
54 | - "[" . $this->sIndex . "]" |
|
54 | + "[".$this->sIndex."]" |
|
55 | 55 | ); |
56 | - return $this->_getFiltered( $this->_getFieldName() . $_sIndex ); |
|
56 | + return $this->_getFiltered( $this->_getFieldName().$_sIndex ); |
|
57 | 57 | |
58 | 58 | } |
59 | 59 |
@@ -51,6 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Applies the subject string to the set callback filter function. |
53 | 53 | * @since 3.6.0 |
54 | + * @param string $sSubject |
|
54 | 55 | */ |
55 | 56 | protected function _getFiltered( $sSubject ) { |
56 | 57 | return is_callable( $this->hfCallback ) |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $this->hfCallback, |
36 | 36 | ); |
37 | 37 | $this->aArguments = $_aParameters[ 0 ]; |
38 | - $this->hfCallback = $_aParameters[ 1 ]; |
|
38 | + $this->hfCallback = $_aParameters[ 1 ]; |
|
39 | 39 | |
40 | 40 | } |
41 | 41 | |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | |
84 | 84 | // Extract the first part as it does not have braces |
85 | 85 | $_sName = array_shift( $aParts ); |
86 | - foreach( $aParts as $_sPart ) { |
|
87 | - $_sName .= '[' . $_sPart . ']'; |
|
86 | + foreach ( $aParts as $_sPart ) { |
|
87 | + $_sName .= '['.$_sPart.']'; |
|
88 | 88 | } |
89 | 89 | return $_sName; |
90 | 90 |
@@ -161,6 +161,7 @@ discard block |
||
161 | 161 | } |
162 | 162 | /** |
163 | 163 | * @since DEVVER |
164 | + * @param string $_sOutput |
|
164 | 165 | * @return string |
165 | 166 | */ |
166 | 167 | private function _getSpinnerOutput( $_sOutput ) { |
@@ -297,7 +298,7 @@ discard block |
||
297 | 298 | * @param array $_aOutputs Holds output elements - contents, section tab list, count of subsections |
298 | 299 | * @param string $_sSectionsID The container id of secitons. |
299 | 300 | * @param array $_aSection |
300 | - * @param array $_aFieldsInSections A fieldsets array already divided by section tab. |
|
301 | + * @param array $aFieldsInSections A fieldsets array already divided by section tab. |
|
301 | 302 | * @return array The updated sections table output array. |
302 | 303 | */ |
303 | 304 | private function _getSectionsetTable( $_aOutputs, $_sSectionsID, array $_aSection, array $aFieldsInSections ) { |
@@ -351,6 +352,7 @@ discard block |
||
351 | 352 | } |
352 | 353 | /** |
353 | 354 | * @since DEVVER |
355 | + * @param string $_sSectionsID |
|
354 | 356 | * @return array |
355 | 357 | */ |
356 | 358 | private function _getSubSections( $_aOutputs, $_sSectionsID, $_aSection, $_aSubSections ) { |
@@ -499,6 +501,7 @@ discard block |
||
499 | 501 | * @since 3.5.3 |
500 | 502 | * @since 3.6.0 Removed the `$sSectionID` parameter. Added the `$aSectionset` parameter. |
501 | 503 | * @since DEVVER Moved from `AdminPageFramework_FormPart_Table`. |
504 | + * @param string $sSectionsID |
|
502 | 505 | * @return string The formatted sections table HTML output. |
503 | 506 | */ |
504 | 507 | private function _getFormattedSectionsTablesOutput( array $aOutputs, $aSectionset, $sSectionsID, array $aCollapsible, $sSectionTabSlug ) { |
@@ -531,7 +531,7 @@ |
||
531 | 531 | * @return string The generated section tab list as HTML. |
532 | 532 | */ |
533 | 533 | private function _getSectionTabList( $sSectionTabSlug, array $aSectionTabList ) { |
534 | - return $sSectionTabSlug |
|
534 | + return $sSectionTabSlug |
|
535 | 535 | ? "<ul class='admin-page-framework-section-tabs nav-tab-wrapper'>" |
536 | 536 | . implode( PHP_EOL, $aSectionTabList ) |
537 | 537 | . "</ul>" |
@@ -126,16 +126,16 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function get() { |
128 | 128 | |
129 | - $_oFormatSectionsetsByTab = new AdminPageFramework_Form_View___Format_SectionsetsByTab( |
|
129 | + $_oFormatSectionsetsByTab = new AdminPageFramework_Form_View___Format_SectionsetsByTab( |
|
130 | 130 | $this->aStructure[ 'sectionsets' ], |
131 | 131 | $this->aStructure[ 'fieldsets' ], |
132 | 132 | $this->aArguments[ 'nested_depth' ] |
133 | 133 | ); |
134 | 134 | |
135 | - $_aOutput = array(); |
|
136 | - foreach( $_oFormatSectionsetsByTab->getTabs() as $_sSectionTabSlug ) { |
|
135 | + $_aOutput = array(); |
|
136 | + foreach ( $_oFormatSectionsetsByTab->getTabs() as $_sSectionTabSlug ) { |
|
137 | 137 | |
138 | - $_aOutput[] = $this->_getFormOutput( |
|
138 | + $_aOutput[ ] = $this->_getFormOutput( |
|
139 | 139 | $_oFormatSectionsetsByTab->getSectionsets( $_sSectionTabSlug ), |
140 | 140 | $_oFormatSectionsetsByTab->getFieldsets( $_sSectionTabSlug ), |
141 | 141 | $_sSectionTabSlug, |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | |
150 | 150 | // Generate id for this output |
151 | 151 | $_sOutput = implode( PHP_EOL, $_aOutput ); |
152 | - $_sElementID = "admin-page-framework-sectionsets-" . uniqid(); |
|
152 | + $_sElementID = "admin-page-framework-sectionsets-".uniqid(); |
|
153 | 153 | return $this->_getSpinnerOutput( $_sOutput ) |
154 | 154 | . "<div id='{$_sElementID}' class='admin-page-framework-sctionsets admin-page-framework-form-js-on'>" |
155 | 155 | . $_sOutput |
@@ -184,17 +184,17 @@ discard block |
||
184 | 184 | |
185 | 185 | // A sectionset is a set of sections. |
186 | 186 | $_sSectionSet = $this->_getSectionsetsTables( |
187 | - $aSectionsets, // sectionset definition (already devided by section tab) |
|
188 | - $aFieldsets, // fieldset definitions (already devided by section tab) |
|
187 | + $aSectionsets, // sectionset definition (already devided by section tab) |
|
188 | + $aFieldsets, // fieldset definitions (already devided by section tab) |
|
189 | 189 | $aCallbacks |
190 | 190 | ); |
191 | 191 | return $_sSectionSet |
192 | - ? "<div " . $this->getAttributes( |
|
192 | + ? "<div ".$this->getAttributes( |
|
193 | 193 | array( |
194 | 194 | 'class' => 'admin-page-framework-sectionset', |
195 | - 'id' => "sectionset-{$sSectionTabSlug}_" . md5( serialize( $aSectionsets ) ), |
|
195 | + 'id' => "sectionset-{$sSectionTabSlug}_".md5( serialize( $aSectionsets ) ), |
|
196 | 196 | ) |
197 | - ) . ">" |
|
197 | + ).">" |
|
198 | 198 | . $_sSectionSet |
199 | 199 | . "</div>" |
200 | 200 | : ''; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | * If no fields belonging to the section, return empty. |
227 | 227 | * Otherwise, the sectionsets container gets rendered and its CSS rules such as margins give unwanted results. |
228 | 228 | */ |
229 | - if ( ! count( $aFieldsets ) ) { |
|
229 | + if ( !count( $aFieldsets ) ) { |
|
230 | 230 | return ''; |
231 | 231 | } |
232 | 232 | |
@@ -238,12 +238,12 @@ discard block |
||
238 | 238 | 'count_subsections' => 0, |
239 | 239 | ); |
240 | 240 | $_sThisSectionID = $_aFirstSectionset[ 'section_id' ]; |
241 | - $_sSectionsID = 'sections-' . $_sThisSectionID; |
|
241 | + $_sSectionsID = 'sections-'.$_sThisSectionID; |
|
242 | 242 | $_aCollapsible = $this->_getCollapsibleArgumentForSections( |
243 | 243 | $_aFirstSectionset |
244 | 244 | ); |
245 | 245 | |
246 | - foreach( $aSectionsets as $_aSectionset ) { |
|
246 | + foreach ( $aSectionsets as $_aSectionset ) { |
|
247 | 247 | |
248 | 248 | $_sSectionTabSlug = $_aSectionset[ 'section_tab_slug' ]; // needed outside the loop |
249 | 249 | $_aOutputs = $this->_getSectionsetTable( |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * Changed the visibility scope to private. Changed the 1st parameter from `$aSection`. |
276 | 276 | * @return array |
277 | 277 | */ |
278 | - private function _getCollapsibleArgumentForSections( array $aSectionset=array() ) { |
|
278 | + private function _getCollapsibleArgumentForSections( array $aSectionset = array() ) { |
|
279 | 279 | |
280 | 280 | $_oArgumentFormater = new AdminPageFramework_Form_Model___Format_CollapsibleSection( |
281 | 281 | $aSectionset[ 'collapsible' ], |
@@ -304,17 +304,17 @@ discard block |
||
304 | 304 | */ |
305 | 305 | private function _getSectionsetTable( $_aOutputs, $_sSectionsID, array $_aSection, array $aFieldsInSections ) { |
306 | 306 | |
307 | - if ( ! $this->isSectionsetVisible( $_aSection ) ) { |
|
307 | + if ( !$this->isSectionsetVisible( $_aSection ) ) { |
|
308 | 308 | // var_dump( 'not visible: ' . $_aSection[ '_section_path' ] ); |
309 | 309 | return $_aOutputs; |
310 | 310 | } |
311 | 311 | |
312 | 312 | // If the 'save' argument is false, insert a flag that disables saving the section inputs. |
313 | - $_aOutputs[ 'section_contents' ][] = $this->_getUnsetFlagSectionInputTag( $_aSection ); |
|
313 | + $_aOutputs[ 'section_contents' ][ ] = $this->_getUnsetFlagSectionInputTag( $_aSection ); |
|
314 | 314 | |
315 | 315 | // For repeatable sections - sub-sections are divided field definition arrays by sub-section index, |
316 | 316 | // not section definition arrays. |
317 | - $_aSubSections = $this->getIntegerKeyElements( |
|
317 | + $_aSubSections = $this->getIntegerKeyElements( |
|
318 | 318 | $this->getElementAsArray( |
319 | 319 | $aFieldsInSections, // subject |
320 | 320 | $_aSection[ '_section_path' ], // $_aSection[ 'section_id' ], // dimensional key |
@@ -358,29 +358,29 @@ discard block |
||
358 | 358 | private function _getSubSections( $_aOutputs, $_sSectionsID, $_aSection, $_aSubSections ) { |
359 | 359 | |
360 | 360 | // Add the repeatable sections enabler script. |
361 | - if ( ! empty( $_aSection[ 'repeatable' ] ) ) { |
|
362 | - $_aOutputs[ 'section_contents' ][] = AdminPageFramework_Form_View___Script_RepeatableSection::getEnabler( |
|
361 | + if ( !empty( $_aSection[ 'repeatable' ] ) ) { |
|
362 | + $_aOutputs[ 'section_contents' ][ ] = AdminPageFramework_Form_View___Script_RepeatableSection::getEnabler( |
|
363 | 363 | $_sSectionsID, |
364 | 364 | $_aOutputs[ 'count_subsections' ], |
365 | 365 | $_aSection[ 'repeatable' ], |
366 | 366 | $this->oMsg |
367 | 367 | ); |
368 | - $_aOutputs[ 'section_contents' ][] = $this->_getRepeatableSectionFlagTag( $_aSection ); |
|
368 | + $_aOutputs[ 'section_contents' ][ ] = $this->_getRepeatableSectionFlagTag( $_aSection ); |
|
369 | 369 | } |
370 | 370 | // Add the sortable sections enabler script. 3.6.0+ |
371 | - if ( ! empty( $_aSection[ 'sortable' ] ) ) { |
|
371 | + if ( !empty( $_aSection[ 'sortable' ] ) ) { |
|
372 | 372 | // @todo Change the name of the class to AdminPageFramework_Form_Script_... |
373 | - $_aOutputs[ 'section_contents' ][] = AdminPageFramework_Form_View___Script_SortableSection::getEnabler( |
|
373 | + $_aOutputs[ 'section_contents' ][ ] = AdminPageFramework_Form_View___Script_SortableSection::getEnabler( |
|
374 | 374 | $_sSectionsID, |
375 | 375 | $_aSection[ 'sortable' ], |
376 | 376 | $this->oMsg |
377 | 377 | ); |
378 | - $_aOutputs[ 'section_contents' ][] = $this->_getSortableSectionFlagTag( $_aSection ); |
|
378 | + $_aOutputs[ 'section_contents' ][ ] = $this->_getSortableSectionFlagTag( $_aSection ); |
|
379 | 379 | } |
380 | 380 | |
381 | 381 | // Get the section tables. |
382 | 382 | $_aSubSections = $this->numerizeElements( $_aSubSections ); // will include the main section as well. |
383 | - foreach( $_aSubSections as $_iIndex => $_aFields ) { |
|
383 | + foreach ( $_aSubSections as $_iIndex => $_aFields ) { |
|
384 | 384 | |
385 | 385 | $_oEachSectionArguments = new AdminPageFramework_Form_Model___Format_EachSection( |
386 | 386 | $_aSection, |
@@ -410,8 +410,8 @@ discard block |
||
410 | 410 | array( |
411 | 411 | 'class' => 'element-address', |
412 | 412 | 'type' => 'hidden', |
413 | - 'name' => '__repeatable_elements_' . $aSection[ '_structure_type' ] |
|
414 | - . '[' . $aSection[ 'section_id' ] . ']', |
|
413 | + 'name' => '__repeatable_elements_'.$aSection[ '_structure_type' ] |
|
414 | + . '['.$aSection[ 'section_id' ].']', |
|
415 | 415 | // @todo examine whether this value should include a section index. |
416 | 416 | 'value' => $aSection[ 'section_id' ], |
417 | 417 | ) |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | array( |
430 | 430 | 'class' => 'element-address', |
431 | 431 | 'type' => 'hidden', |
432 | - 'name' => '__sortable_elements_' . $aSection[ '_structure_type' ] |
|
433 | - . '[' . $aSection[ 'section_id' ] . ']', |
|
432 | + 'name' => '__sortable_elements_'.$aSection[ '_structure_type' ] |
|
433 | + . '['.$aSection[ 'section_id' ].']', |
|
434 | 434 | // @todo examine whether this value should include a section index. |
435 | 435 | 'value' => $aSection[ 'section_id' ], |
436 | 436 | ) |
@@ -452,8 +452,8 @@ discard block |
||
452 | 452 | 'input', |
453 | 453 | array( |
454 | 454 | 'type' => 'hidden', |
455 | - 'name' => '__unset_' . $aSection[ '_structure_type' ] . '[' . $aSection[ 'section_id' ] . ']', |
|
456 | - 'value' => "__dummy_option_key|" . $aSection[ 'section_id' ], |
|
455 | + 'name' => '__unset_'.$aSection[ '_structure_type' ].'['.$aSection[ 'section_id' ].']', |
|
456 | + 'value' => "__dummy_option_key|".$aSection[ 'section_id' ], |
|
457 | 457 | 'class' => 'unset-element-names element-address', |
458 | 458 | ) |
459 | 459 | ); |
@@ -469,7 +469,7 @@ discard block |
||
469 | 469 | private function _getSectionTableWithTabList( array $_aOutputs, array $aSectionset, $aFieldsetsPerSection ) { |
470 | 470 | |
471 | 471 | // Tab list |
472 | - $_aOutputs[ 'section_tab_list' ][] = $this->_getTabList( |
|
472 | + $_aOutputs[ 'section_tab_list' ][ ] = $this->_getTabList( |
|
473 | 473 | $aSectionset, |
474 | 474 | $aFieldsetsPerSection, |
475 | 475 | $this->aCallbacks[ 'fieldset_output' ] |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | |
478 | 478 | // Section container |
479 | 479 | $_oSectionTable = new AdminPageFramework_Form_View___Section( |
480 | - $this->aArguments, // for nested sections |
|
480 | + $this->aArguments, // for nested sections |
|
481 | 481 | $aSectionset, |
482 | 482 | $this->aStructure, |
483 | 483 | $aFieldsetsPerSection, |
@@ -487,7 +487,7 @@ discard block |
||
487 | 487 | $this->aCallbacks, |
488 | 488 | $this->oMsg |
489 | 489 | ); |
490 | - $_aOutputs[ 'section_contents' ][] = $_oSectionTable->get(); |
|
490 | + $_aOutputs[ 'section_contents' ][ ] = $_oSectionTable->get(); |
|
491 | 491 | |
492 | 492 | return $_aOutputs; |
493 | 493 | |
@@ -515,9 +515,9 @@ discard block |
||
515 | 515 | 'section_index' => null, |
516 | 516 | 'collapsible' => $aCollapsible, |
517 | 517 | 'container_type' => 'sections', // section or sections |
518 | - 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
518 | + 'sectionset' => $aSectionset, // 3.7.0+ for tooltip |
|
519 | 519 | ), |
520 | - array(), // fieldsets |
|
520 | + array(), // fieldsets |
|
521 | 521 | $this->aSavedData, |
522 | 522 | $this->aFieldErrors, |
523 | 523 | $this->aStructure[ 'field_type_definitions' ], |
@@ -534,7 +534,7 @@ discard block |
||
534 | 534 | $aOutputs[ 'count_subsections' ] |
535 | 535 | ); |
536 | 536 | return $_oCollapsibleSectionTitle->get() |
537 | - . "<div " . $_oSectionsTablesContainerAttributes->get() . ">" |
|
537 | + . "<div ".$_oSectionsTablesContainerAttributes->get().">" |
|
538 | 538 | . $this->_getSectionTabList( $sSectionTabSlug, $aOutputs[ 'section_tab_list' ] ) |
539 | 539 | . implode( PHP_EOL, $aOutputs[ 'section_contents' ] ) |
540 | 540 | . "</div>"; |
@@ -565,21 +565,21 @@ discard block |
||
565 | 565 | */ |
566 | 566 | private function _getTabList( array $aSection, array $aFields, $hfFieldCallback ) { |
567 | 567 | |
568 | - if ( ! $aSection[ 'section_tab_slug' ] ) { |
|
568 | + if ( !$aSection[ 'section_tab_slug' ] ) { |
|
569 | 569 | return ''; |
570 | 570 | } |
571 | 571 | |
572 | 572 | $iSectionIndex = $aSection[ '_index' ]; |
573 | 573 | |
574 | - $_sSectionTagID = 'section-' . $aSection[ 'section_id' ] . '__' . $iSectionIndex; |
|
574 | + $_sSectionTagID = 'section-'.$aSection[ 'section_id' ].'__'.$iSectionIndex; |
|
575 | 575 | $_aTabAttributes = $aSection[ 'attributes' ][ 'tab' ] |
576 | 576 | + array( |
577 | 577 | 'class' => 'admin-page-framework-section-tab nav-tab', |
578 | 578 | 'id' => "section_tab-{$_sSectionTagID}", |
579 | 579 | 'style' => null |
580 | 580 | ); |
581 | - $_aTabAttributes[ 'class' ] = $this->getClassAttribute( $_aTabAttributes[ 'class' ], $aSection[ 'class' ][ 'tab' ] ); // 3.3.1+ |
|
582 | - $_aTabAttributes[ 'style' ] = $this->getStyleAttribute( $_aTabAttributes[ 'style' ], $aSection[ 'hidden' ] ? 'display:none' : null ); // 3.3.1+ |
|
581 | + $_aTabAttributes[ 'class' ] = $this->getClassAttribute( $_aTabAttributes[ 'class' ], $aSection[ 'class' ][ 'tab' ] ); // 3.3.1+ |
|
582 | + $_aTabAttributes[ 'style' ] = $this->getStyleAttribute( $_aTabAttributes[ 'style' ], $aSection[ 'hidden' ] ? 'display:none' : null ); // 3.3.1+ |
|
583 | 583 | |
584 | 584 | $_oSectionTitle = new AdminPageFramework_Form_View___SectionTitle( |
585 | 585 | array( |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | 'tag' => 'h4', |
588 | 588 | 'section_index' => $iSectionIndex, |
589 | 589 | |
590 | - 'sectionset' => $aSection, // 3.7.0+ for tooltip |
|
590 | + 'sectionset' => $aSection, // 3.7.0+ for tooltip |
|
591 | 591 | ), |
592 | 592 | $aFields, |
593 | 593 | $this->aSavedData, |
@@ -597,7 +597,7 @@ discard block |
||
597 | 597 | $this->aCallbacks // field output element callables. |
598 | 598 | ); |
599 | 599 | |
600 | - return "<li " . $this->getAttributes( $_aTabAttributes ) . ">" |
|
600 | + return "<li ".$this->getAttributes( $_aTabAttributes ).">" |
|
601 | 601 | . "<a href='#{$_sSectionTagID}'>" |
602 | 602 | . $_oSectionTitle->get() |
603 | 603 | ."</a>" |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | private function _getSectionsetsTables( array $aSectionsets, array $aFieldsets, array $aCallbacks ) { |
205 | 205 | |
206 | 206 | |
207 | - if ( empty( $aSectionsets ) ) { |
|
207 | + if ( empty( $aSectionsets ) ) { |
|
208 | 208 | return ''; |
209 | 209 | } |
210 | 210 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * Changed the visibility scope to private. Changed the 1st parameter from `$aSection`. |
259 | 259 | * @return array |
260 | 260 | */ |
261 | - private function _getCollapsibleArgumentForSections( array $aSectionset=array() ) { |
|
261 | + private function _getCollapsibleArgumentForSections( array $aSectionset=array() ) { |
|
262 | 262 | |
263 | 263 | $_oArgumentFormater = new AdminPageFramework_Form_Model___Format_CollapsibleSection( |
264 | 264 | $aSectionset[ 'collapsible' ], |
@@ -363,7 +363,7 @@ discard block |
||
363 | 363 | |
364 | 364 | // Get the section tables. |
365 | 365 | $_aSubSections = $this->numerizeElements( $_aSubSections ); // will include the main section as well. |
366 | - foreach( $_aSubSections as $_iIndex => $_aFields ) { |
|
366 | + foreach( $_aSubSections as $_iIndex => $_aFields ) { |
|
367 | 367 | |
368 | 368 | $_oEachSectionArguments = new AdminPageFramework_Form_Model___Format_EachSection( |
369 | 369 | $_aSection, |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | */ |
429 | 429 | private function _getUnsetFlagSectionInputTag( array $aSection ) { |
430 | 430 | |
431 | - if ( false !== $aSection[ 'save' ] ) { |
|
431 | + if ( false !== $aSection[ 'save' ] ) { |
|
432 | 432 | return ''; |
433 | 433 | } |
434 | 434 | return $this->getHTMLTag( |
@@ -121,6 +121,8 @@ |
||
121 | 121 | } |
122 | 122 | /** |
123 | 123 | * @since DEVVER |
124 | + * @param string $sKey |
|
125 | + * @param string $sValue |
|
124 | 126 | * @return void |
125 | 127 | */ |
126 | 128 | public function addResource( $sKey, $sValue ) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @param string $sType If empty, the method will check if a message exists in all types. Otherwise, it checks the existence of a message of the specified type. |
27 | 27 | * @return boolean True if a setting notice is set; otherwise, false. |
28 | 28 | */ |
29 | - public function hasSubmitNotice( $sType='' ) { |
|
29 | + public function hasSubmitNotice( $sType = '' ) { |
|
30 | 30 | return $this->oSubmitNotice->hasNotice( $sType ); |
31 | 31 | } |
32 | 32 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param boolean $bOverride (optional) If true, only one message will be shown in the next page load. false: do not override when there is a message of the same id. true: override the previous one. |
53 | 53 | * @return void |
54 | 54 | */ |
55 | - public function setSubmitNotice( $sMessage, $sType='error', $asAttributes=array(), $bOverride=true ) { |
|
55 | + public function setSubmitNotice( $sMessage, $sType = 'error', $asAttributes = array(), $bOverride = true ) { |
|
56 | 56 | $this->oSubmitNotice->set( |
57 | 57 | $sMessage, |
58 | 58 | $sType, |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $this->aSectionsets[ $aSectionset[ 'section_id' ] ] = $aSectionset; |
81 | 81 | $this->aFieldsets[ $aSectionset[ 'section_id' ] ] = $this->getElement( |
82 | - $this->aFieldsets, // subject array |
|
82 | + $this->aFieldsets, // subject array |
|
83 | 83 | $aSectionset[ 'section_id' ], // key |
84 | 84 | array() // default |
85 | 85 | ); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function removeSection( $sSectionID ) { |
96 | 96 | |
97 | - if ( '_default' === $sSectionID ){ |
|
97 | + if ( '_default' === $sSectionID ) { |
|
98 | 98 | return; |
99 | 99 | } |
100 | 100 | unset( |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * @return void |
125 | 125 | */ |
126 | 126 | public function addResource( $sKey, $sValue ) { |
127 | - self::$_aResources[ $sKey ][] = $sValue; |
|
127 | + self::$_aResources[ $sKey ][ ] = $sValue; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | public function addField( $asFieldset ) { |
148 | 148 | |
149 | 149 | // If it is a target section, update the property and return. |
150 | - if ( ! $this->_isFieldsetDefinition( $asFieldset ) ) { |
|
150 | + if ( !$this->_isFieldsetDefinition( $asFieldset ) ) { |
|
151 | 151 | $this->_asTargetSectionID = $this->_getTargetSectionID( $asFieldset ); |
152 | 152 | return $this->_asTargetSectionID; |
153 | 153 | } |
@@ -156,13 +156,13 @@ discard block |
||
156 | 156 | |
157 | 157 | // Set the target section ID |
158 | 158 | $this->_asTargetSectionID = $this->getElement( |
159 | - $_aFieldset, // subject array |
|
159 | + $_aFieldset, // subject array |
|
160 | 160 | 'section_id', // key |
161 | 161 | $this->_asTargetSectionID // default |
162 | 162 | ); |
163 | 163 | |
164 | 164 | // Required Keys |
165 | - if ( ! isset( $_aFieldset[ 'field_id' ], $_aFieldset[ 'type' ] ) ) { |
|
165 | + if ( !isset( $_aFieldset[ 'field_id' ], $_aFieldset[ 'type' ] ) ) { |
|
166 | 166 | return null; |
167 | 167 | } |
168 | 168 | |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | */ |
266 | 266 | public function removeField( $sFieldID ) { |
267 | 267 | |
268 | - foreach( $this->aFieldsets as $_sSectionID => $_aSubSectionsOrFields ) { |
|
268 | + foreach ( $this->aFieldsets as $_sSectionID => $_aSubSectionsOrFields ) { |
|
269 | 269 | |
270 | 270 | if ( array_key_exists( $sFieldID, $_aSubSectionsOrFields ) ) { |
271 | 271 | unset( $this->aFieldsets[ $_sSectionID ][ $sFieldID ] ); |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function removeSection( $sSectionID ) { |
96 | 96 | |
97 | - if ( '_default' === $sSectionID ){ |
|
97 | + if ( '_default' === $sSectionID ) { |
|
98 | 98 | return; |
99 | 99 | } |
100 | 100 | unset( |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | ); |
163 | 163 | |
164 | 164 | // Required Keys |
165 | - if ( ! isset( $_aFieldset[ 'field_id' ], $_aFieldset[ 'type' ] ) ) { |
|
165 | + if ( ! isset( $_aFieldset[ 'field_id' ], $_aFieldset[ 'type' ] ) ) { |
|
166 | 166 | return null; |
167 | 167 | } |
168 | 168 |
@@ -391,7 +391,6 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @since DEVVER |
393 | 393 | * @param array $aSavedData |
394 | - * @param boolean $bOnlyFieldsets Whether to format only the fieldsets. The taxonomy field factory uses this parameter. |
|
395 | 394 | */ |
396 | 395 | protected function _formatElementDefinitions( array $aSavedData ) { |
397 | 396 | |
@@ -427,7 +426,6 @@ discard block |
||
427 | 426 | * Changed the name from `_getFieldErrors()`. |
428 | 427 | * @access public The field type class accesses this method to render nested fields. |
429 | 428 | * @internal |
430 | - * @param boolean $bDelete whether or not the transient should be deleted after retrieving it. |
|
431 | 429 | * @return array |
432 | 430 | */ |
433 | 431 | public function getFieldErrors() { |
@@ -43,10 +43,10 @@ discard block |
||
43 | 43 | * @since 3.7.0 |
44 | 44 | * @return array |
45 | 45 | */ |
46 | - public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure=true, $bStripSlashes=true ) { |
|
46 | + public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure = true, $bStripSlashes = true ) { |
|
47 | 47 | |
48 | 48 | // Extracts the form data from the subject data for parsing |
49 | - $_aSubmittedFormData = $bExtractFromFieldStructure |
|
49 | + $_aSubmittedFormData = $bExtractFromFieldStructure |
|
50 | 50 | ? $this->castArrayContents( |
51 | 51 | $this->getDataStructureFromAddedFieldsets(), // form data (options) structure |
52 | 52 | $aDataToParse // the subject data array, usually $_POST. |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | : $aDataToParse; |
55 | 55 | |
56 | 56 | // 3.6.0 - sorts dynamic eleemnts. |
57 | - $_aSubmittedFormData = $this->getSortedInputs( $_aSubmittedFormData ); |
|
57 | + $_aSubmittedFormData = $this->getSortedInputs( $_aSubmittedFormData ); |
|
58 | 58 | |
59 | 59 | return $bStripSlashes |
60 | 60 | ? stripslashes_deep( $_aSubmittedFormData ) // fixes magic quotes |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | array_merge( |
80 | 80 | $this->getElementAsArray( |
81 | 81 | $_POST, |
82 | - '__repeatable_elements_' . $this->aArguments[ 'structure_type' ], |
|
82 | + '__repeatable_elements_'.$this->aArguments[ 'structure_type' ], |
|
83 | 83 | array() |
84 | 84 | ), |
85 | 85 | $this->getElementAsArray( |
86 | 86 | $_POST, |
87 | - '__sortable_elements_' . $this->aArguments[ 'structure_type' ], |
|
87 | + '__sortable_elements_'.$this->aArguments[ 'structure_type' ], |
|
88 | 88 | array() |
89 | 89 | ) |
90 | 90 | ) |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | * Changed the name from `getFieldsModel()`. |
148 | 148 | * @return array |
149 | 149 | */ |
150 | - public function getDataStructureFromAddedFieldsets() { |
|
150 | + public function getDataStructureFromAddedFieldsets() { |
|
151 | 151 | |
152 | - $_aFormDataStructure = array(); |
|
152 | + $_aFormDataStructure = array(); |
|
153 | 153 | foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) { |
154 | 154 | |
155 | 155 | if ( $_sSectionID != '_default' ) { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | |
160 | 160 | // For default field items. |
161 | - foreach( $_aFieldsets as $_sFieldID => $_aFieldset ) { |
|
161 | + foreach ( $_aFieldsets as $_sFieldID => $_aFieldset ) { |
|
162 | 162 | $_aFormDataStructure[ $_aFieldset[ 'field_id' ] ] = $_aFieldset; |
163 | 163 | } |
164 | 164 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $aSubject, |
191 | 191 | $this->getElementAsArray( |
192 | 192 | $_POST, |
193 | - '__repeatable_elements_' . $this->aArguments[ 'structure_type' ] |
|
193 | + '__repeatable_elements_'.$this->aArguments[ 'structure_type' ] |
|
194 | 194 | ) |
195 | 195 | ); |
196 | 196 | return $_oFilterRepeatableElements->get(); |
@@ -203,13 +203,13 @@ discard block |
||
203 | 203 | public function _replyToRegisterFormItems() { |
204 | 204 | |
205 | 205 | // Check if the form should be created or not. |
206 | - if ( ! $this->isInThePage() ) { |
|
206 | + if ( !$this->isInThePage() ) { |
|
207 | 207 | return; |
208 | 208 | } |
209 | 209 | |
210 | 210 | // Load field type definitions. |
211 | - $this->_setFieldTypeDefinitions( 'admin_page_framework' ); // site-wide |
|
212 | - $this->_setFieldTypeDefinitions( $this->aArguments[ 'caller_id' ] ); // per class |
|
211 | + $this->_setFieldTypeDefinitions( 'admin_page_framework' ); // site-wide |
|
212 | + $this->_setFieldTypeDefinitions( $this->aArguments[ 'caller_id' ] ); // per class |
|
213 | 213 | |
214 | 214 | // Set the options array |
215 | 215 | $this->aSavedData = $this->_getSavedData( |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | $this->aArguments, |
238 | 238 | $this->aFieldsets, |
239 | 239 | self::$_aResources, |
240 | - $this->aFieldTypeDefinitions, // must be called after performing `_setFieldTypeDefinitions()`. |
|
240 | + $this->aFieldTypeDefinitions, // must be called after performing `_setFieldTypeDefinitions()`. |
|
241 | 241 | $this->aCallbacks |
242 | 242 | ); |
243 | 243 | self::$_aResources = $_oFieldResources->get(); // updates the property |
@@ -254,10 +254,10 @@ discard block |
||
254 | 254 | $this->callBack( |
255 | 255 | $this->aCallbacks[ 'handle_form_data' ], |
256 | 256 | array( |
257 | - $this->aSavedData, // 1st parameter |
|
258 | - $this->aArguments, // 2nd parameter |
|
259 | - $this->aSectionsets, // 3rd parameter |
|
260 | - $this->aFieldsets, // 4th parameter |
|
257 | + $this->aSavedData, // 1st parameter |
|
258 | + $this->aArguments, // 2nd parameter |
|
259 | + $this->aSectionsets, // 3rd parameter |
|
260 | + $this->aFieldsets, // 4th parameter |
|
261 | 261 | ) |
262 | 262 | ); |
263 | 263 | |
@@ -271,15 +271,15 @@ discard block |
||
271 | 271 | $this->aSectionsets = $this->callBack( |
272 | 272 | $this->aCallbacks[ 'secitonsets_before_registration' ], |
273 | 273 | array( |
274 | - $this->aSectionsets, // 1st parameter |
|
274 | + $this->aSectionsets, // 1st parameter |
|
275 | 275 | ) |
276 | 276 | ); |
277 | 277 | // Let the main routine modify the fieldsets definition array. |
278 | 278 | $this->aFieldsets = $this->callBack( |
279 | 279 | $this->aCallbacks[ 'fieldsets_before_registration' ], |
280 | 280 | array( |
281 | - $this->aFieldsets, // 1st parameter |
|
282 | - $this->aSectionsets, // 2nd parameter |
|
281 | + $this->aFieldsets, // 1st parameter |
|
282 | + $this->aSectionsets, // 2nd parameter |
|
283 | 283 | ) |
284 | 284 | ); |
285 | 285 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | array( $this, '_replyToRegisterFormItems' ), |
30 | 30 | 100 // priority - low value is set as meta boxes use the `current_screen` action hook for `setUp()`. |
31 | 31 | ); |
32 | - } else { |
|
32 | + } else { |
|
33 | 33 | add_action( |
34 | 34 | $this->aArguments[ 'action_hook_form_registration' ], |
35 | 35 | array( $this, '_replyToRegisterFormItems' ) |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | * Changed the name from `getFieldsModel()`. |
148 | 148 | * @return array |
149 | 149 | */ |
150 | - public function getDataStructureFromAddedFieldsets() { |
|
150 | + public function getDataStructureFromAddedFieldsets() { |
|
151 | 151 | |
152 | 152 | $_aFormDataStructure = array(); |
153 | 153 | foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) { |
154 | 154 | |
155 | - if ( $_sSectionID != '_default' ) { |
|
155 | + if ( $_sSectionID != '_default' ) { |
|
156 | 156 | $_aFormDataStructure[ $_sSectionID ] = $_aFieldsets; |
157 | 157 | continue; |
158 | 158 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @param array $aSubject The subject array to modify. Usually the saved option data. |
186 | 186 | * @return array The modified options array. |
187 | 187 | */ |
188 | - public function dropRepeatableElements( array $aSubject ) { |
|
188 | + public function dropRepeatableElements( array $aSubject ) { |
|
189 | 189 | $_oFilterRepeatableElements = new AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements( |
190 | 190 | $aSubject, |
191 | 191 | $this->getElementAsArray( |