Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
question_category_list_item Class Reference

An item in a list of question categories. More...

Inheritance diagram for 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. More...
 
 image_icon ($action, $url, $icon)
 
 image_spacer ()
 
 item_html ($extraargs=array())
 Output the html just for this item. More...
 
 set_icon_html ($first, $last, $lastitem)
 
 set_parent ($parent)
 
 to_html ($indent=0, $extraargs=array())
 Returns html. More...
 

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
 

Detailed Description

An item in a list of question categories.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

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()

question_category_list_item::item_html (   $extraargs = array())

Output the html just for this item.

Called by to_html which adds html for children.

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: