src/Template.php
protected function rebuildTagsRegion(&$template)
    {
        foreach ($template as $tag => &$val) {
            if (is_numeric($tag)) {
                continue;
            }

            $a = explode('#', $tag);
            $key = array_shift($a);
            $ref = array_shift($a);

            $this->tags[$key][$ref] = &$val;
            if (is_array($val)) {
                $this->rebuildTagsRegion($val);
            }
        }
    }
protected function rebuildTagsRegion(&$template)
    {
        foreach ($template as $tag => &$val) {
            if (is_numeric($tag)) {
                continue;
            }

            $a = explode('#', $tag);
            $key = array_shift($a);
            $ref = array_shift($a);

            $this->tags[$key][$ref] = &$val;
            if (is_array($val)) {
                $this->rebuildTagsRegion($val);
            }
        }
    }
protected function rebuildTagsRegion ( & $ template ) { foreach ( $ template as $ tag => & $ val ) { if ( is_numeric ( $ tag ) ) { continue ; } $ a = explode ( '#' , $ tag ) ; $ key = array_shift ( $ a ) ; $ ref = array_shift ( $ a ) ; $ this -> tags [ $ key ] [ $ ref ] = & $ val ; if ( is_array ( $ val ) ) { $ this -> rebuildTagsRegion ( $ val ) ; } } }
Add tags from a specified region.

@param array $template
Add tags from a specified region .