示例#1
0
 /**
  * @param array $parameters
  * @param object $caller
  * @return void
  */
 public function buildAllUncached(array $parameters, $caller)
 {
     $content = $caller->content;
     $matches = array();
     preg_match_all('/\\<\\![\\-]+\\ VhsAssetsDependenciesLoaded ([^ ]+) [\\-]+\\>/i', $content, $matches);
     foreach ($matches[1] as $key => $match) {
         $extractedDependencies = explode(',', $matches[1][$key]);
         self::$cachedDependencies = array_merge(self::$cachedDependencies, $extractedDependencies);
         $content = str_replace($matches[0][$key], '', $content);
     }
     $caller->content = $content;
     $this->buildAll($parameters, $caller, FALSE);
 }
 /**
  * @param array $parameters
  * @param object $caller
  * @return void
  */
 public function buildAllUncached(array $parameters, $caller)
 {
     self::$buildComplete = FALSE;
     $content = $GLOBALS['TSFE']->content;
     $matches = array();
     preg_match_all('/\\<\\![\\-]+\\ VhsAssetsDependenciesLoaded ([^ ]+) [\\-]+\\>/i', $content, $matches);
     foreach ($matches[1] as $key => $match) {
         $extractedDependencies = explode(',', $matches[1][$key]);
         self::$cachedDependencies = array_merge(self::$cachedDependencies, $extractedDependencies);
         $content = str_replace($matches[0][$key], '', $content);
     }
     $GLOBALS['TSFE']->content = $content;
     $this->buildAll($parameters, $caller, FALSE);
     if (TRUE === empty($GLOBALS['BE_USER'])) {
         header('Content-length: ' . strlen($GLOBALS['TSFE']->content));
     }
 }