|
| 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.
|
|
|
| $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 |
|
◆ 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
-
- Return values
-
- Exceptions
-
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 | $first | Is the first on the list. |
bool | $last | Is the last on the list. |
list_item | $lastitem | Last item. |
Reimplemented from list_item.
◆ to_html()
list_item::to_html |
( |
| $indent = 0, |
|
|
| $extraargs = array() ) |
|
inherited |
Returns html.
- Parameters
-
integer | $indent | |
array | $extraargs | any extra data that is needed to print the list item may be used by sub class. |
- Return values
-
The documentation for this class was generated from the following file:
- question/bank/managecategories/classes/question_category_list_item.php