original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: 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
docstring_tokens: checks what sub - templates are used in every sub - template so that we re sure they are all compiled