private function _setView($name, $custom = false)
    {
        if (!is_string($name)) {
            throw new CollectionException('View name must be a string.');
        }

        $this->_viewName = (!$custom ? 'resource-table::' : '').$name;
        return $this;
    }
private function _setView($name, $custom = false)
    {
        if (!is_string($name)) {
            throw new CollectionException('View name must be a string.');
        }

        $this->_viewName = (!$custom ? 'resource-table::' : '').$name;
        return $this;
    }
private function _setView ( $ name , $ custom = false ) { if ( ! is_string ( $ name ) ) { throw new CollectionException ( 'View name must be a string.' ) ; } $ this -> _viewName = ( ! $ custom ? 'resource-table::' : '' ) . $ name ; return $ this ; }
Sets view name for further rendering

@param string $name
@param bool $custom
@return $this
@throws CollectionException
Sets view name for further rendering