Source for file FeatureServerProxyFactory.php
Documentation is available at FeatureServerProxyFactory.php
* Construit le bon type de feature server proxy selon le type de requete
* @copyright 2009, Boreal - Information Strategies
* @license http://www.geoprisma.org/license BSD License
* @link http://www.geoprisma.org
* Construit le bon type de feature server proxy selon le type de requete
* Return the good feature server proxy
* @param org_geoprisma_service_FeatureServerService $pobjService Service
* @return org_geoprisma_proxy_featureserver_FeatureServerGetCapabilityProxy
if (self::isGetCapability())
elseif (self::isDelete())
elseif (self::isUpdate())
elseif (self::isCreate())
return $objFeatureServerProxy;
* Check if query is the type of getCapability | The layer is not specifield
private static function isGetCapability()
* Check if the query is delete | Request Method = DELETE
private static function isDelete()
return $iId !=
null && isset
($_SERVER['REQUEST_METHOD']) &&
$_SERVER['REQUEST_METHOD'] ==
'DELETE';
* Check if the query is Create | Request Method = POST
private static function isCreate()
return $iId ==
null && isset
($GLOBALS['HTTP_RAW_POST_DATA']) !=
null &&
$GLOBALS['HTTP_RAW_POST_DATA'] !=
'' && isset
($_SERVER['REQUEST_METHOD']) &&
$_SERVER['REQUEST_METHOD'] ==
'POST';
* Check if the query is delete
private static function isUpdate()
return $iId !=
null && isset
($_SERVER['REQUEST_METHOD']) &&
$_SERVER['REQUEST_METHOD'] ==
'PUT';
Documentation generated on Thu, 19 Jan 2012 00:08:29 +0400 by phpDocumentor 1.4.1