Esempio n. 1
0
 private function loadDocuments($folder_id)
 {
     $files = \StudipDocument::findByFolderId($folder_id);
     $result = array();
     foreach ($files as $file) {
         $url = $this->urlf('/file/%s', array($file->id));
         $result[$url] = $this->fileToJSON($file);
     }
     return $result;
 }