![]() More.įile_reset_sortorder ($contextid, $component, $filearea, $itemid=false) More.įile_replace_file_area_in_text ($file, $newid, $text, $forcehttps=false) Removes those files from the user drafts filearea which are not referenced in the editor text. ![]() More.įile_postupdate_standard_editor ($data, $field, array $options, $ context, $component=null, $filearea=null, $itemid=null)įile_postupdate_standard_filemanager ($data, $field, array $options, $ context, $component, $filearea, $itemid)įile_prepare_draft_area (&$draftitemid, $contextid, $component, $filearea, $itemid, array $options=null, $text=null)įile_prepare_standard_editor ($data, $field, array $options, $ context=null, $component=null, $filearea=null, $itemid=null)įile_prepare_standard_filemanager ($data, $field, array $options, $ context=null, $component=null, $filearea=null, $itemid=null)įile_remove_editor_orphaned_files ($editor) This function delegates file serving to individual plugins. More.įile_pluginfile ($relativepath, $forcedownload, $preview=null, $offline=false, $embed=false) Overwrite an existing file in a draft area. More.įile_overwrite_existing_draftfile ( stored_file $newfile, stored_file $existingfile) More.įile_mimetype_icon ($mimetype, $size=NULL)įile_mimetype_in_typegroup ($mimetype, $groups)Ĭhecks if mimetype $mimetype belongs to one of the groups $groups. More.įile_merge_draft_areas ($draftitemid, $usercontextid, $text, $forcehttps=false)įile_merge_files_from_draft_area_into_filearea ($draftitemid, $contextid, $component, $filearea, $itemid, array $options=null)Īdd files from a draft area into a final area. More.įile_merge_draft_area_into_draft_area ($getfromdraftid, $mergeintodraftid) Tells whether the filename is executable. Returns whether a draft area has exceeded/will exceed its size limit. More.įile_is_draft_area_limit_reached ($draftitemid, $areamaxbytes, $newfilesize=0, $includereferences=false) Get used space of files $DB stdClass $USER. Returns array of elements of type $element in type group(s) More. More.įile_get_submitted_draft_itemid ($elname) Returns information about files in an area. More.įile_get_file_area_info ($contextid, $component, $filearea, $itemid=0, $filepath='/') Returns information about files in a draft area. More.įile_get_draft_area_info ($draftitemid, $filepath='/') Generate a folder tree of draft area of current USER recursively. More.įile_get_drafarea_folders ($draftitemid, $filepath, &$data) Listing all files (including folders) in current path (draft area) used by file manager. More.įile_get_drafarea_files ($draftitemid, $filepath='/') Returns all of the files in the draftarea. More.įile_get_all_files_in_draftarea (int $draftitemid, string $filepath='/') Return the relative icon path for a folder image. Return the relative icon path for a given file. More.įile_encode_url ($urlbase, $path, $forcedownload=false, $https=false)įile_extension_icon ($filename, $size=NULL)įile_extension_in_typegroup ($filename, $groups, $checktype=false)Ĭhecks if file with name $filename has one of the extensions in groups $groups. More.Ĭonvert any string to a valid filepath. More.įile_copy_file_to_file_area ($file, $filename, $itemid)Ĭopies a file from one file area to another. More.ĭownload_file_content ($url, $headers=null, $postdata=null, $fullresponse=false, $timeout=300, $connecttimeout=20, $skipcertverify=false, $tofile=NULL, $calctimeout=false)įile_area_contains_subdirs ( context $ context, $component, $filearea, $itemid)ĭetects if area contains subdirs, this is intended for file areas that are attached to content migrated from 1.x where subdirs were allowed everywhere. This class is used by cURL class, use case: More.īyteserving_send_file ($handle, $mimetype, $ranges, $filesize)
0 Comments
Leave a Reply. |