Exemplo n.º 1
0
 /**
  * Get remoteinfos URI
  *
  * @param array  $rinfos Remote informations configuration
  * @param string $path   Image path
  * @param string $img    Image name
  *
  * @return string
  */
 public static function getRemoteInfosURI($rinfos, $path, $img)
 {
     $uri = $rinfos['uri'];
     if ($rinfos['method'] === 'bach') {
         $uri .= 'infosimage/' . $path . $img;
     } else {
         if ($rinfos['method'] === 'pleade') {
             $uri .= 'functions/ead/infosimage.xml?path=' . $path . '&name=' . $img;
         }
     }
     Analog::debug('Loading remote infos from ' . $uri);
     return $uri;
 }