|
| | __construct ($item, $parent, $attributes='', $display=true) |
| | Constructor.
|
| |
| | create_children (&$records, &$children, $thisrecordid) |
| | Recurse down tree creating list_items, called from moodle_list::list_from_records.
|
| |
| | image_icon ($action, $url, $icon) |
| | Return image icon HTML.
|
| |
| | image_spacer () |
| | Return image spacer HTML.
|
| |
| | item_html ($extraargs=array()) |
| | Output the html just for this item.
|
| |
| | set_icon_html ($first, $last, $lastitem) |
| | Set icon HTML.
|
| |
| | set_parent ($parent) |
| | Set parent list.
|
| |
| | 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 |
| |
- Copyright
- Jamie Pratt
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Deprecated
- Since Moodle 4.5 MDL-72397. This is no longer used in core code.
- Todo
- Final removal in Moodle 6.0 MDL-80804.
◆ __construct()
| list_item::__construct |
( |
| $item, |
|
|
| $parent, |
|
|
| $attributes = '', |
|
|
| $display = true ) |
Constructor.
- Parameters
-
| mixed | $item | fragment of html for list item or record |
| object | $parent | reference to parent of this item |
| string | $attributes | attributes for li tag |
| boolean | $display | whether this item is displayed. Some items may be loaded so we have a complete structure in memory to work with for actions but are not displayed. |
- Return values
-
- Deprecated
- Since Moodle 4.5 MDL-72397. This is no longer used in core code.
- Todo
- Final removal in Moodle 6.0 MDL-80804.
◆ create_children()
| list_item::create_children |
( |
& | $records, |
|
|
& | $children, |
|
|
| $thisrecordid ) |
Recurse down tree creating list_items, called from moodle_list::list_from_records.
- Parameters
-
| array | $records | |
| array | $children | |
| integer | $thisrecordid | |
- Deprecated
- Since Moodle 4.5 MDL-72397. This is no longer used in core code.
- Todo
- Final removal in Moodle 6.0 MDL-80804.
◆ image_icon()
| list_item::image_icon |
( |
| $action, |
|
|
| $url, |
|
|
| $icon ) |
◆ image_spacer()
| list_item::image_spacer |
( |
| ) |
|
◆ item_html()
| list_item::item_html |
( |
| $extraargs = array() | ) |
|
◆ set_icon_html()
| list_item::set_icon_html |
( |
| $first, |
|
|
| $last, |
|
|
| $lastitem ) |
◆ set_parent()
| list_item::set_parent |
( |
| $parent | ) |
|
◆ to_html()
| list_item::to_html |
( |
| $indent = 0, |
|
|
| $extraargs = array() ) |
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
-
- Deprecated
- Since Moodle 4.5 MDL-72397. This is no longer used in core code.
- Todo
- Final removal in Moodle 6.0 MDL-80804.
The documentation for this class was generated from the following file: