Source for file FileProxyFactory.php
Documentation is available at FileProxyFactory.php
* Build the right type of file proxy based on the request
* @author Julien-Samuel Lacroix
* @license http://www.geoprisma.org/license BSD License
* @link http://www.geoprisma.org
* Construit le bon type de file proxy selon le type de requete
* @author Julien-Samuel Lacroix
* Return the good file proxy
* @param org_geoprisma_service_FileService $pobjService Service
* @return org_geoprisma_proxy_file_FileProxy
public static function getFileProxy(org_geoprisma_service_FileService $pobjService)
else if (self::isUpload())
else if (self::isNewDir())
* Check if query is the type of download | cmd = download
private static function isDownload()
return (isset
($_REQUEST['cmd']) &&
$_REQUEST['cmd'] ==
'download' &&
isset
($_REQUEST['path']) &&
$_REQUEST['path'] !=
'');
* Check if query is the type of view | cmd = view
private static function isView()
return (isset
($_REQUEST['cmd']) &&
$_REQUEST['cmd'] ==
'view' &&
isset
($_REQUEST['path']) &&
$_REQUEST['path'] !=
'');
* Check if query is the type of upload | cmd = upload
private static function isUpload()
return (isset
($_REQUEST['cmd']) &&
$_REQUEST['cmd'] ==
'upload' &&
isset
($_REQUEST['path']) &&
$_REQUEST['path'] !=
'' &&
isset
($_FILES) && isset
($_FILES['x-filename']) &&
isset
($_REQUEST['dir']) &&
$_REQUEST['dir'] !=
'');
* Check if query is the type of new directory | cmd = newdir
private static function isNewDir()
return (isset
($_REQUEST['cmd']) &&
$_REQUEST['cmd'] ==
'newdir' &&
isset
($_REQUEST['dir']) &&
$_REQUEST['dir'] !=
'');
Documentation generated on Mon, 20 Feb 2012 13:46:17 -0500 by phpDocumentor 1.4.1