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

Go to the source code of this file.

Variables

 $module = dirname(__DIR__)
 Statischer Architekturvertrag des ausführbaren Referenzmoduls.
 $fail
 $required
foreach( $required as $relative) foreach(array('dd/invoice.dd.php', 'dd/invoiceItem.dd.php') as $relative) $phpSources = ''
foreach(array('myInvoices.class.php', 'include/myInvoicesFixtures.class.php', 'include/myInvoicesService.class.php',) as $relative) foreach(array('/\bPDO\b/', '/\bmysqli?_/', '/->(?:query|exec|prepare)\s *\‍(/', '/\b(?:SELECT|INSERT|UPDATE|DELETE)\s+(?:FROM|INTO|SET)\b/i',) as $forbidden) if(preg_match('/private function(?:db|tpl|form|report)\s *\‍( $fixtureSource [^)] *\‍)\s *\{' . '\s *return\s+dbx\(\‍) ->get_(?:system|include) _obj/s', $phpSources))
foreach(array('create_date', 'create_uid', 'update_date', 'update_uid', 'owner',) as $systemField) $service
foreach(array("get_system_obj('dbxDB')", "get_system_obj('dbxForm')", "get_system_obj('dbxReport')", "get_system_obj('dbxTPL')", 'invoice_report_next_record', 'invoice_items_report_next_record', "add_rep(\n 'report_total'", ' $config [modul=myInvoices]dbx_run1=positions &invoice_id=', 'action_url', '->begin(self::INVOICE_DD)', '->commit(self::INVOICE_DD)', '->rollback(self::INVOICE_DD)',) as $requiredSource) = (string)file_get_contents($module . '/cfg/config.php')
if(strpos($config, 'action_routes') !==false) if(strpos( $service, 'check_action_token') !==false||strpos( $service, 'action_token(') !==false) foreach(array('set_callback_owner(', 'set_next_record_callback(', 'set_footer_callback(', 'renderInvoiceFooter', 'renderItemFooter', 'str_replace(',) as $unnecessaryCallbackCode) $itemTemplate
if(stripos( $itemTemplate, '< form') !==false) foreach(array('< hr class="dbx_split">', '{rpt:colspan}', '{report_total}',) as $requiredTemplate) $actionTemplate
 foreach (array( 'dbxAjax', 'dbxConfirm', 'data-confirm-buttons="yesno"') as $part)

Variable Documentation

◆ $actionTemplate

if(stripos($itemTemplate, '< form') !==false) foreach (array( '< hr class="dbx_split">', '{rpt:colspan}', '{report_total}',) as $requiredTemplate) $actionTemplate
Initial value:
= (string)file_get_contents(
$module . '/tpl/htm/invoice-row-action.htm'
)

Definition at line 182 of file myInvoices_contract_test.php.

◆ $config

foreach (array( "get_system_obj('dbxDB')", "get_system_obj('dbxForm')", "get_system_obj('dbxReport')", "get_system_obj('dbxTPL')", 'invoice_report_next_record', 'invoice_items_report_next_record', "add_rep(\n 'report_total'", ' $config[modul=myInvoices]dbx_run1=positions &invoice_id=', 'action_url', '->begin(self::INVOICE_DD)', '->commit(self::INVOICE_DD)', '->rollback(self::INVOICE_DD)',) as $requiredSource) ( ) = (string)file_get_contents($module . '/cfg/config.php')

Definition at line 141 of file myInvoices_contract_test.php.

◆ $fail

$fail
Initial value:
= function (string $message, int $code): void {
fwrite(STDERR, "FAIL: $message\n");
exit($code);
}
exit
Definition index.php:146

Definition at line 7 of file myInvoices_contract_test.php.

◆ $fixtureSource

foreach(array( 'myInvoices.class.php', 'include/myInvoicesFixtures.class.php', 'include/myInvoicesService.class.php',) as $relative) foreach(array('/\bPDO\b/', '/\bmysqli?_/', '/->(?:query|exec|prepare)\s *\‍(/', '/\b(?:SELECT|INSERT|UPDATE|DELETE)\s+(?:FROM|INTO|SET)\b/i',) as $forbidden) if (preg_match( '/private function(?:db|tpl|form|report)\s *\‍( $fixtureSource[^)] *\‍)\s *\{' . '\s *return\s+dbx\(\‍) ->get_(?:system|include) _obj/s', $phpSources)) ( )
Initial value:
= (string)file_get_contents(
$module . '/include/myInvoicesFixtures.class.php'
)

Definition at line 98 of file myInvoices_contract_test.php.

◆ $itemTemplate

if(strpos( $config, 'action_routes') !==false) if(strpos($service, 'check_action_token') !==false||strpos($service, 'action_token(') !==false) foreach (array( 'set_callback_owner(', 'set_next_record_callback(', 'set_footer_callback(', 'renderInvoiceFooter', 'renderItemFooter', 'str_replace(',) as $unnecessaryCallbackCode) $itemTemplate ( )
Initial value:
= (string)file_get_contents(
$module . '/tpl/htm/invoice-items-report.htm'
)

Definition at line 166 of file myInvoices_contract_test.php.

◆ $module

$module = dirname(__DIR__)

Statischer Architekturvertrag des ausführbaren Referenzmoduls.

Definition at line 6 of file myInvoices_contract_test.php.

◆ $phpSources

foreach($required as $relative) foreach (array( 'dd/invoice.dd.php', 'dd/invoiceItem.dd.php') as $relative) $phpSources = ''

Definition at line 64 of file myInvoices_contract_test.php.

◆ $required

$required
Initial value:
= array(
'myInvoices.class.php',
'cfg/config.php',
'dd/invoice.dd.php',
'dd/invoiceItem.dd.php',
'fd/invoice-form.fd.php',
'fd/rpt-invoice-selection.fd.php',
'include/myInvoicesFixtures.class.php',
'include/myInvoicesService.class.php',
'tpl/htm/invoice-form.htm',
'tpl/htm/invoice-report.htm',
'tpl/htm/invoice-items-report.htm',
'tpl/htm/invoice-row-action.htm',
'tpl/htm/invoice-install.htm',
'tools/install_demo.php',
'tests/myInvoices_integration_test.php',
'README.md',
)

Definition at line 12 of file myInvoices_contract_test.php.

◆ $service

foreach (array( 'create_date', 'create_uid', 'update_date', 'update_uid', 'owner',) as $systemField) $service
Initial value:
= (string)file_get_contents(
$module . '/include/myInvoicesService.class.php'
)

Definition at line 119 of file myInvoices_contract_test.php.

◆ foreach

foreach(array('dbxAjax', 'dbxConfirm', 'data-confirm-buttons="yesno"') as $part) ( array('dbxAjax', 'dbxConfirm', 'data-confirm-buttons="yesno"') as $part)

Definition at line 185 of file myInvoices_contract_test.php.