Bug #21124 ยป cleanup.diff
tests/regularexpression_testcase.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
}
|
||
?>
|
||
?>
|
tests/t3lib/cache/frontend/t3lib_cache_frontend_variablefrontendtestcase.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
?>
|
tests/t3lib/cache/frontend/t3lib_cache_frontend_abstractfrontendtestcase.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/frontend/t3lib_cache_frontend_stringfrontendtestcase.php (working copy) | ||
---|---|---|
$this->assertEquals($entries, $cache->getByTag($tag), 'Did not receive the expected entries');
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/class.t3lib_cache_backend_mockbackend.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_abstractbackendtestcase.php (working copy) | ||
---|---|---|
$this->assertSame('someValue', $backend->getSomeOption());
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_transientmemorybackendtestcase.php (working copy) | ||
---|---|---|
$this->assertFalse($backend->has('TransientMemoryBackendTest3'), 'TransientMemoryBackendTest3');
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_filebackendtestcase.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_dbbackendtestcase.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_apcbackendtestcase.php (working copy) | ||
---|---|---|
return $backend;
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/backend/t3lib_cache_backend_memcachedbackendtestcase.php (working copy) | ||
---|---|---|
return $backend;
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/cache/t3lib_cache_factorytestcase.php (working copy) | ||
---|---|---|
}
|
||
*/
|
||
}
|
||
?>
|
tests/t3lib/cache/t3lib_cache_managertestcase.php (working copy) | ||
---|---|---|
$manager->flushCaches();
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/t3lib_div_testcase.php (working copy) | ||
---|---|---|
$this->assertEquals($expectedResult, t3lib_div::removeDotsFromTS($typoScript));
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/t3lib_pagerenderer_testcase.php (working copy) | ||
---|---|---|
$this->fixture instanceof t3lib_PageRenderer
|
||
);
|
||
}
|
||
|
||
//////////////////////
|
||
// test functions
|
||
//////////////////////
|
||
/**
|
||
* test set xml prolog and doctype
|
||
*
|
||
*
|
||
*/
|
||
public function testSetXmlPrologAndDocType() {
|
||
|
||
$expectedReturnValue = '<?xml version="1.0" encoding="utf-8" ?>';
|
||
$this->fixture->setXmlPrologAndDocType('<?xml version="1.0" encoding="utf-8" ?>');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test set title
|
||
*
|
||
*
|
||
*/
|
||
public function testSetTitle() {
|
||
|
||
$expectedReturnValue = '<title>This is the title</title>';
|
||
$this->fixture->setTitle('This is the title');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test set charset
|
||
*
|
||
*
|
||
*/
|
||
public function testSetCharset() {
|
||
|
||
$expectedReturnValue = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
|
||
$this->fixture->setCharset('utf-8');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test set favicon
|
||
*
|
||
*
|
||
*/
|
||
public function testSetFavIcon() {
|
||
|
||
$expectedReturnValue1 = '<link rel="shortcut icon" href="http://google.com/favicon.ico" />';
|
||
$expectedReturnValue2 = '<link rel="icon" href="http://google.com/favicon.ico" />';
|
||
$this->fixture->setFavIcon('http://google.com/favicon.ico');
|
||
... | ... | |
$expectedReturnValue2,
|
||
$out
|
||
);
|
||
|
||
}
|
||
/**
|
||
* test set baseUrl
|
||
*
|
||
*
|
||
*/
|
||
public function testSetBaseUrl() {
|
||
|
||
$expectedReturnValue = '<base href="http://ggogle.com/" />';
|
||
$this->fixture->setBaseUrl('http://ggogle.com/');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add meta tag
|
||
*
|
||
*
|
||
*/
|
||
public function testAddMetaTag() {
|
||
|
||
$expectedReturnValue = '<meta name="author" content="Anna Lyse">';
|
||
$this->fixture->addMetaTag('<meta name="author" content="Anna Lyse">');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add inline comment
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineComment() {
|
||
|
||
$expectedReturnValue = 'this is an inline comment written by unit test';
|
||
$this->fixture->addInlineComment('this is an inline comment written by unit test');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add header data
|
||
*
|
||
*
|
||
*/
|
||
public function testAddHeaderData() {
|
||
|
||
$expectedReturnValue = '<tag method="private" name="test" />';
|
||
$this->fixture->addHeaderData('<tag method="private" name="test" />');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add footer data
|
||
*
|
||
*
|
||
*/
|
||
public function testAddFooterData() {
|
||
|
||
$expectedReturnValue = '<tag method="private" name="test" />';
|
||
$this->fixture->addFooterData('<tag method="private" name="test" />');
|
||
$out = $this->fixture->render(t3lib_PageRenderer::PART_FOOTER);
|
||
... | ... | |
/**
|
||
* test add JS library file
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsLibrary() {
|
||
|
||
$expectedReturnValue = '<script src="fileadmin/test.js" type="text/javascript"></script>';
|
||
$this->fixture->addJsLibrary('test', 'fileadmin/test.js');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
|
||
/**
|
||
* test add JS footer library file
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsFooterLibrary() {
|
||
|
||
$expectedReturnValue = '<script src="fileadmin/test.js" type="text/javascript"></script>';
|
||
$this->fixture->addJsFooterLibrary('test', 'fileadmin/test.js');
|
||
$out = $this->fixture->render(t3lib_PageRenderer::PART_FOOTER);
|
||
... | ... | |
/**
|
||
* test add JS file
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsFile() {
|
||
|
||
$expectedReturnValue = '<script src="fileadmin/test.js" type="text/javascript"></script>';
|
||
$this->fixture->addJsFile('fileadmin/test.js');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add JS file for footer
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsFooterFile() {
|
||
|
||
$expectedReturnValue = '<script src="fileadmin/test.js" type="text/javascript"></script>';
|
||
$this->fixture->addJsFooterFile('fileadmin/test.js');
|
||
$out = $this->fixture->render(t3lib_PageRenderer::PART_FOOTER);
|
||
... | ... | |
/**
|
||
* test add JS inline
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsInlineCode() {
|
||
|
||
$expectedReturnValue = 'var x = "testvar"';
|
||
$this->fixture->addJsInlineCode('test', 'var x = "testvar"');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add JS inline for footer
|
||
*
|
||
*
|
||
*/
|
||
public function testAddJsFooterInlineCode() {
|
||
|
||
$expectedReturnValue = 'var x = "testvar"';
|
||
$this->fixture->addJsFooterInlineCode('test', 'var x = "testvar"');
|
||
$out = $this->fixture->render(t3lib_PageRenderer::PART_FOOTER);
|
||
... | ... | |
/**
|
||
* test add JS handler
|
||
*
|
||
*
|
||
*/
|
||
public function testAddExtOnReadyCode() {
|
||
|
||
$expectedReturnValue1 = 'Ext.onReady(function() {';
|
||
$expectedReturnValue2 = 'var x = "testvar";';
|
||
$this->fixture->loadExtJS();
|
||
... | ... | |
$expectedReturnValue1,
|
||
$out
|
||
);
|
||
|
||
$this->assertContains(
|
||
$expectedReturnValue2,
|
||
$out
|
||
);
|
||
|
||
}
|
||
/**
|
||
* test add CSS file
|
||
*
|
||
*
|
||
*/
|
||
public function testAddCssFile() {
|
||
|
||
$expectedReturnValue = '<link rel="stylesheet" type="text/css" href="fileadmin/test.css" media="screen" />';
|
||
$this->fixture->addCssFile('fileadmin/test.css');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add CSS inline
|
||
*
|
||
*
|
||
*/
|
||
public function testAddCssInlineBlock() {
|
||
|
||
$expectedReturnValue = 'body {margin:20px;}';
|
||
$this->fixture->addCssInlineBlock('general', 'body {margin:20px;}');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test add CSS inline and force on top
|
||
*
|
||
*
|
||
*/
|
||
public function testAddCssInlineBlockForceOnTop() {
|
||
|
||
$expectedReturnValue = '/*general1*/' . chr(10) . 'h1 {margin:20px;}' . chr(10) . '/*general*/' . chr(10) . 'body {margin:20px;}';
|
||
$this->fixture->addCssInlineBlock('general', 'body {margin:20px;}');
|
||
$this->fixture->addCssInlineBlock('general1', 'h1 {margin:20px;}', NULL, TRUE);
|
||
... | ... | |
/**
|
||
* test load prototype
|
||
*
|
||
*
|
||
*/
|
||
public function testLoadPrototype() {
|
||
|
||
$expectedReturnValue = '<script src="contrib/prototype/prototype.js" type="text/javascript"></script>';
|
||
$this->fixture->loadPrototype();
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test load Scriptaculous
|
||
*
|
||
*
|
||
*/
|
||
public function testLoadScriptaculous() {
|
||
|
||
$expectedReturnValue = '<script src="contrib/scriptaculous/scriptaculous.js?load=effects,controls,slider" type="text/javascript"></script>';
|
||
$this->fixture->loadScriptaculous('slider,controls');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
/**
|
||
* test load ExtJS
|
||
*
|
||
*
|
||
*/
|
||
public function testLoadExtJS() {
|
||
|
||
$expectedReturnValue = '<script src="contrib/extjs/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>' . chr(10) . '<script src="contrib/extjs/ext-all.js" type="text/javascript"></script>';
|
||
$this->fixture->loadExtJS(TRUE, TRUE, 'jquery');
|
||
$out = $this->fixture->render();
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test load ExtCore
|
||
*
|
||
*
|
||
*/
|
||
public function testLoadExtCore() {
|
||
|
||
$expectedReturnValue = '<script src="contrib/extjs/ext-core.js" type="text/javascript"></script>';
|
||
$this->fixture->loadExtCore();
|
||
$out = $this->fixture->render();
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test enable ExtJsDebug
|
||
*
|
||
* test enable ExtJsDebug
|
||
*
|
||
*/
|
||
public function testEnableExtJsDebug() {
|
||
|
||
$expectedReturnValue = '<script src="contrib/extjs/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script>' . chr(10) . '<script src="contrib/extjs/ext-all-debug.js" type="text/javascript"></script>';
|
||
$this->fixture->loadExtJS(TRUE, TRUE, 'jquery');
|
||
$this->fixture->enableExtJsDebug();
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test enable ExtCoreDebug
|
||
*
|
||
*
|
||
*/
|
||
public function testEnableExtCoreDebug() {
|
||
|
||
public function testEnableExtCoreDebug() {
|
||
$expectedReturnValue = '<script src="contrib/extjs/ext-core-debug.js" type="text/javascript"></script>';
|
||
$this->fixture->loadExtCore();
|
||
$this->fixture->enableExtCoreDebug();
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline language label
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineLanguageLabel() {
|
||
|
||
$expectedReturnValue = 'TYPO3.lang = {"myKey":"myValue"}';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineLanguageLabel('myKey', 'myValue');
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline language label as array
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineLanguageLabelArray() {
|
||
|
||
$expectedReturnValue = 'TYPO3.lang = {"myKey1":"myValue1","myKey2":"myValue2"}';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineLanguageLabelArray(array('myKey1' => 'myValue1', 'myKey2' => 'myValue2',));
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline language label as array get merged
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineLanguageLabelArrayMerged() {
|
||
|
||
$expectedReturnValue = 'TYPO3.lang = {"myKey1":"myValue1","myKey2":"myValue2"}';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineLanguageLabelArray(array('myKey1' => 'myValue1',));
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline setting
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineSetting() {
|
||
|
||
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey":"myValue"}};';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineSetting('myApp', 'myKey', 'myValue');
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline settings with array
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineSettingArray() {
|
||
|
||
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey1":"myValue1","myKey2":"myValue2"}};';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineSettingArray('myApp', array('myKey1' => 'myValue1', 'myKey2' => 'myValue2',));
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test inline settings with array get merged
|
||
*
|
||
*
|
||
*/
|
||
public function testAddInlineSettingArrayMerged() {
|
||
|
||
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey1":"myValue1","myKey2":"myValue2"}};';
|
||
$this->fixture->loadExtJS();
|
||
$this->fixture->addInlineSettingArray('myApp', array('myKey1' => 'myValue1',));
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
/**
|
||
* test add body content
|
||
*
|
||
*
|
||
*/
|
||
public function testAddBodyContent() {
|
||
$expectedReturnValue = 'ABCDE';
|
||
... | ... | |
$this->fixture->addBodyContent('C');
|
||
$this->fixture->addBodyContent('D');
|
||
$this->fixture->addBodyContent('E');
|
||
|
||
$out = $this->fixture->getBodyContent();
|
||
$this->assertEquals(
|
||
$expectedReturnValue,
|
||
$out
|
||
);
|
||
}
|
||
|
||
|
||
/**
|
||
* test set body content
|
||
*
|
||
*
|
||
*/
|
||
public function testSetBodyContent() {
|
||
$expectedReturnValue = 'ABCDE';
|
||
$this->fixture->setBodyContent('ABCDE');
|
||
|
||
$out = $this->fixture->getBodyContent();
|
||
$this->assertEquals(
|
||
$expectedReturnValue,
|
||
$out
|
||
);
|
||
|
||
$out = $this->fixture->render();
|
||
$this->assertContains(
|
||
... | ... | |
$out
|
||
);
|
||
}
|
||
|
||
|
||
}
|
||
?>
|
tests/t3lib/t3lib_tcemain_testcase.php (working copy) | ||
---|---|---|
$this->assertTrue($this->fixture->checkModifyAccessList('tt_content'));
|
||
}
|
||
}
|
||
?>
|
||
?>
|
tests/t3lib/t3lib_registry_testcase.php (working copy) | ||
---|---|---|
);
|
||
}
|
||
}
|
||
?>
|
tests/t3lib/t3lib_pageselect_testcase.php (working copy) | ||
---|---|---|
$this->assertTrue($parent instanceof t3lib_pageSelect);
|
||
}
|
||
}
|
||
?>
|
||
?>
|
tests/t3lib/t3lib_matchcondition_testcase.php (working copy) | ||
---|---|---|
/**
|
||
* Tests whether a condition matches Internet Explorer 7 on Windows.
|
||
*
|
||
*
|
||
* @return void
|
||
* @test
|
||
*/
|
||
... | ... | |
/**
|
||
* Tests whether a condition does not match Internet Explorer 7 on Windows.
|
||
*
|
||
*
|
||
* @return void
|
||
* @test
|
||
*/
|
||
... | ... | |
/**
|
||
* Tests whether the browserInfo hook is called.
|
||
*
|
||
*
|
||
* @return void
|
||
* @test
|
||
*/
|
tests/t3lib/t3lib_extmgm_testcase.php (working copy) | ||
---|---|---|
return $tca;
|
||
}
|
||
}
|
||
?>
|
tests/typo3/sysext/cms/tslib/tslib_content_testcase.php (working copy) | ||
---|---|---|
/**
|
||
* Tests whether the getImgResource hook is called correctly.
|
||
*
|
||
*
|
||
* @test
|
||
*/
|
||
public function isGetImgResourceHookCalled() {
|
t3lib/class.t3lib_formmail.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_formmail.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_formmail.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_bedisplaylog.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_bedisplaylog.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_bedisplaylog.php']);
|
||
}
|
t3lib/class.t3lib_tsfebeuserauth.php (working copy) | ||
---|---|---|
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsfebeuserauth.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tsfebeuserauth.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_browsetree.php (working copy) | ||
---|---|---|
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_pagerenderer.php (working copy) | ||
---|---|---|
* $Id$
|
||
*/
|
||
class t3lib_PageRenderer implements t3lib_Singleton {
|
||
|
||
protected $compressJavascript = FALSE;
|
||
protected $compressCss = FALSE;
|
||
protected $removeLineBreaksFromTemplate = FALSE;
|
||
... | ... | |
const EXTJS_ADAPTER_JQUERY = 'jquery';
|
||
const EXTJS_ADAPTER_PROTOTYPE = 'prototype';
|
||
const EXTJS_ADAPTER_YUI = 'yui';
|
||
|
||
protected $extJStheme = TRUE;
|
||
protected $extJScss = TRUE;
|
||
|
||
protected $enableExtJSQuickTips = false;
|
||
protected $inlineLanguageLabels = array ();
|
||
... | ... | |
$this->templateFile = $templateFile;
|
||
}
|
||
$this->backPath = isset($backPath) ? $backPath : $GLOBALS['BACK_PATH'];
|
||
|
||
$this->inlineJavascriptWrap = array(
|
||
'<script type="text/javascript">' . chr(10) . '/*<![CDATA[*/' . chr(10) . '<!-- ' . chr(10),
|
||
'// -->' . chr(10) . '/*]]>*/' . chr(10) . '</script>' . chr(10)
|
||
... | ... | |
/**
|
||
* reset all vars to initial values
|
||
*
|
||
*
|
||
* @return void
|
||
*/
|
||
protected function reset() {
|
||
... | ... | |
public function setTemplateFile($file) {
|
||
$this->templateFile = $file;
|
||
}
|
||
|
||
/**
|
||
* Sets back path
|
||
*
|
||
*
|
||
* @param string $backPath
|
||
* @return void
|
||
*/
|
||
... | ... | |
/**
|
||
* Gets MoveJsFromHeaderToFooter
|
||
*
|
||
* @return boolean
|
||
* @return boolean
|
||
*/
|
||
public function getMoveJsFromHeaderToFooter() {
|
||
return $this->moveJsFromHeaderToFooter;
|
||
... | ... | |
/**
|
||
* Gets compress of javascript
|
||
*
|
||
* @return boolean
|
||
* @return boolean
|
||
*/
|
||
public function getCompressJavascript() {
|
||
return $this->compressJavascript;
|
||
... | ... | |
/**
|
||
* Gets compress of css
|
||
*
|
||
* @return boolean
|
||
* @return boolean
|
||
*/
|
||
public function getCompressCss() {
|
||
return $this->compressCss;
|
||
... | ... | |
/**
|
||
* Gets concatenate of files
|
||
*
|
||
* @return boolean
|
||
* @return boolean
|
||
*/
|
||
public function getConcatenateFiles() {
|
||
return $this->concatenateFiles;
|
||
... | ... | |
/**
|
||
* Gets remove of empty lines from template
|
||
*
|
||
* @return boolean
|
||
* @return boolean
|
||
*/
|
||
public function getRemoveLineBreaksFromTemplate() {
|
||
return $this->removeLineBreaksFromTemplate;
|
||
... | ... | |
/* */
|
||
/* */
|
||
/*****************************************************/
|
||
|
||
/**
|
||
* Adds meta data
|
||
*
|
||
... | ... | |
}
|
||
/* Javascript Files */
|
||
|
||
/**
|
||
* Adds JS Library. JS Library block is rendered on top of the JS files.
|
||
*
|
||
... | ... | |
public function addJsLibrary($name, $file, $type = 'text/javascript', $compress = FALSE, $forceOnTop = FALSE, $allWrap = '') {
|
||
if (!in_array(strtolower($name), $this->jsLibs)) {
|
||
$this->jsLibs[strtolower($name)] = array (
|
||
'file' => $file,
|
||
'type' => $type,
|
||
'file' => $file,
|
||
'type' => $type,
|
||
'section' => self::PART_HEADER,
|
||
'compress' => $compress,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'allWrap' => $allWrap
|
||
);
|
||
}
|
||
|
||
}
|
||
/**
|
||
... | ... | |
public function addJsFooterLibrary($name, $file, $type = 'text/javascript', $compress = FALSE, $forceOnTop = FALSE, $allWrap = '') {
|
||
if (!in_array(strtolower($name), $this->jsLibs)) {
|
||
$this->jsLibs[strtolower($name)] = array (
|
||
'file' => $file,
|
||
'type' => $type,
|
||
'file' => $file,
|
||
'type' => $type,
|
||
'section' => self::PART_FOOTER,
|
||
'compress' => $compress,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'allWrap' => $allWrap
|
||
);
|
||
}
|
||
|
||
}
|
||
/**
|
||
... | ... | |
public function addJsFile($file, $type = 'text/javascript', $compress = TRUE, $forceOnTop = FALSE, $allWrap = '') {
|
||
if (!isset($this->jsFiles[$file])) {
|
||
$this->jsFiles[$file] = array (
|
||
'type' => $type,
|
||
'section' => self::PART_HEADER,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'type' => $type,
|
||
'section' => self::PART_HEADER,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'allWrap' => $allWrap
|
||
);
|
||
}
|
||
... | ... | |
public function addJsFooterFile($file, $type = 'text/javascript', $compress = TRUE, $forceOnTop = FALSE, $allWrap = '') {
|
||
if (!isset($this->jsFiles[$file])) {
|
||
$this->jsFiles[$file] = array (
|
||
'type' => $type,
|
||
'section' => self::PART_FOOTER,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'type' => $type,
|
||
'section' => self::PART_FOOTER,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'allWrap' => $allWrap
|
||
);
|
||
}
|
||
}
|
||
/*Javascript Inline Blocks */
|
||
|
||
/**
|
||
* Adds JS inline code
|
||
*
|
||
... | ... | |
if (!isset($this->jsInline[$name])) {
|
||
$this->jsInline[$name] = array (
|
||
'code' => $block . chr(10),
|
||
'section' => self::PART_HEADER,
|
||
'section' => self::PART_HEADER,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop
|
||
);
|
||
... | ... | |
}
|
||
/* CSS Files */
|
||
|
||
/**
|
||
* Adds CSS file
|
||
*
|
||
... | ... | |
public function addCssFile($file, $rel = 'stylesheet', $media = 'screen', $title = '', $compress = TRUE, $forceOnTop = FALSE, $allWrap = '') {
|
||
if (!isset($this->cssFiles[$file])) {
|
||
$this->cssFiles[$file] = array (
|
||
'rel' => $rel,
|
||
'media' => $media,
|
||
'title' => $title,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'rel' => $rel,
|
||
'media' => $media,
|
||
'title' => $title,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop,
|
||
'allWrap' => $allWrap
|
||
);
|
||
}
|
||
}
|
||
/*CSS Inline Blocks */
|
||
|
||
/**
|
||
* Adds CSS inline code
|
||
*
|
||
... | ... | |
public function addCssInlineBlock($name, $block, $compressed = FALSE, $forceOnTop = FALSE) {
|
||
if (!isset($this->cssInline[$name])) {
|
||
$this->cssInline[$name] = array (
|
||
'code' => $block,
|
||
'compress' => $compress,
|
||
'code' => $block,
|
||
'compress' => $compress,
|
||
'forceOnTop' => $forceOnTop
|
||
);
|
||
}
|
||
}
|
||
/* JS Libraries */
|
||
|
||
/**
|
||
* call function if you need the prototype library
|
||
*
|
||
... | ... | |
/**
|
||
* Enables ExtJs QuickTips
|
||
* Need extJs loaded
|
||
*
|
||
*
|
||
* @return void
|
||
*
|
||
*
|
||
*/
|
||
public function enableExtJSQuickTips() {
|
||
$this->enableExtJSQuickTips = TRUE;
|
||
... | ... | |
$this->addExtCore = TRUE;
|
||
}
|
||
/**
|
||
/**
|
||
* call this function to load debug version of ExtJS. Use this for development only
|
||
*
|
||
*/
|
||
... | ... | |
* Adds Javascript Inline Label. This will occur in TYPO3.lang - object
|
||
* The label can be used in scripts with TYPO3.lang.<key>
|
||
* Need extJs loaded
|
||
*
|
||
*
|
||
* @param string $key
|
||
* @param string $value
|
||
* @return void
|
||
... | ... | |
* Adds Javascript Inline Label Array. This will occur in TYPO3.lang - object
|
||
* The label can be used in scripts with TYPO3.lang.<key>
|
||
* Array will be merged with existing array.
|
||
* Need extJs loaded
|
||
*
|
||
* Need extJs loaded
|
||
*
|
||
* @param array $array
|
||
* @return void
|
||
*/
|
||
... | ... | |
/**
|
||
* Adds Javascript Inline Setting. This will occur in TYPO3.settings - object
|
||
* The label can be used in scripts with TYPO3.setting.<key>
|
||
* Need extJs loaded
|
||
*
|
||
* Need extJs loaded
|
||
*
|
||
* @param string $namespace
|
||
* @param string $key
|
||
* @param string $value
|
||
... | ... | |
* Adds Javascript Inline Setting. This will occur in TYPO3.settings - object
|
||
* The label can be used in scripts with TYPO3.setting.<key>
|
||
* Array will be merged with existing array.
|
||
* Need extJs loaded
|
||
*
|
||
* Need extJs loaded
|
||
*
|
||
* @param string $namespace
|
||
* @param array $array
|
||
* @return void
|
||
... | ... | |
/* */
|
||
/* */
|
||
/*****************************************************/
|
||
|
||
/**
|
||
* render the section (Header or Footer)
|
||
*
|
||
... | ... | |
}
|
||
if (count($this->cssInline)) {
|
||
|
||
foreach ($this->cssInline as $name => $properties) {
|
||
if ($properties['forceOnTop']) {
|
||
$cssInline = '/*' . htmlspecialchars($name) . '*/' . chr(10) . $properties['code'] . chr(10) . $cssInline;
|
||
... | ... | |
$jsFooterLibs .= chr(10) . $tag;
|
||
}
|
||
}
|
||
|
||
}
|
||
}
|
||
... | ... | |
foreach ($this->jsInline as $name => $properties) {
|
||
if ($properties['forceOnTop']) {
|
||
if ($properties['section'] === self::PART_HEADER) {
|
||
$jsInline = '/*' . htmlspecialchars($name) . '*/' . chr(10) . $properties['code'] . chr(10) . $jsInline;
|
||
$jsInline = '/*' . htmlspecialchars($name) . '*/' . chr(10) . $properties['code'] . chr(10) . $jsInline;
|
||
} else {
|
||
$jsFooterInline = '/*' . htmlspecialchars($name) . '*/' . chr(10) . $properties['code'] . chr(10) . $jsFooterInline;
|
||
}
|
||
... | ... | |
$jsFiles = '';
|
||
$jsFooterInline = $jsInline . chr(10) . $jsFooterInline;
|
||
$jsInline = '';
|
||
}
|
||
}
|
||
$markerArray = array(
|
||
'XMLPROLOG_DOCTYPE' => $this->xmlPrologAndDocType,
|
||
'HTMLTAG' => $this->htmlTag,
|
||
'HEADTAG' => $this->headTag,
|
||
'METACHARSET' => $this->charSet ? str_replace('|', htmlspecialchars($this->charSet), $this->metaCharsetTag) : '',
|
||
'INLINECOMMENT' => $this->inlineComments ? chr(10) . chr(10) . '<!-- ' . chr(10) . implode(chr(10), $this->inlineComments) . '-->' . chr(10) . chr(10) : '',
|
||
'XMLPROLOG_DOCTYPE' => $this->xmlPrologAndDocType,
|
||
'HTMLTAG' => $this->htmlTag,
|
||
'HEADTAG' => $this->headTag,
|
||
'METACHARSET' => $this->charSet ? str_replace('|', htmlspecialchars($this->charSet), $this->metaCharsetTag) : '',
|
||
'INLINECOMMENT' => $this->inlineComments ? chr(10) . chr(10) . '<!-- ' . chr(10) . implode(chr(10), $this->inlineComments) . '-->' . chr(10) . chr(10) : '',
|
||
'BASEURL' => $this->baseUrl ? str_replace('|', $this->baseUrl, $this->baseUrlTag) : '',
|
||
'SHORTCUT' => $this->favIcon ? sprintf($this->shortcutTag, htmlspecialchars($this->favIcon), $this->iconMimeType) : '',
|
||
'CSS_INCLUDE' => $cssFiles,
|
||
'CSS_INLINE' => $cssInline,
|
||
'JS_INLINE' => $jsInline,
|
||
'JS_INCLUDE' => $jsFiles,
|
||
'JS_LIBS' => $jsLibs,
|
||
'TITLE' => $this->title ? str_replace('|', htmlspecialchars($this->title), $this->titleTag) : '',
|
||
'META' => $metaTags,
|
||
'HEADERDATA' => $this->headerData ? implode(chr(10), $this->headerData) : '',
|
||
'FOOTERDATA' => $this->footerData ? implode(chr(10), $this->footerData) : '',
|
||
'JS_LIBS_FOOTER' => $jsFooterLibs,
|
||
'JS_INCLUDE_FOOTER' => $jsFooterFiles,
|
||
'SHORTCUT' => $this->favIcon ? sprintf($this->shortcutTag, htmlspecialchars($this->favIcon), $this->iconMimeType) : '',
|
||
'CSS_INCLUDE' => $cssFiles,
|
||
'CSS_INLINE' => $cssInline,
|
||
'JS_INLINE' => $jsInline,
|
||
'JS_INCLUDE' => $jsFiles,
|
||
'JS_LIBS' => $jsLibs,
|
||
'TITLE' => $this->title ? str_replace('|', htmlspecialchars($this->title), $this->titleTag) : '',
|
||
'META' => $metaTags,
|
||
'HEADERDATA' => $this->headerData ? implode(chr(10), $this->headerData) : '',
|
||
'FOOTERDATA' => $this->footerData ? implode(chr(10), $this->footerData) : '',
|
||
'JS_LIBS_FOOTER' => $jsFooterLibs,
|
||
'JS_INCLUDE_FOOTER' => $jsFooterFiles,
|
||
'JS_INLINE_FOOTER' => $jsFooterInline,
|
||
'BODY' => $this->bodyContent,
|
||
'BODY' => $this->bodyContent,
|
||
);
|
||
$markerArray = array_map('trim', $markerArray);
|
||
... | ... | |
$this->jsFiles[$this->backPath . 'contrib/extjs/ext-all.js'], $this->jsFiles[$this->backPath . 'contrib/extjs/ext-all-debug.js']
|
||
);
|
||
}
|
||
|
||
$inlineSettings = $this->inlineLanguageLabels ? 'TYPO3.lang = ' . json_encode($this->inlineLanguageLabels) . ';' : '';
|
||
$inlineSettings .= $this->inlineSettings ? 'TYPO3.settings = ' . json_encode($this->inlineSettings) . ';' : '';
|
||
|
||
if ($this->addExtCore || $this->addExtJS) {
|
||
// set clear.gif, move it on top, add handler code
|
||
$code = '';
|
||
... | ... | |
$out .= $this->inlineJavascriptWrap[0] . '
|
||
Ext.ns("TYPO3");
|
||
Ext.BLANK_IMAGE_URL = "' . htmlspecialchars(t3lib_div::locationHeaderUrl($this->backPath . 'gfx/clear.gif')) . '";' . chr(10) .
|
||
Ext.BLANK_IMAGE_URL = "' . htmlspecialchars(t3lib_div::locationHeaderUrl($this->backPath . 'gfx/clear.gif')) . '";' . chr(10) .
|
||
$inlineSettings .
|
||
'Ext.onReady(function() {' .
|
||
($this->enableExtJSQuickTips ? 'Ext.QuickTips.init();' . chr(10) : '') . $code .
|
||
' });' . $this->inlineJavascriptWrap[1];
|
||
unset ($this->extOnReadyCode);
|
||
|
||
if ($this->extJStheme) {
|
||
if (isset($GLOBALS['TBE_STYLES']['extJS']['theme'])) {
|
||
$this->addCssFile($this->backPath . $GLOBALS['TBE_STYLES']['extJS']['theme'], 'stylesheet', 'screen', '', FALSE, TRUE);
|
||
... | ... | |
/* */
|
||
/* */
|
||
/*****************************************************/
|
||
|
||
/**
|
||
* concatenate files into one file
|
||
* registered handler
|
||
... | ... | |
if ($this->concatenateFiles && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['concatenateHandler']) {
|
||
// use extern concatenate routine
|
||
$params = array (
|
||
'jsLibs' => &$this->jsLibs,
|
||
'jsFiles' => &$this->jsFiles,
|
||
'jsFooterFiles' => &$this->jsFiles,
|
||
'jsLibs' => &$this->jsLibs,
|
||
'jsFiles' => &$this->jsFiles,
|
||
'jsFooterFiles' => &$this->jsFiles,
|
||
'cssFiles' => &$this->cssFiles,
|
||
);
|
||
t3lib_div::callUserFunction($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['concatenateHandler'], $params, $this);
|
||
... | ... | |
if ($this->compressJavascript && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['jsCompressHandler']) {
|
||
// use extern compress routine
|
||
$params = array (
|
||
'jsInline' => &$this->jsInline,
|
||
'jsInline' => &$this->jsInline,
|
||
'jsFooterInline' => &$this->jsFooterInline,
|
||
'jsLibs' => &$this->jsLibs,
|
||
'jsFiles' => &$this->jsFiles,
|
||
'jsFooterFiles' => &$this->jsFiles,
|
||
'jsLibs' => &$this->jsLibs,
|
||
'jsFiles' => &$this->jsFiles,
|
||
'jsFooterFiles' => &$this->jsFiles,
|
||
);
|
||
t3lib_div::callUserFunction($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['jsCompressHandler'], $params, $this);
|
||
} else {
|
||
// traverse the arrays, compress files
|
||
$this->compressError = '';
|
||
|
||
if ($this->compressJavascript) {
|
||
if (count($this->jsInline)) {
|
||
foreach ($this->jsInline as $name => $properties) {
|
||
... | ... | |
}
|
||
}
|
||
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_pagerenderer.php']) {
|
t3lib/class.t3lib_modsettings.php (working copy) | ||
---|---|---|
*
|
||
********************************/
|
||
/**
|
||
* Processing entry for the stored settings array
|
||
* Can be overwritten by extended class
|
||
... | ... | |
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_modSettings.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_modSettings.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_registry.php (working copy) | ||
---|---|---|
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_registry.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_registry.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_frontendedit.php (working copy) | ||
---|---|---|
$this->doSave($table, $uid);
|
||
}
|
||
|
||
/**
|
||
* Stub for closing a record. No real functionality needed since content
|
||
* element rendering will take care of everything.
|
||
... | ... | |
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_frontendedit.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_frontendedit.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_extfilefunc.php (working copy) | ||
---|---|---|
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_extfilefunc.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_extfilefunc.php']);
|
||
}
|
||
?>
|
||
?>
|
t3lib/class.t3lib_loadmodules.php (working copy) | ||
---|---|---|
if ($MCONF['extbase']) {
|
||
$modconf['script'] = 'mod.php?M=Tx_' . rawurlencode($name);
|
||
} else {
|
||
$modconf['script'] = 'mod.php?M=' . rawurlencode($name);
|
||
$modconf['script'] = 'mod.php?M=' . rawurlencode($name);
|
||
}
|
||
} elseif ($MCONF['script'] && file_exists($path.'/'.$MCONF['script'])) {
|
||
$modconf['script'] = $this->getRelativePath(PATH_typo3,$fullpath.'/'.$MCONF['script']);
|
||
... | ... | |
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_loadmodules.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_foldertree.php (working copy) | ||
---|---|---|
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_foldertree.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_foldertree.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_sqlengine.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_sqlengine.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_sqlengine.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_cache.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_cache.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_cache.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_xml.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_xml.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_xml.php']);
|
||
}
|
t3lib/class.t3lib_autoloader.php (working copy) | ||
---|---|---|
}
|
||
}
|
||
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_autoload.php']) {
|
||
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_autoload.php']);
|
||
}
|
||
?>
|
t3lib/class.t3lib_befunc.php (working copy) | ||
---|---|---|
return $script;
|
||
}
|
||
}
|
||
?>
|
||
?>
|
t3lib/class.t3lib_stdgraphic.php (working copy) | ||
---|---|---|
}
|
||
return $retCol;
|