Public Member Functions |
| | __construct ($contextid, $component, $filearea, $itemid) |
| | is_directory () |
| | delete () |
| | add_to_curl_request (&$curlrequest, $key) |
| | get_content_file_handle () |
| | readfile () |
| | get_content () |
| | copy_content_to ($pathname) |
| | list_files (file_packer $packer) |
| | extract_to_pathname (file_packer $packer, $pathname) |
| | extract_to_storage (file_packer $packer, $contextid, $component, $filearea, $itemid, $pathbase, $userid=NULL) |
| | archive_file (file_archive $filearch, $archivepath) |
| | get_parent_directory () |
| | get_contextid () |
| | get_component () |
| | get_filearea () |
| | get_itemid () |
| | get_filepath () |
| | get_filename () |
| | get_userid () |
| | get_filesize () |
| | get_mimetype () |
| | get_timecreated () |
| | get_timemodified () |
| | get_status () |
| | get_id () |
| | get_contenthash () |
| | get_pathnamehash () |
| | get_license () |
| | get_author () |
| | get_source () |
| | get_sortorder () |
Protected Attributes |
| | $contextid |
| | $component |
| | $filearea |
| | $itemid |
Detailed Description
Definition at line 39 of file virtual_root_file.php.
Constructor & Destructor Documentation
| __construct |
( |
$ |
contextid, |
|
|
$ |
component, |
|
|
$ |
filearea, |
|
|
$ |
itemid |
|
) |
| |
Member Function Documentation
adds this file path to a curl request (POST only)
- Parameters:
-
| curl | $curlrequest | the curl request object |
| string | $key | what key to use in the POST request |
Definition at line 77 of file virtual_root_file.php.
Add file/directory into archive
- Parameters:
-
| object | $filearch | |
| string | $archivepath | pathname in archive |
- Returns:
- bool success
Definition at line 154 of file virtual_root_file.php.
Copy content of file to given pathname
- Parameters:
-
| string | $pathname | real path to new file |
- Returns:
- bool success
Definition at line 110 of file virtual_root_file.php.
Extract file to given file path (real OS filesystem), existing files are overwrited
- Parameters:
-
| object | $file_packer | |
| string | $pathname | target directory |
- Returns:
- mixed list of processed files; false if error
Definition at line 129 of file virtual_root_file.php.
Extract file to given file path (real OS filesystem), existing files are overwrited
- Parameters:
-
| object | $file_packer | |
| int | $contextid | |
| string | $component | |
| string | $filearea | |
| int | $itemid | |
| string | $pathbase | |
| int | $userid | |
- Returns:
- mixed list of processed files; false if error
Definition at line 144 of file virtual_root_file.php.
Returns file handle - read only mode, no writing allowed into pool files!
- Returns:
- file handle
Definition at line 85 of file virtual_root_file.php.
Field Documentation
The documentation for this class was generated from the following file: