| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Library of functions for forum outside of the core api
| File Size: | 568 lines (21 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
forum_portfolio_caller:: (14 methods):
expected_callbackargs()
__construct()
load_data()
get_return_url()
get_navigation()
prepare_package()
prepare_post_leap2a()
copy_files()
prepare_post()
get_sha1()
expected_time()
check_permissions()
display_name()
base_supported_formats()
forum_file_info_container:: (10 methods):
__construct()
get_params()
is_writable()
is_directory()
get_visible_name()
get_children()
get_filtered_children()
get_non_empty_children()
count_non_empty_children()
get_parent()
Class: forum_portfolio_caller - X-Ref
| expected_callbackargs() X-Ref |
return: array |
| __construct($callbackargs) X-Ref |
param: array $callbackargs |
| load_data() X-Ref |
| get_return_url() X-Ref |
return: string |
| get_navigation() X-Ref |
return: array |
| prepare_package() X-Ref |
| either a whole discussion a single post, with or without attachment or just an attachment with no post return: mixed |
| prepare_post_leap2a(portfolio_format_leap2a_writer $leapwriter, $post, $posthtml) X-Ref |
| helper function to add a leap2a entry element that corresponds to a single forum post, including any attachments the entry/ies are added directly to the leapwriter, which is passed by ref param: portfolio_format_leap2a_writer $leapwriter writer object to add entries to param: object $post the stdclass object representing the database record param: string $posthtml the content of the post (prepared by {@link prepare_post} return: int id of new entry |
| copy_files($files, $justone=false) X-Ref |
param: array $files param: mixed $justone false of id of single file to copy return: bool|void |
| prepare_post($post, $fileoutputextras=null) X-Ref |
| this is a very cut down version of what is in forum_make_mail_post param: int $post return: string |
| get_sha1() X-Ref |
return: string |
| expected_time() X-Ref |
| No description |
| check_permissions() X-Ref |
return: bool |
| display_name() X-Ref |
return: string |
| base_supported_formats() X-Ref |
| No description |
Class: forum_file_info_container - X-Ref
Class representing the virtual node with all itemids in the file browser| __construct($browser, $course, $cm, $context, $areas, $filearea) X-Ref |
| Constructor (in case you did not realize it ;-) param: file_browser $browser param: stdClass $course param: stdClass $cm param: stdClass $context param: array $areas param: string $filearea |
| get_params() X-Ref |
return: array with keys contextid, filearea, itemid, filepath and filename |
| is_writable() X-Ref |
| Can new files or directories be added via the file browser return: bool |
| is_directory() X-Ref |
| Should this node be considered as a folder in the file browser return: bool |
| get_visible_name() X-Ref |
| Returns localised visible name of this node return: string |
| get_children() X-Ref |
| Returns list of children nodes return: array of file_info instances |
| get_filtered_children($extensions = '*', $countonly = false, $returnemptyfolders = false) X-Ref |
| Help function to return files matching extensions or their count param: string|array $extensions, either '*' or array of lowercase extensions, i.e. array('.gif','.jpg') param: bool|int $countonly if false returns the children, if an int returns just the param: bool $returnemptyfolders if true returns items that don't have matching files inside return: array|int array of file_info instances or the count |
| get_non_empty_children($extensions = '*') X-Ref |
| Returns list of children which are either files matching the specified extensions or folders that contain at least one such file. param: string|array $extensions, either '*' or array of lowercase extensions, i.e. array('.gif','.jpg') return: array of file_info instances |
| count_non_empty_children($extensions = '*', $limit = 1) X-Ref |
| Returns the number of children which are either files matching the specified extensions or folders containing at least one such file. param: string|array $extensions, for example '*' or array('.gif','.jpg') param: int $limit stop counting after at least $limit non-empty children are found return: int |
| get_parent() X-Ref |
| Returns parent file_info instance return: file_info or null for root |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |