|
| | __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) |
| |
|
| image_spacer () |
| |
| | item_html ($extraargs=array()) |
| | Output the html just for this item.
|
| |
| | set_icon_html ($first, $last, $lastitem) |
| |
|
| 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 |
| |
- Copyright
- Jamie Pratt
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __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
-
◆ 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 | |
◆ item_html()
| list_item::item_html |
( |
|
$extraargs = array() | ) |
|
◆ set_icon_html()
| list_item::set_icon_html |
( |
|
$first, |
|
|
|
$last, |
|
|
|
$lastitem |
|
) |
| |
◆ 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
-
The documentation for this class was generated from the following file: