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

Go to the source code of this file.

Classes

class  dbxObj
 Gemeinsame Basisklasse fuer dbXapp-System-, Modul- und Include-Objekte. More...
class  dbxTPLRawCacheTestApi

Functions

 dbx ()

Variables

 $_SESSION = array('dbx' => array('cache' => array('tpl' => array())))
 $tpl = new dbxTPL()
 $first = $tpl->get_tpl('dbx|test-dbx-runtime-cache', array())
if(trim($first) !=='first') $cached = $_SESSION['dbx']['cache']['tpl']['dbx']['test-dbx-runtime-cache']['htm']['']['tpl'] ?? ''
 $second = $tpl->get_tpl('dbx|test-dbx-runtime-cache', array())
if(trim($second) !=='second') $design = $tpl->get_design_tpl('test', '1', 'de', 'htm', 0)
if(trim($design) !=='visible') $tempRoot = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'dbx-tpl-cache-' . bin2hex(random_bytes(6))
 $tempTplDir
if(!mkdir($tempTplDir, 0777, true) &&!is_dir($tempTplDir)) $tempTpl = $tempTplDir . DIRECTORY_SEPARATOR . 'test-source-change.htm'
 $_SESSION ['dbx']['cache']['tpl'] = array()
 $sourceFirst = $tpl->get_tpl('dbx|test-source-change', array())
 $sourceSecond = $tpl->get_tpl('dbx|test-source-change', array())
 if ( $sourceFirst !=='erste Version'||$sourceSecond !=='zweite, laengere Version')

Function Documentation

◆ dbx()

dbx ( )

Definition at line 83 of file dbxTPL_raw_cache_test.php.

References $api.

Variable Documentation

◆ $_SESSION [1/2]

$_SESSION[ 'dbx'][ 'cache'][ 'tpl'] = array()

Definition at line 134 of file dbxTPL_raw_cache_test.php.

◆ $_SESSION [2/2]

$_SESSION = array('dbx' => array('cache' => array('tpl' => array())))

Definition at line 92 of file dbxTPL_raw_cache_test.php.

◆ $cached

if (trim( $first) !=='first') $cached = $_SESSION['dbx']['cache']['tpl']['dbx']['test-dbx-runtime-cache']['htm']['']['tpl'] ?? ''

◆ $design

◆ $first

$first = $tpl->get_tpl('dbx|test-dbx-runtime-cache', array())

Definition at line 97 of file dbxTPL_raw_cache_test.php.

Referenced by parse_url(), and dbxForm\url_to_array().

◆ $second

$second = $tpl->get_tpl('dbx|test-dbx-runtime-cache', array())

Definition at line 111 of file dbxTPL_raw_cache_test.php.

◆ $sourceFirst

$sourceFirst = $tpl->get_tpl('dbx|test-source-change', array())

Definition at line 136 of file dbxTPL_raw_cache_test.php.

◆ $sourceSecond

$sourceSecond = $tpl->get_tpl('dbx|test-source-change', array())

Definition at line 139 of file dbxTPL_raw_cache_test.php.

◆ $tempRoot

if (trim( $design) !=='visible') $tempRoot = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'dbx-tpl-cache-' . bin2hex(random_bytes(6))

Definition at line 124 of file dbxTPL_raw_cache_test.php.

◆ $tempTpl

if (!mkdir( $tempTplDir, 0777, true) &&!is_dir( $tempTplDir)) $tempTpl = $tempTplDir . DIRECTORY_SEPARATOR . 'test-source-change.htm'

Definition at line 131 of file dbxTPL_raw_cache_test.php.

◆ $tempTplDir

$tempTplDir
Initial value:
= $tempRoot . DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'modules'
. DIRECTORY_SEPARATOR . 'dbx' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'htm'
if(trim($design) !=='visible') $tempRoot

Definition at line 125 of file dbxTPL_raw_cache_test.php.

◆ $tpl

$tpl = new dbxTPL()

Definition at line 96 of file dbxTPL_raw_cache_test.php.

◆ if

if($sourceFirst !=='erste Version'|| $sourceSecond !=='zweite, laengere Version') ( $sourceFirst ! = = 'erste Version' || $sourceSecond !== 'zweite,
laengere Version'  )

Definition at line 149 of file dbxTPL_raw_cache_test.php.