Go to the source code of this file.
Variables | |
| $base = dirname(__DIR__, 4) | |
| $failures = array() | |
| $assert | |
| $cmsJs = (string)file_get_contents($base . '/dbx/js/lib/cms.js') | |
| $heroTemplates = glob($base . '/dbx/modules/dbxContent/tpl/htm/c-*hero*.htm') ?: array() | |
| foreach($heroTemplates as $templateFile) | $sections = (string)file_get_contents($base . '/dbx/modules/dbxContent_admin/include/dbxContent_sections.class.php') |
| $reflection = new ReflectionClass(dbxContentRenderer::class) | |
| $renderer = $reflection->newInstanceWithoutConstructor() | |
| $detect = $reflection->getMethod('detect_template_slots') | |
| $parse = $reflection->getMethod('parse_content') | |
| $slots = $detect->invoke($renderer, '<section class="cms-hero"><div class="hero">{cms:hero}</div></section><main>{cms:col1}</main>') | |
| $content | |
| $parsed = $parse->invoke($renderer, $content, $slots) | |
| foreach(array( 'dbxapp', 'dbxdocs', 'steal') as $design) | if ( $failures !==array()) |
| $assert |
Definition at line 10 of file dbxContent_cms_hero_contract_test.php.
| $base = dirname(__DIR__, 4) |
Definition at line 8 of file dbxContent_cms_hero_contract_test.php.
| $cmsJs = (string)file_get_contents($base . '/dbx/js/lib/cms.js') |
Definition at line 14 of file dbxContent_cms_hero_contract_test.php.
| $content |
Definition at line 53 of file dbxContent_cms_hero_contract_test.php.
| $detect = $reflection->getMethod('detect_template_slots') |
Definition at line 44 of file dbxContent_cms_hero_contract_test.php.
| $failures = array() |
Definition at line 9 of file dbxContent_cms_hero_contract_test.php.
Definition at line 30 of file dbxContent_cms_hero_contract_test.php.
| $parse = $reflection->getMethod('parse_content') |
Definition at line 46 of file dbxContent_cms_hero_contract_test.php.
| $parsed = $parse->invoke($renderer, $content, $slots) |
Definition at line 56 of file dbxContent_cms_hero_contract_test.php.
Referenced by dbx\dbxContent\dbxContentRenderer\renderStatic().
| $reflection = new ReflectionClass(dbxContentRenderer::class) |
Definition at line 42 of file dbxContent_cms_hero_contract_test.php.
| $renderer = $reflection->newInstanceWithoutConstructor() |
Definition at line 43 of file dbxContent_cms_hero_contract_test.php.
| foreach ( $heroTemplates as $templateFile) $sections = (string)file_get_contents($base . '/dbx/modules/dbxContent_admin/include/dbxContent_sections.class.php') |
Definition at line 39 of file dbxContent_cms_hero_contract_test.php.
| $slots = $detect->invoke($renderer, '<section class="cms-hero"><div class="hero">{cms:hero}</div></section><main>{cms:col1}</main>') |
Definition at line 49 of file dbxContent_cms_hero_contract_test.php.
Referenced by dbx\dbxContent\dbxContentRenderer\renderStatic(), and dbxTPL\replace_design_slots().
| foreach(array('dbxapp', 'dbxdocs', 'steal') as $design) if($failures !==array()) | ( | $failures ! = = array() | ) |
Definition at line 68 of file dbxContent_cms_hero_contract_test.php.