Go to the source code of this file.
Classes | |
| class | dbxObj |
| Gemeinsame Basisklasse fuer dbXapp-System-, Modul- und Include-Objekte. More... | |
| class | dbxTPLDesignSlotsTestApi |
Functions | |
| dbx () | |
Variables | |
| $root = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'dbx-tpl-slots-' . bin2hex(random_bytes(5)) | |
| $htm = $root . DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'demo' . DIRECTORY_SEPARATOR . 'htm' | |
| $tpl = new dbxTPL() | |
| $out = $tpl->replace_design_slots('[dbx:logo]|[dbx:branding]|[dbx:footer]', 'demo') | |
| $expected = '<img src="dbx/design/demo/img/logo.png" data-design="demo">|<strong>Demo</strong>|<footer>blau</footer>' | |
| if($out !==$expected) | $missing = $tpl->replace_design_slots('A[dbx:logo]B[dbx:footer]C', 'missing') |
| $guarded = $tpl->replace_design_slots('[dbx:branding]', 'demo') | |
| dbx | ( | ) |
Definition at line 21 of file dbxTPL_design_slots_test.php.
References $api.
| $expected = '<img src="dbx/design/demo/img/logo.png" data-design="demo">|<strong>Demo</strong>|<footer>blau</footer>' |
Definition at line 39 of file dbxTPL_design_slots_test.php.
| $guarded = $tpl->replace_design_slots('[dbx:branding]', 'demo') |
Definition at line 50 of file dbxTPL_design_slots_test.php.
| $htm = $root . DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'design' . DIRECTORY_SEPARATOR . 'demo' . DIRECTORY_SEPARATOR . 'htm' |
Definition at line 29 of file dbxTPL_design_slots_test.php.
| if ( $out !==$expected) $missing = $tpl->replace_design_slots('A[dbx:logo]B[dbx:footer]C', 'missing') |
Definition at line 44 of file dbxTPL_design_slots_test.php.
Referenced by dbx_log_missing_entry(), dbxMissingResourcesTestApi\log_missing(), log_missing(), dbxPasswordPolicy\missingCriteria(), and dbxPasswordPolicy\missingMessage().
| $out = $tpl->replace_design_slots('[dbx:logo]|[dbx:branding]|[dbx:footer]', 'demo') |
Definition at line 37 of file dbxTPL_design_slots_test.php.
Referenced by dbx\dbxSelfTest\dbxSelfTestRunner\catalogById(), dbx\dbxContent\dbxContentLngSync\coverageForUid(), dbxki_normalize_result(), dbxki_resolve_params(), dbx\dbxContent\dbxContentLngSync\folderDeletable(), dbx\dbxDesign_admin\dbxDesignService\listDesigns(), dbx\dbxWorkflow\dbxWorkflowBindRegistry\listModuleDds(), dbx\myLKW\myLKW_import\map_csv_row_to_lkw(), mod_specs_for_module(), dbx\dbxContent\dbxContentLngSync\previewDelete(), dbx\dbxContent\dbxContentLngSync\previewProvision(), dbx\dbxContent\dbxContentLngSync\resolveDeleteIds(), and dbx\dbxContent\dbxContentLngSync\slaveLngs().
| $root = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'dbx-tpl-slots-' . bin2hex(random_bytes(5)) |
Definition at line 27 of file dbxTPL_design_slots_test.php.
| $tpl = new dbxTPL() |
Definition at line 36 of file dbxTPL_design_slots_test.php.