public function OpignoGroupManagerController::documentsLibraryList in Opigno group manager 8
Same name and namespace in other branches
- 3.x src/Controller/OpignoGroupManagerController.php \Drupal\opigno_group_manager\Controller\OpignoGroupManagerController::documentsLibraryList()
Helper function.
Get a list of all files and folders from the documents library.
2 calls to OpignoGroupManagerController::documentsLibraryList()
- OpignoGroupManagerController::trainingDuplicate in src/
Controller/ OpignoGroupManagerController.php - Duplicate training.
- OpignoGroupManagerController::trainingExport in src/
Controller/ OpignoGroupManagerController.php - Export training.
File
- src/
Controller/ OpignoGroupManagerController.php, line 1905
Class
- OpignoGroupManagerController
- Controller for all the actions of the Opigno group manager app.
Namespace
Drupal\opigno_group_manager\ControllerCode
public function documentsLibraryList($tid) {
$main_content = _tft_folder_content($tid);
$all_content = [];
foreach ($main_content as $content) {
$all_content[] = $content;
if ($content['type'] == 'term') {
$term_content = $this
->documentsLibraryList($content['id']);
$all_content = array_merge($all_content, $term_content);
}
}
return $all_content;
}