src/core/framework/core/3rdparty/dwoo/Dwoo/Adapters/ZendFramework/View.php
public function setCompiler($compiler)
	{

		// if param given as an object
		if ($compiler instanceof Dwoo_ICompiler) {
			$this->_compiler = $compiler;
		}
		// if param given as a string
		elseif (is_subclass_of($compiler, 'Dwoo_Compiler') || 'Dwoo_Compiler' == $compiler) {
			$this->_compiler = new $compiler;
		}
		else {
			throw new Dwoo_Exception("Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler");
		}
	}
public function setCompiler($compiler)
	{

		// if param given as an object
		if ($compiler instanceof Dwoo_ICompiler) {
			$this->_compiler = $compiler;
		}
		// if param given as a string
		elseif (is_subclass_of($compiler, 'Dwoo_Compiler') || 'Dwoo_Compiler' == $compiler) {
			$this->_compiler = new $compiler;
		}
		else {
			throw new Dwoo_Exception("Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler");
		}
	}
public function setCompiler ( $ compiler ) { // if param given as an object if ( $ compiler instanceof Dwoo_ICompiler ) { $ this -> _compiler = $ compiler ; } // if param given as a string elseif ( is_subclass_of ( $ compiler , 'Dwoo_Compiler' ) || 'Dwoo_Compiler' == $ compiler ) { $ this -> _compiler = new $ compiler ; } else { throw new Dwoo_Exception ( "Custom compiler must be a subclass of Dwoo_Compiler or instance of Dwoo_ICompiler" ) ; } }
Sets Dwoo compiler

@param string|Dwoo_Compiler Object or name of the class
Sets Dwoo compiler