|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
ilCloudFileTree class More...
Collaboration diagram for ilCloudFileTree:Public Member Functions | |
| __construct ($root_path="/", $root_id="root", $id, $service_name) | |
| getId () | |
| getRootPath () | |
| getServiceName () | |
| isCaseSensitive () | |
| setCaseSensitive ($case_sensitive) | |
| getRootNode () | |
| addNode ($path, $id, $is_Dir, $modified=null, $size=0) | |
| addIdBasedNode ($path, $id, $parent_id, $is_Dir, $modified=null, $size=0) | |
| Add node that relies on id's. More... | |
| removeNode ($path) | |
| getItemList () | |
| getNodeFromPath ($path="/") | |
| getNodeFromId ($id) | |
| setLoadingOfFolderComplete ($path) | |
| updateFileTree ($current_path) | |
| addItemsFromService ($folder_id) | |
| addFolderToService ($id, $folder_name) | |
| uploadFileToService ($current_id, $tmp_name, $file_name) | |
| deleteFromService ($id) | |
| downloadFromService ($id) | |
| storeFileTreeToSession () | |
| orderListAlphabet ($path1, $path2) | |
| getSortedListOfChildren (ilCloudFileNode $node) | |
| getListForJSONEncode () | |
Static Public Member Functions | |
| static | getFileTreeFromSession () |
| static | clearFileTreeSession () |
Protected Member Functions | |
| setId ($id) | |
| setRootPath ($path="/") | |
| setServiceName ($service_name) | |
| createNode ($path="/", $id, $is_dir=false) | |
Protected Attributes | |
| $id = 0 | |
| $root_node = null | |
| $root_path = "" | |
| $item_list = array() | |
| $id_to_path_map = array() | |
| Only for better performance. More... | |
| $service_name = "" | |
| $case_sensitive = false | |
ilCloudFileTree class
Representation of the structure of all files and folders so far. Not really a tree but a list simulating a tree (for faster access on the nodes). This class also calls the functions of a service to update the tree (addToFileTree, deleteItem, etc.)
Definition at line 20 of file class.ilCloudFileTree.php.
| ilCloudFileTree::__construct | ( | $root_path = "/", |
|
$root_id = "root", |
|||
| $id, | |||
| $service_name | |||
| ) |
| string | $root_path | |
| string | $root_id | |
| int | $id | |
| string | $service_name | |
| bool | $case_sensitive |
Definition at line 66 of file class.ilCloudFileTree.php.
References $id, $root_path, $service, $service_name, createNode(), ilCloudConnector\getServiceClass(), setCaseSensitive(), setId(), and setServiceName().
Here is the call graph for this function:| ilCloudFileTree::addFolderToService | ( | $id, | |
| $folder_name | |||
| ) |
| $id | |
| $folder_name |
| ilCloudException |
Definition at line 350 of file class.ilCloudFileTree.php.
References $id, $path, $service, addItemsFromService(), ilCloudException\FOLDER_ALREADY_EXISTING_ON_SERVICE, ilCloudException\FOLDER_CREATION_FAILED, getId(), getNodeFromId(), getNodeFromPath(), ilCloudConnector\getServiceClass(), getServiceName(), ilCloudException\INVALID_INPUT, ilCloudUtil\joinPaths(), ilCloudUtil\normalizePath(), and storeFileTreeToSession().
Here is the call graph for this function:| ilCloudFileTree::addIdBasedNode | ( | $path, | |
| $id, | |||
| $parent_id, | |||
| $is_Dir, | |||
$modified = null, |
|||
$size = 0 |
|||
| ) |
Add node that relies on id's.
| $path | ||
| $id | ||
| $parent_id | ||
| $is_Dir | ||
| null | $modified | |
| int | $size |
| ilCloudException |
Definition at line 209 of file class.ilCloudFileTree.php.
References $id, $path, $size, createNode(), getNodeFromId(), getNodeFromPath(), ilCloudUtil\normalizePath(), and ilCloudException\PATH_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION.
Here is the call graph for this function:| ilCloudFileTree::addItemsFromService | ( | $folder_id | ) |
| $folder_id |
| ilCloudException |
Definition at line 323 of file class.ilCloudFileTree.php.
References $service, ilCloudException\ADD_ITEMS_FROM_SERVICE_FAILED, getId(), getNodeFromId(), ilCloudConnector\getServiceClass(), getServiceName(), and ilCloudException\ID_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION.
Referenced by addFolderToService(), and updateFileTree().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCloudFileTree::addNode | ( | $path, | |
| $id, | |||
| $is_Dir, | |||
$modified = null, |
|||
$size = 0 |
|||
| ) |
| $path | ||
| $is_Dir | ||
| null | $modified | |
| int | $size |
Definition at line 169 of file class.ilCloudFileTree.php.
References $id, $path, $size, createNode(), getNodeFromId(), getNodeFromPath(), ilCloudException\ID_ALREADY_EXISTS_IN_FILE_TREE_IN_SESSION, ilCloudUtil\normalizePath(), and ilCloudException\PATH_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION.
Here is the call graph for this function:
|
static |
|
protected |
| string | $path | |
| bool | $is_dir |
Definition at line 153 of file class.ilCloudFileTree.php.
References $id, $path, and ilCloudUtil\normalizePath().
Referenced by __construct(), addIdBasedNode(), and addNode().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCloudFileTree::deleteFromService | ( | $id | ) |
| $id |
| ilCloudException |
Definition at line 432 of file class.ilCloudFileTree.php.
References $id, $service, ilCloudException\DELETE_FAILED, getId(), getNodeFromId(), ilCloudConnector\getServiceClass(), getServiceName(), removeNode(), and storeFileTreeToSession().
Here is the call graph for this function:| ilCloudFileTree::downloadFromService | ( | $id | ) |
| $id |
| ilCloudException |
Definition at line 457 of file class.ilCloudFileTree.php.
References $id, $service, ilCloudException\DOWNLOAD_FAILED, getId(), getNodeFromId(), ilCloudConnector\getServiceClass(), and getServiceName().
Here is the call graph for this function:
|
static |
Definition at line 483 of file class.ilCloudFileTree.php.
References $_SESSION.
Referenced by ilCloudPluginDeleteGUI\asyncDeleteItem(), ilObjCloudGUI\asyncGetActionListContent(), ilObjCloudGUI\asyncGetBlock(), ilCloudPluginCreateFolderGUI\createFolder(), ilCloudPluginDeleteGUI\deleteItem(), ilObjCloudGUI\executeCommand(), ilObjCloudGUI\getFile(), and ilCloudPluginUploadGUI\handleFileUpload().
Here is the caller graph for this function:| ilCloudFileTree::getId | ( | ) |
Definition at line 86 of file class.ilCloudFileTree.php.
References $id.
Referenced by addFolderToService(), addItemsFromService(), deleteFromService(), downloadFromService(), and uploadFileToService().
Here is the caller graph for this function:| ilCloudFileTree::getItemList | ( | ) |
Definition at line 254 of file class.ilCloudFileTree.php.
References $item_list.
Referenced by getListForJSONEncode().
Here is the caller graph for this function:| ilCloudFileTree::getListForJSONEncode | ( | ) |
Definition at line 529 of file class.ilCloudFileTree.php.
References $list, $path, and getItemList().
Here is the call graph for this function:| ilCloudFileTree::getNodeFromId | ( | $id | ) |
| $id |
Definition at line 282 of file class.ilCloudFileTree.php.
References $id.
Referenced by addFolderToService(), addIdBasedNode(), addItemsFromService(), addNode(), deleteFromService(), downloadFromService(), removeNode(), and uploadFileToService().
Here is the caller graph for this function:| ilCloudFileTree::getNodeFromPath | ( | $path = "/" | ) |
| string | $path |
Definition at line 263 of file class.ilCloudFileTree.php.
References $path, and isCaseSensitive().
Referenced by addFolderToService(), addIdBasedNode(), addNode(), orderListAlphabet(), removeNode(), setLoadingOfFolderComplete(), and updateFileTree().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCloudFileTree::getRootNode | ( | ) |
Definition at line 143 of file class.ilCloudFileTree.php.
References $root_node.
| ilCloudFileTree::getRootPath | ( | ) |
| ilCloudFileTree::getServiceName | ( | ) |
Definition at line 119 of file class.ilCloudFileTree.php.
References $service_name.
Referenced by addFolderToService(), addItemsFromService(), deleteFromService(), downloadFromService(), and uploadFileToService().
Here is the caller graph for this function:| ilCloudFileTree::getSortedListOfChildren | ( | ilCloudFileNode | $node | ) |
| ilCloudFileNode | $node |
Definition at line 519 of file class.ilCloudFileTree.php.
References ilCloudFileNode\getChildrenPathes().
Here is the call graph for this function:| ilCloudFileTree::isCaseSensitive | ( | ) |
Definition at line 127 of file class.ilCloudFileTree.php.
References $case_sensitive.
Referenced by getNodeFromPath().
Here is the caller graph for this function:| ilCloudFileTree::orderListAlphabet | ( | $path1, | |
| $path2 | |||
| ) |
| $path1 | |
| $path2 |
Definition at line 503 of file class.ilCloudFileTree.php.
References getNodeFromPath().
Here is the call graph for this function:| ilCloudFileTree::removeNode | ( | $path | ) |
| $path |
Definition at line 242 of file class.ilCloudFileTree.php.
References $path, getNodeFromId(), and getNodeFromPath().
Referenced by deleteFromService().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCloudFileTree::setCaseSensitive | ( | $case_sensitive | ) |
| boolean | $case_sensitive |
Definition at line 135 of file class.ilCloudFileTree.php.
References $case_sensitive.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
| int | $id |
Definition at line 78 of file class.ilCloudFileTree.php.
References $id.
Referenced by __construct().
Here is the caller graph for this function:| ilCloudFileTree::setLoadingOfFolderComplete | ( | $path | ) |
| $path |
| ilCloudException |
Definition at line 291 of file class.ilCloudFileTree.php.
References $path, getNodeFromPath(), and ilCloudException\PATH_DOES_NOT_EXIST_IN_FILE_TREE_IN_SESSION.
Here is the call graph for this function:
|
protected |
| string | $path |
Definition at line 95 of file class.ilCloudFileTree.php.
References $path, and ilCloudUtil\normalizePath().
Here is the call graph for this function:
|
protected |
| string | $service_name |
Definition at line 111 of file class.ilCloudFileTree.php.
References $service_name.
Referenced by __construct().
Here is the caller graph for this function:| ilCloudFileTree::storeFileTreeToSession | ( | ) |
Definition at line 474 of file class.ilCloudFileTree.php.
References $_SESSION.
Referenced by addFolderToService(), deleteFromService(), updateFileTree(), and uploadFileToService().
Here is the caller graph for this function:| ilCloudFileTree::updateFileTree | ( | $current_path | ) |
| $current_path |
Definition at line 303 of file class.ilCloudFileTree.php.
References addItemsFromService(), getNodeFromPath(), storeFileTreeToSession(), and updateFileTree().
Referenced by updateFileTree().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCloudFileTree::uploadFileToService | ( | $current_id, | |
| $tmp_name, | |||
| $file_name | |||
| ) |
| $current_id | |
| $tmp_name | |
| $file_name |
| ilCloudException |
Definition at line 401 of file class.ilCloudFileTree.php.
References $service, getId(), getNodeFromId(), ilCloudConnector\getPluginClass(), ilCloudConnector\getServiceClass(), getServiceName(), storeFileTreeToSession(), ilCloudException\UPLOAD_FAILED, and ilCloudException\UPLOAD_FAILED_MAX_FILESIZE.
Here is the call graph for this function:
|
protected |
Definition at line 57 of file class.ilCloudFileTree.php.
Referenced by isCaseSensitive(), and setCaseSensitive().
|
protected |
Definition at line 27 of file class.ilCloudFileTree.php.
Referenced by __construct(), addFolderToService(), addIdBasedNode(), addNode(), createNode(), deleteFromService(), downloadFromService(), getId(), getNodeFromId(), and setId().
|
protected |
Only for better performance.
Definition at line 47 of file class.ilCloudFileTree.php.
|
protected |
Definition at line 42 of file class.ilCloudFileTree.php.
Referenced by getItemList().
|
protected |
Definition at line 32 of file class.ilCloudFileTree.php.
Referenced by getRootNode().
|
protected |
Definition at line 38 of file class.ilCloudFileTree.php.
Referenced by __construct(), and getRootPath().
|
protected |
Definition at line 52 of file class.ilCloudFileTree.php.
Referenced by __construct(), getServiceName(), and setServiceName().