2012-09-06 15:27:20 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class ControllerSearchFolder extends Controller {
|
|
|
|
|
|
|
|
protected function index() {
|
|
|
|
|
|
|
|
$this->id = "folder";
|
|
|
|
$this->template = "search/folder.tpl";
|
|
|
|
|
2013-11-18 19:24:33 +01:00
|
|
|
$session = Registry::get('session');
|
2012-09-06 15:27:20 +02:00
|
|
|
$request = Registry::get('request');
|
|
|
|
$db = Registry::get('db');
|
|
|
|
|
|
|
|
$this->load->model('folder/folder');
|
|
|
|
|
2015-09-18 14:56:09 +02:00
|
|
|
$this->data['extra_folders'] = $this->model_folder_folder->get_folders_for_user();
|
2012-09-06 15:27:20 +02:00
|
|
|
|
2013-11-18 19:24:33 +01:00
|
|
|
$this->data['folders_by_hier'] = $this->model_folder_folder->get_all_folder_ids_hier($session->get("uid"));
|
2012-09-15 22:49:38 +02:00
|
|
|
|
2012-09-06 15:27:20 +02:00
|
|
|
$this->render();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|