Proyectos de Subversion LeadersLinked - Services

Rev

Rev 295 | Rev 302 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 295 Rev 298
Línea 273... Línea 273...
273
        }
273
        }
274
    }
274
    }
Línea 275... Línea 275...
275
    
275
    
276
    /**
276
    /**
-
 
277
     *
277
     *
278
     * @param string $path
-
 
279
     * @param string $code,
-
 
280
     * @param string $filename
278
     * @param Group $group
281
     * @param boolean $checkExists
279
     * @return string
282
     * @return string
280
     */
283
     */
281
    public function getGenericFile($path, $code, $filename)
284
    public function getGenericFile($path, $code, $filename, $checkExists = true)
282
    {
285
    {
-
 
286
        $remoto = $path . '/' . $code. '/' .  $filename;
-
 
287
        
283
        $remoto = $path . '/' . $code. '/' .  $filename;
288
        if($checkExists) {
284
        if($this->s3Files->objectExist($remoto)) {
289
            if($this->s3Files->objectExist($remoto)) {
285
            return $this->s3Files->getPresignedUrl($remoto);
290
                return $this->s3Files->getPresignedUrl($remoto);
286
            
291
                
287
        } else {
292
            } else {
-
 
293
                return;
288
            return;
294
            } 
-
 
295
        } 
289
        }
296
        return $this->s3Files->getPresignedUrl($remoto);