@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @since 2.1.0 Moved from the meta box class. |
35 | 35 | * @var string |
36 | 36 | */ |
37 | - public $sMetaBoxID =''; |
|
37 | + public $sMetaBoxID = ''; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Stores the post type slugs associated with the meta box. |
@@ -137,14 +137,14 @@ discard block |
||
137 | 137 | /** |
138 | 138 | * Calls the parent constructor by formatting the parameter values. |
139 | 139 | */ |
140 | - public function __construct( $oCaller, $sClassName, $sCapability='edit_posts', $sTextDomain='admin-page-framework', $sStructureType='post_meta_box' ) { |
|
140 | + public function __construct( $oCaller, $sClassName, $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework', $sStructureType = 'post_meta_box' ) { |
|
141 | 141 | |
142 | 142 | parent::__construct( |
143 | - $oCaller, // caller object |
|
144 | - null, // caller script path - meta boxes don't need the caller script path. |
|
145 | - $sClassName, // class name |
|
146 | - $sCapability, // capability |
|
147 | - $sTextDomain, // text domain |
|
143 | + $oCaller, // caller object |
|
144 | + null, // caller script path - meta boxes don't need the caller script path. |
|
145 | + $sClassName, // class name |
|
146 | + $sCapability, // capability |
|
147 | + $sTextDomain, // text domain |
|
148 | 148 | $sStructureType // structure type |
149 | 149 | ); |
150 | 150 |
@@ -167,11 +167,11 @@ |
||
167 | 167 | * |
168 | 168 | * Triggered when a post has not been created so no post id is assigned. |
169 | 169 | * |
170 | - * @internal |
|
170 | + * @internal |
|
171 | 171 | * @since 3.3.0 |
172 | 172 | * @callback filter wp_insert_attachment_data |
173 | 173 | * @callback filter wp_insert_post_data |
174 | - * @param array $aPostData An array of slashed post data. |
|
174 | + * @param array $aPostData An array of slashed post data. |
|
175 | 175 | * @param array $aUnmodified An array of sanitized, but otherwise unmodified post data. |
176 | 176 | */ |
177 | 177 | public function _replyToFilterSavingData( $aPostData, $aUnmodified ) { |
@@ -28,12 +28,12 @@ discard block |
||
28 | 28 | * @param string $sTextDomain |
29 | 29 | * @since 3.7.9 |
30 | 30 | */ |
31 | - public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) { |
|
31 | + public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) { |
|
32 | 32 | |
33 | 33 | // This is important to set the hooks before the parent constructor |
34 | 34 | // as the setUp wil be called in there if the default action hook (current_screen) is already triggered. |
35 | - add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) ); |
|
36 | - add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) ); |
|
35 | + add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) ); |
|
36 | + add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) ); |
|
37 | 37 | |
38 | 38 | parent::__construct( |
39 | 39 | $sMetaBoxID, |
@@ -115,14 +115,14 @@ discard block |
||
115 | 115 | * @callback add_meta_boxes |
116 | 116 | */ |
117 | 117 | public function _replyToRegisterMetaBoxes() { |
118 | - foreach( $this->oProp->aPostTypes as $_sPostType ) { |
|
118 | + foreach ( $this->oProp->aPostTypes as $_sPostType ) { |
|
119 | 119 | add_meta_box( |
120 | - $this->oProp->sMetaBoxID, // id |
|
121 | - $this->oProp->sTitle, // title |
|
120 | + $this->oProp->sMetaBoxID, // id |
|
121 | + $this->oProp->sTitle, // title |
|
122 | 122 | array( $this, '_replyToPrintMetaBoxContents' ), // callback |
123 | - $_sPostType, // post type |
|
124 | - $this->oProp->sContext, // context |
|
125 | - $this->oProp->sPriority, // priority |
|
123 | + $_sPostType, // post type |
|
124 | + $this->oProp->sContext, // context |
|
125 | + $this->oProp->sPriority, // priority |
|
126 | 126 | null // argument - deprecated $this->oForm->aFields |
127 | 127 | ); |
128 | 128 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | * @internal |
155 | 155 | * @return integer The found post ID. `0` if not found. |
156 | 156 | */ |
157 | - private function ___getPostID() { |
|
157 | + private function ___getPostID() { |
|
158 | 158 | |
159 | 159 | // for an editing post page. |
160 | 160 | if ( isset( $GLOBALS[ 'post' ]->ID ) ) { |
@@ -186,14 +186,14 @@ discard block |
||
186 | 186 | public function _replyToFilterSavingData( $aPostData, $aUnmodified ) { |
187 | 187 | |
188 | 188 | // Perform initial checks. |
189 | - if ( ! $this->_shouldProceedValidation( $aUnmodified ) ) { |
|
189 | + if ( !$this->_shouldProceedValidation( $aUnmodified ) ) { |
|
190 | 190 | return $aPostData; |
191 | 191 | } |
192 | 192 | |
193 | 193 | // Retrieve the submitted data. |
194 | - $_aInputs = $this->oForm->getSubmittedData( |
|
195 | - $_POST, // subject data to be parsed. Will be sanitized in the method |
|
196 | - true, // extract data with the fieldset structure |
|
194 | + $_aInputs = $this->oForm->getSubmittedData( |
|
195 | + $_POST, // subject data to be parsed. Will be sanitized in the method |
|
196 | + true, // extract data with the fieldset structure |
|
197 | 197 | false // strip slashes |
198 | 198 | ); |
199 | 199 | $_aInputsRaw = $_aInputs; // store one for the last input array. |
@@ -228,8 +228,8 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | $this->oForm->updateMetaDataByType( |
231 | - $_iPostID, // object id |
|
232 | - $_aInputs, // user submit form data |
|
231 | + $_iPostID, // object id |
|
232 | + $_aInputs, // user submit form data |
|
233 | 233 | $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array. |
234 | 234 | $this->oForm->sStructureType // fields type |
235 | 235 | ); |
@@ -288,14 +288,14 @@ discard block |
||
288 | 288 | } |
289 | 289 | |
290 | 290 | // If our nonce isn't there, or we can't verify it, bail |
291 | - if ( ! isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) { |
|
291 | + if ( !isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) { |
|
292 | 292 | return false; |
293 | 293 | } |
294 | - if ( ! wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) { |
|
294 | + if ( !wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) { |
|
295 | 295 | return false; |
296 | 296 | } |
297 | 297 | |
298 | - if ( ! in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes, true ) ) { |
|
298 | + if ( !in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes, true ) ) { |
|
299 | 299 | return false; |
300 | 300 | } |
301 | 301 |
@@ -154,7 +154,7 @@ |
||
154 | 154 | * @internal |
155 | 155 | * @return integer The found post ID. `0` if not found. |
156 | 156 | */ |
157 | - private function ___getPostID() { |
|
157 | + private function ___getPostID() { |
|
158 | 158 | |
159 | 159 | // for an editing post page. |
160 | 160 | if ( isset( $GLOBALS[ 'post' ]->ID ) ) { |
@@ -65,18 +65,18 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function _replyToRegisterHelpTabs() { |
67 | 67 | |
68 | - if ( ! $this->oProp->oCaller->isInThePage() ) { |
|
68 | + if ( !$this->oProp->oCaller->isInThePage() ) { |
|
69 | 69 | return; |
70 | 70 | } |
71 | 71 | |
72 | 72 | $_sCurrentPageSlug = $this->oProp->getCurrentPageSlug(); |
73 | 73 | $_sCurrentTabSlug = $this->oProp->getCurrentTabSlug( $_sCurrentPageSlug ); |
74 | 74 | |
75 | - if ( ! $this->oProp->isPageAdded( $_sCurrentPageSlug ) ) { |
|
75 | + if ( !$this->oProp->isPageAdded( $_sCurrentPageSlug ) ) { |
|
76 | 76 | return; |
77 | 77 | } |
78 | 78 | |
79 | - foreach( $this->oProp->aHelpTabs as $aHelpTab ) { |
|
79 | + foreach ( $this->oProp->aHelpTabs as $aHelpTab ) { |
|
80 | 80 | $this->_registerHelpTab( $aHelpTab, $_sCurrentPageSlug, $_sCurrentTabSlug ); |
81 | 81 | } |
82 | 82 | |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function _registerHelpTab( array $aHelpTab, $sCurrentPageSlug, $sCurrentTabSlug ) { |
91 | 91 | |
92 | - if ( $sCurrentPageSlug != $aHelpTab['sPageSlug'] ) { |
|
92 | + if ( $sCurrentPageSlug != $aHelpTab[ 'sPageSlug' ] ) { |
|
93 | 93 | return; |
94 | 94 | } |
95 | - if ( isset( $aHelpTab['sPageTabSlug'] ) && ! empty( $aHelpTab['sPageTabSlug'] ) && $sCurrentTabSlug != $aHelpTab['sPageTabSlug'] ) { |
|
95 | + if ( isset( $aHelpTab[ 'sPageTabSlug' ] ) && !empty( $aHelpTab[ 'sPageTabSlug' ] ) && $sCurrentTabSlug != $aHelpTab[ 'sPageTabSlug' ] ) { |
|
96 | 96 | return; |
97 | 97 | } |
98 | 98 | |
@@ -131,24 +131,24 @@ discard block |
||
131 | 131 | $aHelpTab = ( array ) $aHelpTab + self::$_aStructure_HelpTabUserArray; |
132 | 132 | |
133 | 133 | // If the key is not set, that means the help tab array is not created yet. So create it and go back. |
134 | - if ( ! isset( $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] ) ) { |
|
135 | - $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ] = array( |
|
136 | - 'sID' => $aHelpTab['help_tab_id'], |
|
137 | - 'sTitle' => $aHelpTab['help_tab_title'], |
|
138 | - 'aContent' => ! empty( $aHelpTab['help_tab_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_content'] ) ) : array(), |
|
139 | - 'aSidebar' => ! empty( $aHelpTab['help_tab_sidebar_content'] ) ? array( $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] ) ) : array(), |
|
140 | - 'sPageSlug' => $aHelpTab['page_slug'], |
|
141 | - 'sPageTabSlug' => $aHelpTab['page_tab_slug'], |
|
134 | + if ( !isset( $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] ) ) { |
|
135 | + $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ] = array( |
|
136 | + 'sID' => $aHelpTab[ 'help_tab_id' ], |
|
137 | + 'sTitle' => $aHelpTab[ 'help_tab_title' ], |
|
138 | + 'aContent' => !empty( $aHelpTab[ 'help_tab_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] ) ) : array(), |
|
139 | + 'aSidebar' => !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ? array( $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) : array(), |
|
140 | + 'sPageSlug' => $aHelpTab[ 'page_slug' ], |
|
141 | + 'sPageTabSlug' => $aHelpTab[ 'page_tab_slug' ], |
|
142 | 142 | ); |
143 | 143 | return; |
144 | 144 | } |
145 | 145 | |
146 | 146 | // This line will be reached if the help tab array is already set. In this case, just append an array element into the keys. |
147 | - if ( ! empty( $aHelpTab['help_tab_content'] ) ) { |
|
148 | - $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aContent'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_content'] ); |
|
147 | + if ( !empty( $aHelpTab[ 'help_tab_content' ] ) ) { |
|
148 | + $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aContent' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_content' ] ); |
|
149 | 149 | } |
150 | - if ( ! empty( $aHelpTab['help_tab_sidebar_content'] ) ) { |
|
151 | - $this->oProp->aHelpTabs[ $aHelpTab['help_tab_id'] ]['aSidebar'][] = $this->_formatHelpDescription( $aHelpTab['help_tab_sidebar_content'] ); |
|
150 | + if ( !empty( $aHelpTab[ 'help_tab_sidebar_content' ] ) ) { |
|
151 | + $this->oProp->aHelpTabs[ $aHelpTab[ 'help_tab_id' ] ][ 'aSidebar' ][ ] = $this->_formatHelpDescription( $aHelpTab[ 'help_tab_sidebar_content' ] ); |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $this->oFactory = $oFactory; |
30 | 30 | |
31 | 31 | add_filter( |
32 | - "validation_pre_" . $this->oFactory->oProp->sClassName, |
|
32 | + "validation_pre_".$this->oFactory->oProp->sClassName, |
|
33 | 33 | array( $this, '_replyToValidateUserFormInputs' ), |
34 | 34 | 10, |
35 | 35 | 4 |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | $_sSubmitSectionID = $this->_getPressedSubmitButtonData( $_aSubmits, 'section_id' ); |
61 | 61 | |
62 | 62 | // Submit Information - [3.5.0+] this will be passed to validation callback methods. |
63 | - $_aSubmitsInformation = array( |
|
63 | + $_aSubmitsInformation = array( |
|
64 | 64 | 'page_slug' => $_sPageSlug, |
65 | 65 | 'tab_slug' => $_sTabSlug, |
66 | 66 | 'input_id' => $this->_getPressedSubmitButtonData( $_aSubmits, 'input_id' ), |
@@ -80,11 +80,11 @@ discard block |
||
80 | 80 | 'AdminPageFramework_Model__FormSubmission__Validator__Export', |
81 | 81 | 'AdminPageFramework_Model__FormSubmission__Validator__Reset', |
82 | 82 | 'AdminPageFramework_Model__FormSubmission__Validator__ResetConfirm', // 3.7.6+ Moved to after validation from before validation |
83 | - 'AdminPageFramework_Model__FormSubmission__Validator__ContactForm', // 3.7.6+ Moved to after validation from before validation |
|
83 | + 'AdminPageFramework_Model__FormSubmission__Validator__ContactForm', // 3.7.6+ Moved to after validation from before validation |
|
84 | 84 | 'AdminPageFramework_Model__FormSubmission__Validator__ContactFormConfirm', |
85 | 85 | |
86 | 86 | ); |
87 | - foreach( $_aClassNames as $_sClassName ) { |
|
87 | + foreach ( $_aClassNames as $_sClassName ) { |
|
88 | 88 | new $_sClassName( $this->oFactory ); |
89 | 89 | } |
90 | 90 | |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | |
94 | 94 | $this->addAndDoActions( |
95 | 95 | $this->oFactory, |
96 | - 'try_validation_before_' . $this->oFactory->oProp->sClassName, |
|
96 | + 'try_validation_before_'.$this->oFactory->oProp->sClassName, |
|
97 | 97 | $aInputs, |
98 | 98 | $aRawInputs, |
99 | 99 | $_aSubmits, |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | |
113 | 113 | $this->addAndDoActions( |
114 | 114 | $this->oFactory, |
115 | - 'try_validation_after_' . $this->oFactory->oProp->sClassName, |
|
115 | + 'try_validation_after_'.$this->oFactory->oProp->sClassName, |
|
116 | 116 | $aInputs, |
117 | 117 | $aRawInputs, |
118 | 118 | $_aSubmits, |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) { |
36 | 36 | $_sLinkURL = $this->_getPressedSubmitButtonData( $aSubmits, 'href' ); |
37 | - if ( ! $_sLinkURL ) { |
|
37 | + if ( !$_sLinkURL ) { |
|
38 | 38 | return; |
39 | 39 | } |
40 | 40 | $this->goToURL( $_sLinkURL ); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) { |
33 | 33 | |
34 | 34 | // if the 'reset' key in the field definition array is set, this value will be set. |
35 | - if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) { |
|
35 | + if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ); |
43 | 43 | |
44 | 44 | // Go to the catch clause. |
45 | - $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue. |
|
45 | + $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue. |
|
46 | 46 | $_oException->aReturn = $this->_confirmSubmitButtonAction( |
47 | 47 | $this->getElement( $aSubmitInformation, 'input_name' ), |
48 | 48 | $this->getElement( $aSubmitInformation, 'section_id' ), |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function _replyToCallback( $aInputs, $aRawInputs, array $aSubmits, $aSubmitInformation, $oFactory ) { |
34 | 34 | |
35 | - if ( ! $this->_shouldProceed( $oFactory, $aSubmits ) ) { |
|
35 | + if ( !$this->_shouldProceed( $oFactory, $aSubmits ) ) { |
|
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | ); |
46 | 46 | |
47 | 47 | // Go to the catch clause. |
48 | - $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue. |
|
48 | + $_oException = new Exception( 'aReturn' ); // the property name to return from the catch clasue. |
|
49 | 49 | $_oException->aReturn = $this->_confirmSubmitButtonAction( |
50 | 50 | $this->getElement( $aSubmitInformation, 'input_name' ), |
51 | 51 | $this->getElement( $aSubmitInformation, 'section_id' ), |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | : 'add_filter'; |
36 | 36 | |
37 | 37 | $_sFunctionName( |
38 | - $this->sActionHookPrefix . $this->oFactory->oProp->sClassName, |
|
38 | + $this->sActionHookPrefix.$this->oFactory->oProp->sClassName, |
|
39 | 39 | array( $this, $this->sCallbackName ), |
40 | 40 | $this->iHookPriority, |
41 | 41 | $this->iCallbackParameters |
@@ -55,17 +55,17 @@ discard block |
||
55 | 55 | * @since 3.6.3 Moved from `AdminPageFramework_Validation`. |
56 | 56 | * @return array The intact stored options. |
57 | 57 | */ |
58 | - protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType='reset' ) { |
|
58 | + protected function _confirmSubmitButtonAction( $sPressedInputName, $sSectionID, $sType = 'reset' ) { |
|
59 | 59 | |
60 | - switch( $sType ) { |
|
60 | + switch ( $sType ) { |
|
61 | 61 | default: |
62 | 62 | case 'reset': |
63 | 63 | $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'reset_options' ); |
64 | - $_sTransientKey = 'apf_rc_' . md5( $sPressedInputName . get_current_user_id() ); |
|
64 | + $_sTransientKey = 'apf_rc_'.md5( $sPressedInputName.get_current_user_id() ); |
|
65 | 65 | break; |
66 | 66 | case 'email': |
67 | 67 | $_sFieldErrorMessage = $this->oFactory->oMsg->get( 'send_email' ); |
68 | - $_sTransientKey = 'apf_ec_' . md5( $sPressedInputName . get_current_user_id() ); |
|
68 | + $_sTransientKey = 'apf_ec_'.md5( $sPressedInputName.get_current_user_id() ); |
|
69 | 69 | break; |
70 | 70 | } |
71 | 71 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | $this->oFactory->setFieldErrors( $_aErrors ); |
88 | 88 | |
89 | 89 | // Set a flag that the confirmation is displayed |
90 | - $this->setTransient( $_sTransientKey, $sPressedInputName, 60*2 ); |
|
90 | + $this->setTransient( $_sTransientKey, $sPressedInputName, 60 * 2 ); |
|
91 | 91 | |
92 | 92 | // Set the admin notice |
93 | 93 | $this->oFactory->setSettingNotice( $this->oFactory->oMsg->get( 'confirm_perform_task' ), 'error confirmation' ); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function __construct( array $aPostElement ) { |
36 | 36 | |
37 | 37 | $this->aPost = $aPostElement; |
38 | - $this->sInputID = $this->getInputID( $aPostElement['submit'] ); // the submit element must be set by the field type. |
|
38 | + $this->sInputID = $this->getInputID( $aPostElement[ 'submit' ] ); // the submit element must be set by the field type. |
|
39 | 39 | |
40 | 40 | } |
41 | 41 | |
@@ -47,10 +47,10 @@ discard block |
||
47 | 47 | * @since 2.0.0 |
48 | 48 | * @since 3.4.0 Changed the name from `getElement()`. |
49 | 49 | */ |
50 | - protected function getSubmitValueByType( $aElement, $sInputID, $sElementKey='format' ) { |
|
50 | + protected function getSubmitValueByType( $aElement, $sInputID, $sElementKey = 'format' ) { |
|
51 | 51 | |
52 | 52 | return $this->getElement( |
53 | - $aElement, // subject array |
|
53 | + $aElement, // subject array |
|
54 | 54 | array( $sInputID, $sElementKey ), // dimensional keys |
55 | 55 | null // default |
56 | 56 | ); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | // Only the pressed element will be stored in the array. |
81 | 81 | // The input tag: name="__import[submit][my_section_my_import_field_the_index]" value="Import Button" |
82 | 82 | // The array structure: array( 'my_section_my_import_field_the_index' => 'Import Button' ) |
83 | - foreach( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor. |
|
83 | + foreach ( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor. |
|
84 | 84 | $this->sInputID = $sInputID; |
85 | 85 | return $this->sInputID; |
86 | 86 | } |
@@ -80,7 +80,8 @@ |
||
80 | 80 | // Only the pressed element will be stored in the array. |
81 | 81 | // The input tag: name="__import[submit][my_section_my_import_field_the_index]" value="Import Button" |
82 | 82 | // The array structure: array( 'my_section_my_import_field_the_index' => 'Import Button' ) |
83 | - foreach( $aSubmitElement as $sInputID => $v ) { // $aSubmitElement should have been set in the constructor. |
|
83 | + foreach( $aSubmitElement as $sInputID => $v ) { |
|
84 | +// $aSubmitElement should have been set in the constructor. |
|
84 | 85 | $this->sInputID = $sInputID; |
85 | 86 | return $this->sInputID; |
86 | 87 | } |