lib/Psc/CMS/Controller/FileUploadController.php
public function getFiles(Array $criteria = array(), Array $orderBy = NULL) {
    $files = new \Psc\Data\ArrayCollection(
      $this->manager->getRepository()->findBy($criteria, $orderBy)
    );
    
    foreach ($files as $file) {
      $this->manager->attach($file);
    }
    
    return $files;
  }
public function getFiles(Array $criteria = array(), Array $orderBy = NULL) {
    $files = new \Psc\Data\ArrayCollection(
      $this->manager->getRepository()->findBy($criteria, $orderBy)
    );
    
    foreach ($files as $file) {
      $this->manager->attach($file);
    }
    
    return $files;
  }
public function getFiles ( Array $ criteria = array ( ) , Array $ orderBy = NULL ) { $ files = new \ Psc \ Data \ ArrayCollection ( $ this -> manager -> getRepository ( ) -> findBy ( $ criteria , $ orderBy ) ) ; foreach ( $ files as $ file ) { $ this -> manager -> attach ( $ file ) ; } return $ files ; }
Returns a list of all uploaded files

@return array
Returns a list of all uploaded files