original_string: public function addBlock($type, array $params, $paramtype)
  	{
  		$class = 'Dwoo_Plugin_'.$type;
  		if (class_exists($class, false) === false) {
  			$this->dwoo->getLoader()->loadPlugin($type);
  		}
  
  		$params = $this->mapParams($params, array($class, 'init'), $paramtype);
  
  		$this->stack[] = array('type' => $type, 'params' => $params, 'custom' => false, 'class' => $class, 'buffer' => null);
  		$this->curBlock =& $this->stack[count($this->stack)-1];
  		return call_user_func(array($class,'preProcessing'), $this, $params, '', '', $type);
  	}
code: public function addBlock($type, array $params, $paramtype)
  	{
  		$class = 'Dwoo_Plugin_'.$type;
  		if (class_exists($class, false) === false) {
  			$this->dwoo->getLoader()->loadPlugin($type);
  		}
  
  		$params = $this->mapParams($params, array($class, 'init'), $paramtype);
  
  		$this->stack[] = array('type' => $type, 'params' => $params, 'custom' => false, 'class' => $class, 'buffer' => null);
  		$this->curBlock =& $this->stack[count($this->stack)-1];
  		return call_user_func(array($class,'preProcessing'), $this, $params, '', '', $type);
  	}
code_tokens: public function addBlock ( $ type , array $ params , $ paramtype ) { $ class = 'Dwoo_Plugin_' . $ type ; if ( class_exists ( $ class , false ) === false ) { $ this -> dwoo -> getLoader ( ) -> loadPlugin ( $ type ) ; } $ params = $ this -> mapParams ( $ params , array ( $ class , 'init' ) , $ paramtype ) ; $ this -> stack [ ] = array ( 'type' => $ type , 'params' => $ params , 'custom' => false , 'class' => $ class , 'buffer' => null ) ; $ this -> curBlock = & $ this -> stack [ count ( $ this -> stack ) - 1 ] ; return call_user_func ( array ( $ class , 'preProcessing' ) , $ this , $ params , '' , '' , $ type ) ; }
docstring: adds a block to the top of the block stack
  
  @param string $type block type (name)
  @param array $params the parameters array
  @param int $paramtype the parameters type (see mapParams), 0, 1 or 2
  @return string the preProcessing() method's output
docstring_tokens: adds a block to the top of the block stack