ComunicAPI/helpers/userData.php
2017-05-26 10:23:55 +02:00

20 lines
544 B
PHP

<?php
/**
* User data helper
*
* @author Pierre HUBERT
*/
/**
* Get and returns the URL path to an userdata file
*
* @param String $fileURI Optionnal, defines the URI pointing on the file
* @param Boolean $systemPath Optionnal, defines if system path is required instead of URL
* @return String The full URL to the userdata file
*/
function path_user_data($fileURI = "", $systemPath = false){
if(!$systemPath)
return CS::get()->config->get("storage_url").$fileURI;
else
return CS::get()->config->get("storage_path").$fileURI;
}