private function _getUrl($type = 'base', $id = 'null') {
		$modelClass = $this->modelClass;
		$collection = $modelClass::getResourceName();

		switch($type) {
			case 'api':
				return $this->_trailingSlash($modelClass::getApiUrl());
				break;
			case 'collection':
				return $this->_trailingSlash($collection, false);
				break;
			case 'element':
				return $this->_trailingSlash($collection) . $this->_trailingSlash($id, false);
				break;
		}

		return '';
	}
private function _getUrl($type = 'base', $id = 'null') {
		$modelClass = $this->modelClass;
		$collection = $modelClass::getResourceName();

		switch($type) {
			case 'api':
				return $this->_trailingSlash($modelClass::getApiUrl());
				break;
			case 'collection':
				return $this->_trailingSlash($collection, false);
				break;
			case 'element':
				return $this->_trailingSlash($collection) . $this->_trailingSlash($id, false);
				break;
		}

		return '';
	}
private function _getUrl ( $ type = 'base' , $ id = 'null' ) { $ modelClass = $ this -> modelClass ; $ collection = $ modelClass :: getResourceName ( ) ; switch ( $ type ) { case 'api' : return $ this -> _trailingSlash ( $ modelClass :: getApiUrl ( ) ) ; break ; case 'collection' : return $ this -> _trailingSlash ( $ collection , false ) ; break ; case 'element' : return $ this -> _trailingSlash ( $ collection ) . $ this -> _trailingSlash ( $ id , false ) ; break ; } return '' ; }
Get url to collection or element of resource
with check base url trailing slash
@param string $type api|collection|element
@param string $id
@return string
Get url to collection or element of resource with check base url trailing slash