protected function setBlockProperties($block, $args)
    {
        $block->setTemplateParams($args);

        if ($block->hasUriExtensions()) {
            $this->uriExtensionsHandled = true;
            $block->setUriExtension($this->uri);
        }

        if (isset($this->page)) {
            $block->setPage($this->page);
        }

        if (isset($this->version)) {
            $block->setPageVersion($this->version);
        }

        $block->setDataStore($this->dataStore);

        return $block;
    }
protected function setBlockProperties($block, $args)
    {
        $block->setTemplateParams($args);

        if ($block->hasUriExtensions()) {
            $this->uriExtensionsHandled = true;
            $block->setUriExtension($this->uri);
        }

        if (isset($this->page)) {
            $block->setPage($this->page);
        }

        if (isset($this->version)) {
            $block->setPageVersion($this->version);
        }

        $block->setDataStore($this->dataStore);

        return $block;
    }
protected function setBlockProperties ( $ block , $ args ) { $ block -> setTemplateParams ( $ args ) ; if ( $ block -> hasUriExtensions ( ) ) { $ this -> uriExtensionsHandled = true ; $ block -> setUriExtension ( $ this -> uri ) ; } if ( isset ( $ this -> page ) ) { $ block -> setPage ( $ this -> page ) ; } if ( isset ( $ this -> version ) ) { $ block -> setPageVersion ( $ this -> version ) ; } $ block -> setDataStore ( $ this -> dataStore ) ; return $ block ; }
Set template parameters and other properties on a block

@param $block
@param $args
@return mixed
Set template parameters and other properties on a block