src/core/framework/core/3rdparty/dwoo/Dwoo/Compiler.php
protected function resolveSubTemplateDependencies($function)
	{
		$body = $this->templatePlugins[$function]['body'];
		foreach ($this->templatePlugins as $func => $attr) {
			if ($func !== $function && !isset($attr['called']) && strpos($body, 'Dwoo_Plugin_'.$func) !== false) {
				$this->templatePlugins[$func]['called'] = true;
				$this->resolveSubTemplateDependencies($func);
			}
		}
		$this->templatePlugins[$function]['checked'] = true;
	}
protected function resolveSubTemplateDependencies($function)
	{
		$body = $this->templatePlugins[$function]['body'];
		foreach ($this->templatePlugins as $func => $attr) {
			if ($func !== $function && !isset($attr['called']) && strpos($body, 'Dwoo_Plugin_'.$func) !== false) {
				$this->templatePlugins[$func]['called'] = true;
				$this->resolveSubTemplateDependencies($func);
			}
		}
		$this->templatePlugins[$function]['checked'] = true;
	}
protected function resolveSubTemplateDependencies ( $ function ) { $ body = $ this -> templatePlugins [ $ function ] [ 'body' ] ; foreach ( $ this -> templatePlugins as $ func => $ attr ) { if ( $ func !== $ function && ! isset ( $ attr [ 'called' ] ) && strpos ( $ body , 'Dwoo_Plugin_' . $ func ) !== false ) { $ this -> templatePlugins [ $ func ] [ 'called' ] = true ; $ this -> resolveSubTemplateDependencies ( $ func ) ; } } $ this -> templatePlugins [ $ function ] [ 'checked' ] = true ; }
checks what sub-templates are used in every sub-template so that we're sure they are all compiled

@param string $function the sub-template name
checks what sub - templates are used in every sub - template so that we re sure they are all compiled