removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.write_compiled_include.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.write_compiled_include.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.write_compiled_include.php
deleted file mode 100644 (file)
index 4124f35..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Extract non-cacheable parts out of compiled template and write it\r
- *\r
- * @param string $compile_path\r
- * @param string $template_compiled\r
- * @param integer $template_timestamp\r
- * @return boolean\r
- */\r
-\r
-function smarty_core_write_compiled_include($params, &$smarty)\r
-{\r
-    $_tag_start = 'if \(\$this->caching\) \{ echo \'\{nocache\:('.$params['cache_serial'].')#(\d+)\}\';\}';\r
-    $_tag_end   = 'if \(\$this->caching\) \{ echo \'\{/nocache\:(\\2)#(\\3)\}\';\}';\r
-\r
-    preg_match_all('!('.$_tag_start.'(.*)'.$_tag_end.')!Us',\r
-                   $params['compiled_content'], $_match_source, PREG_SET_ORDER);\r
-\r
-    // no nocache-parts found: done\r
-    if (count($_match_source)==0) return;\r
-\r
-    // convert the matched php-code to functions\r
-    $_include_compiled = "<?php /* funky header here */\n\n";\r
-\r
-    $_compile_path = $params['include_file_path'];\r
-\r
-    $smarty->_cache_serials[$_compile_path] = $params['cache_serial'];\r
-    $_include_compiled .= "\$this->_cache_serials['".$_compile_path."'] = '".$params['cache_serial']."';\n\n?>";\r
-\r
-    $_include_compiled .= $params['plugins_code'];\r
-    $_include_compiled .= "<?php";\r
-    for ($_i = 0, $_for_max = count($_match_source); $_i < $_for_max; $_i++) {\r
-        $_match =& $_match_source[$_i];\r
-        $_include_compiled .= "\r
-function _smarty_tplfunc_$_match[2]_$_match[3](&\$this)\r
-{\r
-$_match[4]\r
-}\r
-\r
-";\r
-    }\r
-    $_include_compiled .= "\n\n?>\n";\r
-\r
-    $_params = array('filename' => $_compile_path,\r
-                     'contents' => $_include_compiled, 'create_dirs' => true);\r
-\r
-    require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.write_file.php');\r
-    smarty_core_write_file($_params, $smarty);\r
-    return true;\r
-}\r
-\r
-\r
-?>\r