code/template/filter/block.php
public function addBlock($name, array $data)
    {
        if(!isset($this->__blocks[$name])) {
            $this->__blocks[$name] = array();
        }

        $this->__blocks[$name][] = $data;

        return $this;
    }
public function addBlock($name, array $data)
    {
        if(!isset($this->__blocks[$name])) {
            $this->__blocks[$name] = array();
        }

        $this->__blocks[$name][] = $data;

        return $this;
    }
public function addBlock ( $ name , array $ data ) { if ( ! isset ( $ this -> __blocks [ $ name ] ) ) { $ this -> __blocks [ $ name ] = array ( ) ; } $ this -> __blocks [ $ name ] [ ] = $ data ; return $ this ; }
Add a block

@param string $name The name of the block
@param array  $data The data of the block
@return TemplateFilterBlock
Add a block