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; }