Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
qbank_managecategories\question_category_list_item Class Reference
Inheritance diagram for qbank_managecategories\question_category_list_item:
list_item

Public Member Functions

 create_children (&$records, &$children, $thisrecordid)
 Recurse down tree creating list_items, called from moodle_list\list_from_records.
 
 image_icon ($action, $url, $icon)
 
 image_spacer ()
 
 item_html ($extraargs=[])
 Override item_html function.
 
 set_icon_html ($first, $last, $lastitem)
 Override set_icon_html function.
 
 set_parent ($parent)
 
 to_html ($indent=0, $extraargs=array())
 Returns html.
 

Public Attributes

 $attributes
 
moodle_list $children
 Set if there are any children of this listitem.
 
 $display
 
 $fieldnamesname = 'name'
 
 $icons = array()
 
integer $id
 id of record, used if list is editable.
 
mixed $item
 The object or string representing this item.
 
string $name
 name of this item, used if list is editable.
 
moodle_list $parentlist
 

Member Function Documentation

◆ create_children()

list_item::create_children ( & $records,
& $children,
$thisrecordid )
inherited

Recurse down tree creating list_items, called from moodle_list\list_from_records.

Parameters
array$records
array$children
integer$thisrecordid

◆ item_html()

qbank_managecategories\question_category_list_item::item_html ( $extraargs = [])

Override item_html function.

Parameters
array$extraargs
Return values
stringItem html.
Exceptions
moodle_exception

Reimplemented from list_item.

◆ set_icon_html()

qbank_managecategories\question_category_list_item::set_icon_html ( $first,
$last,
$lastitem )

Override set_icon_html function.

Parameters
bool$firstIs the first on the list.
bool$lastIs the last on the list.
list_item$lastitemLast item.

Reimplemented from list_item.

◆ to_html()

list_item::to_html ( $indent = 0,
$extraargs = array() )
inherited

Returns html.

Parameters
integer$indent
array$extraargsany extra data that is needed to print the list item may be used by sub class.
Return values
stringhtml

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