cache) { return false; } return $this->getCache() . '/' . preg_replace('#[^a-zA-Z0-9_/]#', '_', $name) . '.php'; } public function set_phpbb_extensions($extensions) { $this->phpbbExtensions = $extensions; } public function get_phpbb_extensions() { return $this->phpbbExtensions; } /** * recursive helper to set variables into $context so that Twig can properly fetch them for display * * @param array $data Data to set at the end of the chain * @param array $blocks Array of blocks to loop into still * @param mixed $current_location Current location in $context (recursive!) */ public function context_recursive_loop_builder($data, $blocks, &$current_location) { $block = array_shift($blocks); if (empty($blocks)) { $current_location[$block] = $data; } else { $this->context_recursive_loop_builder($data, $blocks, $current_location[$block]); } } }