Go to the source code of this file.
Functions | |
| foreach(array(array( $editorClass, "array('save', 'delete', 'rename', 'copy')", 'dbxEditor:gemeinsamer Mutations-Guard fehlt'), array( $editorClass, ' $form->submit()', 'dbxEditor:dbxForm-Submit-Prüfung fehlt'), array( $editorTemplate, 'dbx-editor-security', 'dbxEditor:Sicherheitstoken fehlt im Editor-Template'), array( $aceJs, ' requestMutation(data)', 'ace.js:zentrale Mutationsfunktion fehlt'), array( $aceJs, "method: 'POST'", 'ace.js:Mutationen werden nicht per POST gesendet'),) as $check) | if (strpos($aceJs, 'dbx_run1=delete &file=') !==false||strpos($aceJs, "requestJson('?dbx_modul=dbxEditor&dbx_run1=rename") !==false||strpos($aceJs, "requestJson('?dbx_modul=dbxEditor&dbx_run1=copy") !==false) |
Variables | |
| $root = dirname(__DIR__, 2) | |
| Statischer Regressionstest für Formular-Templates und kritische Shop-Aktionen. | |
| $moduleRoot = $root . DIRECTORY_SEPARATOR . 'modules' | |
| $errors = array() | |
| $checked = 0 | |
| $iterator | |
| foreach($iterator as $file) | $requiredTemplates |
| foreach( $requiredTemplates as $relative) foreach(array('dbxAdmin/tpl/htm/fdedit-create-from-dd.htm', 'dbxShop_admin/tpl/htm/shop-product-channel-mapping.htm', 'dbxShop/tpl/htm/shop-checkout-form.htm', 'dbxShop/tpl/htm/shop-withdrawal-form.htm',) as $relative) | $shopServicePath |
| $shopService = (string)file_get_contents($shopServicePath) | |
| foreach(array(' $cartReport->submit()'=> 'Warenkorb-Report', ' $buyForm->submit()'=> 'Add-to-cart-Formular', ' $row=$this->repo() ->saveWithdrawal($values)'=> 'Widerrufsformular', 'if($form->submit())'=> 'dbxForm-Submit',) as $needle=> $label) | $shopAdminPath |
| $shopAdmin = (string)file_get_contents($shopAdminPath) | |
| foreach(array(' $form->submit()'=> 'zentraler Karten-Token-Guard', ' $this->postedFormError'=> 'sichtbare Karten-Fehlermeldung', ' $content .=$this->shopMediaFormTemplates( $this->shopMediaConfig())'=> 'Medienformulare außerhalb der Kartenform',) as $needle=> $label) foreach(array('productImagesPanel', 'productGroupImagePanel') as $method) | $cmsJs |
| $cmsJsWithoutComments = (string)preg_replace('~/\*.*?\*/|//[^\r\n]*~s', '', $cmsJs) | |
| if(preg_match('/ | $editorClass [\'"`][^\'"`] *< form\b/i', $cmsJsWithoutComments)) |
| $editorTemplate | |
| $aceJs | |
| $formClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxForm.class.php') | |
| if ( $errors) | |
| foreach(array(array($editorClass, "array('save', 'delete', 'rename', 'copy')", 'dbxEditor:gemeinsamer Mutations-Guard fehlt'), array($editorClass, ' $form->submit()', 'dbxEditor:dbxForm-Submit-Prüfung fehlt'), array($editorTemplate, 'dbx-editor-security', 'dbxEditor:Sicherheitstoken fehlt im Editor-Template'), array($aceJs, ' requestMutation(data)', 'ace.js:zentrale Mutationsfunktion fehlt'), array($aceJs, "method: 'POST'", 'ace.js:Mutationen werden nicht per POST gesendet'),) as $check) if | ( | ) |
Definition at line 181 of file dbxForm_structure_test.php.
| $aceJs |
Definition at line 167 of file dbxForm_structure_test.php.
Referenced by if().
| $checked = 0 |
Definition at line 15 of file dbxForm_structure_test.php.
| foreach(array(' $form->submit()'=> 'zentraler Karten-Token-Guard', ' $this->postedFormError'=> 'sichtbare Karten-Fehlermeldung', ' $content .=$this->shopMediaFormTemplates($this->shopMediaConfig())'=> 'Medienformulare außerhalb der Kartenform',) as $needle=> $label) foreach (array( 'productImagesPanel', 'productGroupImagePanel') as $method) $cmsJs |
Definition at line 153 of file dbxForm_structure_test.php.
| $cmsJsWithoutComments = (string)preg_replace('~/\*.*?\*/|//[^\r\n]*~s', '', $cmsJs) |
Definition at line 155 of file dbxForm_structure_test.php.
| if (preg_match('/ $editorClass[\'"`][^\'"`] *< form\b/i', $cmsJsWithoutComments)) |
Definition at line 160 of file dbxForm_structure_test.php.
| $editorTemplate |
Definition at line 163 of file dbxForm_structure_test.php.
| $errors = array() |
Definition at line 14 of file dbxForm_structure_test.php.
| $formClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxForm.class.php') |
Definition at line 187 of file dbxForm_structure_test.php.
| $iterator |
Definition at line 17 of file dbxForm_structure_test.php.
| $moduleRoot = $root . DIRECTORY_SEPARATOR . 'modules' |
Definition at line 13 of file dbxForm_structure_test.php.
| foreach ( $iterator as $file) $requiredTemplates |
Definition at line 72 of file dbxForm_structure_test.php.
| $root = dirname(__DIR__, 2) |
Statischer Regressionstest für Formular-Templates und kritische Shop-Aktionen.
Der Test benötigt weder Datenbank noch Webserver. Er stellt sicher, dass aktive Templates ausgeglichene, nicht verschachtelte Form-Tags besitzen und dass die zuletzt migrierten Formulare ihre zentralen dbxForm-Platzhalter nicht versehentlich verlieren.
Definition at line 12 of file dbxForm_structure_test.php.
| $shopAdmin = (string)file_get_contents($shopAdminPath) |
Definition at line 133 of file dbxForm_structure_test.php.
| foreach (array( ' $cartReport->submit()'=> 'Warenkorb-Report', ' $buyForm->submit()'=> 'Add-to-cart-Formular', ' $row=$this->repo() ->saveWithdrawal( $values)'=> 'Widerrufsformular', 'if( $form->submit())'=> 'dbxForm-Submit',) as $needle=> $label) $shopAdminPath |
Definition at line 131 of file dbxForm_structure_test.php.
| $shopService = (string)file_get_contents($shopServicePath) |
Definition at line 119 of file dbxForm_structure_test.php.
| foreach($requiredTemplates as $relative) foreach (array( 'dbxAdmin/tpl/htm/fdedit-create-from-dd.htm', 'dbxShop_admin/tpl/htm/shop-product-channel-mapping.htm', 'dbxShop/tpl/htm/shop-checkout-form.htm', 'dbxShop/tpl/htm/shop-withdrawal-form.htm',) as $relative) $shopServicePath |
Definition at line 117 of file dbxForm_structure_test.php.
| if($errors) | ( | $errors = == 0 | ) |
Definition at line 196 of file dbxForm_structure_test.php.