src/View/SSTemplateParser.php
public function setOpenBlocks($openBlocks)
    {
        $this->openBlocks = array();
        foreach ((array) $openBlocks as $name => $callable) {
            $this->addOpenBlock($name, $callable);
        }
    }
public function setOpenBlocks($openBlocks)
    {
        $this->openBlocks = array();
        foreach ((array) $openBlocks as $name => $callable) {
            $this->addOpenBlock($name, $callable);
        }
    }
public function setOpenBlocks ( $ openBlocks ) { $ this -> openBlocks = array ( ) ; foreach ( ( array ) $ openBlocks as $ name => $ callable ) { $ this -> addOpenBlock ( $ name , $ callable ) ; } }
Set the open blocks that the template parser should use

This method will delete any existing open blocks, please use addOpenBlock if you don't
want to overwrite
@param array $openBlocks
@throws InvalidArgumentException
Set the open blocks that the template parser should use