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

Go to the source code of this file.

Variables

 $base = dirname(__DIR__, 2)
 $failures = array()
 $assert
 $rendererClass = new ReflectionClass(\dbx\dbxContent\dbxContentRenderer::class)
 $renderer = $rendererClass->newInstanceWithoutConstructor()
 $videoOptions = $rendererClass->getMethod('inline_video_options_from_html')
 $options
 $videoPlayer = $rendererClass->getMethod('render_inline_video_player')
 $playerHtml
foreach(array('dbxapp', 'dbxdocs', 'steal') as $design) $cmsJs = (string)file_get_contents($base . '/js/lib/cms.js')
 if ( $failures !==array())

Variable Documentation

◆ $assert

$assert
Initial value:
= static function(bool $condition, string $message) use (&$failures): void {
if (!$condition) $failures[] = $message;
}

Definition at line 6 of file dbxCmsVideoSizing_contract_test.php.

◆ $base

$base = dirname(__DIR__, 2)

Definition at line 3 of file dbxCmsVideoSizing_contract_test.php.

◆ $cmsJs

foreach (array( 'dbxapp', 'dbxdocs', 'steal') as $design) $cmsJs = (string)file_get_contents($base . '/js/lib/cms.js')

Definition at line 87 of file dbxCmsVideoSizing_contract_test.php.

◆ $failures

$failures = array()

Definition at line 4 of file dbxCmsVideoSizing_contract_test.php.

◆ $options

◆ $playerHtml

$playerHtml
Initial value:
= (string)$videoPlayer->invoke(
array('id' => 999, 'mime' => 'video/mp4', 'file_name' => 'test.mp4', 'title' => 'Testvideo'),
' data-cms-video-width="640px" data-cms-video-align="center"',
''
)

Definition at line 34 of file dbxCmsVideoSizing_contract_test.php.

◆ $renderer

$renderer = $rendererClass->newInstanceWithoutConstructor()

◆ $rendererClass

$rendererClass = new ReflectionClass(\dbx\dbxContent\dbxContentRenderer::class)

Definition at line 11 of file dbxCmsVideoSizing_contract_test.php.

◆ $videoOptions

$videoOptions = $rendererClass->getMethod('inline_video_options_from_html')

Definition at line 13 of file dbxCmsVideoSizing_contract_test.php.

◆ $videoPlayer

$videoPlayer = $rendererClass->getMethod('render_inline_video_player')

Definition at line 32 of file dbxCmsVideoSizing_contract_test.php.

◆ if

if($failures !==array()) ( $failures ! = = array())

Definition at line 99 of file dbxCmsVideoSizing_contract_test.php.