Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17002 Rev 17008
Línea 252... Línea 252...
252
        }
252
        }
253
    }
253
    }
Línea 254... Línea 254...
254
    
254
    
255
    /**
255
    /**
-
 
256
     *
256
     *
257
     * @param string $path
-
 
258
     * @param string $code 
257
     * @param Group $group
259
     * @param string $filename
258
     * @return string
260
     * @return string
259
     */
261
     */
260
    public function getGenericFile($path, $code, $filename)
262
    public function getGenericFile($path, $code, $filename)
261
    {
263
    {
Línea 265... Línea 267...
265
        } else {
267
        } else {
266
            return;
268
            return;
267
        }
269
        }
268
    }
270
    }
Línea -... Línea 271...
-
 
271
    
-
 
272
    
-
 
273
    /**
-
 
274
     *
-
 
275
     * @param string $path
-
 
276
     * @param string $code
-
 
277
     * @param string $filename
-
 
278
     * @return string
-
 
279
     */
-
 
280
    public function delete($path, $code, $filename)
-
 
281
    {
-
 
282
        $remoto = $path . '/' . $code. '/' .  $filename;
-
 
283
        try {
-
 
284
            $this->s3Files->deleteObject($remoto);
-
 
285
            return true;
-
 
286
        } catch (\Exception $exception) {
-
 
287
            //echo "No se pudo borrar el archivo : $remoto (" . $exception->getMessage() . ")";
-
 
288
            return false;
-
 
289
        }
-
 
290
        
-
 
291
    }
269
    
292
    
270
    /**
293
    /**
271
     *
294
     *
272
     * @return string
295
     * @return string
273
     */
296
     */