dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbxForm_help_audit_test.php File Reference

Go to the source code of this file.

Variables

 $root = dirname(__DIR__, 2)
 $modules = $root . DIRECTORY_SEPARATOR . 'modules'
 $errors = array()
 $checked = 0
 $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($modules, FilesystemIterator::SKIP_DOTS))
foreach( $it as $file) if($checked===0) $formClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxForm.class.php')
 $reportClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxReport.class.php')
 $fallbackTemplate = $modules . DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'form-help-bar.htm'
if(strpos( $formClass, 'ensureFormHelpBar( $content)')===false||strpos( $reportClass, 'ensureFormHelpBar( $report_tpl)')===false||strpos( $formClass, 'set_form_help_enabled(bool $enabled=true)')===false||!is_file( $fallbackTemplate)) if($errors) $helpButtonTemplate = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'admin-help-button.htm')
 $dbxappTheme = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'dbxapp' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'theme.css')
 $flowersTheme = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'flowers' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'theme.css')
 $flowersForm = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'flowers' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'c-form.css')
 $shopChannelTemplate = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxShop_admin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'shop-channel-form.htm')
 $dashboardClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxDashboard.class.php')
 $dashboardCacheActions = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'admin-dashboard-content-cache-actions.htm')
 $contextHelpClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxContent' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxContentContextHelp.class.php')
 $contentClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxContent' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxContent_content.class.php')
if(strpos( $helpButtonTemplate, 'dbx-help-action')===false||strpos( $dbxappTheme, '.dbx-help-action')===false||strpos( $flowersTheme, '.dbx-help-action')===false||strpos( $flowersForm, '.dbx-auth-panel-actions')===false||strpos( $shopChannelTemplate, '{channel_edit_button}{channel_help_button}')===false||strpos( $dashboardClass, "add_rep('bar_extra', \$this->help_action('cache'))")===false||substr_count( $dashboardClass, 'set_form_help_enabled(false)')< 7||strpos( $dashboardCacheActions, "</form>\n{bar_extra}")===false) if (strpos( $contextHelpClass, "'template' => 'c-content-help'")===false||strpos( $contextHelpClass, "'wrap' => false")===false||strpos( $contentClass, "\$renderOptions['template'] = \$forcedTemplate")===false)

Variable Documentation

◆ $checked

$checked = 0

Definition at line 6 of file dbxForm_help_audit_test.php.

◆ $contentClass

$contentClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxContent' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxContent_content.class.php')

Definition at line 62 of file dbxForm_help_audit_test.php.

◆ $contextHelpClass

$contextHelpClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxContent' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxContentContextHelp.class.php')

Definition at line 61 of file dbxForm_help_audit_test.php.

◆ $dashboardCacheActions

$dashboardCacheActions = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'admin-dashboard-content-cache-actions.htm')

Definition at line 60 of file dbxForm_help_audit_test.php.

◆ $dashboardClass

$dashboardClass = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxDashboard.class.php')

Definition at line 59 of file dbxForm_help_audit_test.php.

◆ $dbxappTheme

$dbxappTheme = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'dbxapp' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'theme.css')

Definition at line 55 of file dbxForm_help_audit_test.php.

◆ $errors

$errors = array()

Definition at line 5 of file dbxForm_help_audit_test.php.

◆ $fallbackTemplate

$fallbackTemplate = $modules . DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'form-help-bar.htm'

Definition at line 41 of file dbxForm_help_audit_test.php.

◆ $flowersForm

$flowersForm = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'flowers' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'c-form.css')

Definition at line 57 of file dbxForm_help_audit_test.php.

◆ $flowersTheme

$flowersTheme = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'flowers' . DIRECTORY_SEPARATOR . 'css' . DIRECTORY_SEPARATOR . 'theme.css')

Definition at line 56 of file dbxForm_help_audit_test.php.

◆ $formClass

foreach($it as $file) if ( $checked===0) $formClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxForm.class.php')

Definition at line 39 of file dbxForm_help_audit_test.php.

Referenced by dbxForm\prepareFormFrameReplaces().

◆ $helpButtonTemplate

if(strpos($formClass, 'ensureFormHelpBar($content)')===false||strpos($reportClass, 'ensureFormHelpBar($report_tpl)')===false||strpos($formClass, 'set_form_help_enabled(bool $enabled=true)')===false||!is_file($fallbackTemplate)) if ( $errors) $helpButtonTemplate = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxAdmin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'admin-help-button.htm')

Definition at line 54 of file dbxForm_help_audit_test.php.

◆ $it

$it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($modules, FilesystemIterator::SKIP_DOTS))

Definition at line 8 of file dbxForm_help_audit_test.php.

Referenced by dbxUpload\process().

◆ $modules

◆ $reportClass

$reportClass = (string)file_get_contents($root . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxReport.class.php')

Definition at line 40 of file dbxForm_help_audit_test.php.

◆ $root

$root = dirname(__DIR__, 2)

Definition at line 3 of file dbxForm_help_audit_test.php.

◆ $shopChannelTemplate

$shopChannelTemplate = (string)file_get_contents($modules . DIRECTORY_SEPARATOR . 'dbxShop_admin' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm' . DIRECTORY_SEPARATOR . 'shop-channel-form.htm')

Definition at line 58 of file dbxForm_help_audit_test.php.

◆ if

if(strpos($helpButtonTemplate, 'dbx-help-action')===false||strpos($dbxappTheme, '.dbx-help-action')===false||strpos($flowersTheme, '.dbx-help-action')===false||strpos($flowersForm, '.dbx-auth-panel-actions')===false||strpos($shopChannelTemplate, '{channel_edit_button}{channel_help_button}')===false||strpos($dashboardClass, "add_rep('bar_extra', \$this->help_action('cache'))")===false||substr_count($dashboardClass, 'set_form_help_enabled(false)')< 7||strpos($dashboardCacheActions, "</form>\n{bar_extra}")===false) if(strpos($contextHelpClass, "'template' => 'c-content-help'")===false||strpos($contextHelpClass, "'wrap' => false")===false||strpos($contentClass, "\$renderOptions['template'] = \$forcedTemplate")===false) ( strpos( $contextHelpClass, "'template' => 'c-content-help'") = == false || strpos($contextHelpClass, "'wrap' => false") === false || strpos($contentClass, "\$renderOptions['template'] = \$forcedTemplate") === false)

Definition at line 75 of file dbxForm_help_audit_test.php.