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

Go to the source code of this file.

Variables

 $moduleDir = dirname(__DIR__)
 Vertrag: c-*-Content-Layouts sind sprachunabhängig.
 $cmsClass
 $templateDir = $moduleDir . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm'
foreach(array('private $contentTemplateNames=null', 'private function content_template_names():array', "dbx/modules/dbxContent/tpl/htm/", 'is_array($this->contentTemplateNames)', 'foreach($this->content_template_names() as $name)',) as $part) $methodStart = strpos($cmsClass, 'private function content_template_names(): array')
 $methodEnd = strpos($cmsClass, 'private function template_options()', $methodStart)
 $methodSource = substr($cmsClass, $methodStart, $methodEnd - $methodStart)
foreach(array( 'dbx_lng_resolve_file', 'dbx_lng_name', 'dbx_lng') as $forbidden) foreach(array('de'=> '', 'en'=> '_en', 'es'=> '_es') as $language=> $suffix) $contentTemplateDir
 $files = glob($contentTemplateDir . DIRECTORY_SEPARATOR . 'c-*.htm')
 if (!is_array( $files)||count( $files)< 2)

Variable Documentation

◆ $cmsClass

$cmsClass
Initial value:
= (string)file_get_contents(
$moduleDir . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'dbxContent_cms.class.php'
)
$moduleDir
Architekturvertrag für die Fehlerprotokoll-Anzeige im Admin-Dashboard.

Definition at line 7 of file cms_content_template_language_contract_test.php.

◆ $contentTemplateDir

foreach(array('dbx_lng_resolve_file', 'dbx_lng_name', 'dbx_lng') as $forbidden) foreach (array( 'de'=> '', 'en'=> '_en', 'es'=> '_es') as $language=> $suffix) $contentTemplateDir
Initial value:
= dirname($moduleDir) . DIRECTORY_SEPARATOR
. 'dbxContent' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm'

Definition at line 58 of file cms_content_template_language_contract_test.php.

◆ $files

$files = glob($contentTemplateDir . DIRECTORY_SEPARATOR . 'c-*.htm')

◆ $methodEnd

$methodEnd = strpos($cmsClass, 'private function template_options()', $methodStart)

◆ $methodSource

$methodSource = substr($cmsClass, $methodStart, $methodEnd - $methodStart)

◆ $methodStart

foreach (array( 'private $contentTemplateNames=null', 'private function content_template_names():array', "dbx/modules/dbxContent/tpl/htm/", 'is_array( $this->contentTemplateNames)', 'foreach( $this->content_template_names() as $name)',) as $part) $methodStart = strpos($cmsClass, 'private function content_template_names(): array')

◆ $moduleDir

$moduleDir = dirname(__DIR__)

Vertrag: c-*-Content-Layouts sind sprachunabhängig.

Definition at line 6 of file cms_content_template_language_contract_test.php.

◆ $templateDir

$templateDir = $moduleDir . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm'

◆ if

if(!is_array($files)||count($files)< 2) ( )