Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
mod_folder_renderer Class Reference
Inheritance diagram for mod_folder_renderer:

Public Member Functions

 display_folder (stdClass $folder)
 Returns html to display the content of mod_folder (Description, folder files and optionally Edit button)
 

Protected Member Functions

 htmllize_tree ()
 
 renderable_tree_elements (folder_tree $tree, array $dir)
 Internal function - Creates elements structure suitable for mod_folder/folder template.
 

Member Function Documentation

◆ display_folder()

mod_folder_renderer::display_folder ( stdClass $folder)

Returns html to display the content of mod_folder (Description, folder files and optionally Edit button)

Parameters
stdClass$folderrecord from 'folder' table (please note it may not contain fields 'revision' and 'timemodified')
Return values
string

◆ htmllize_tree()

mod_folder_renderer::htmllize_tree ( )
protected
Deprecated
since Moodle 4.3

◆ renderable_tree_elements()

mod_folder_renderer::renderable_tree_elements ( folder_tree $tree,
array $dir )
protected

Internal function - Creates elements structure suitable for mod_folder/folder template.

Parameters
folder_tree$treeThe folder tree to work with.
array$dirThe subdir and files structure to convert into a tree.
Return values
arrayThe structure to be rendered by mod_folder/folder template.

The documentation for this class was generated from the following file: