|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($item, $parent, $attributes= '', $display=true) | |
| item_html ($extraargs=array()) | |
| to_html ($indent=0, $extraargs=array()) | |
| set_icon_html ($first, $last, $lastitem) | |
| image_icon ($action, $url, $icon) | |
| image_spacer () | |
| create_children (&$records, &$children, $thisrecordid) | |
| set_parent ($parent) | |
Data Fields | |
| $id | |
| $name | |
| $item | |
| $fieldnamesname = 'name' | |
| $attributes | |
| $display | |
| $icons = array() | |
| $parentlist | |
| $children | |
Definition at line 465 of file listlib.php.
| __construct | ( | $ | item, |
| $ | parent, | ||
| $ | attributes = '', |
||
| $ | display = true |
||
| ) |
Constructor
| 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. |
Definition at line 494 of file listlib.php.
| create_children | ( | &$ | records, |
| &$ | children, | ||
| $ | thisrecordid | ||
| ) |
Recurse down tree creating list_items, called from moodle_list::list_from_records
| array | $records | |
| array | $children | |
| integer | $thisrecordid |
Definition at line 605 of file listlib.php.
| image_icon | ( | $ | action, |
| $ | url, | ||
| $ | icon | ||
| ) |
Definition at line 587 of file listlib.php.


| image_spacer | ( | ) |
Definition at line 593 of file listlib.php.
Output the html just for this item. Called by to_html which adds html for children.
Reimplemented in question_category_list_item.
Definition at line 512 of file listlib.php.
| set_icon_html | ( | $ | first, |
| $ | last, | ||
| $ | lastitem | ||
| ) |
| set_parent | ( | $ | parent | ) |
Definition at line 616 of file listlib.php.
Returns html
| integer | $indent | |
| array | $extraargs | any extra data that is needed to print the list item may be used by sub class. |
Definition at line 531 of file listlib.php.
Definition at line 475 of file listlib.php.
| $children |
Definition at line 483 of file listlib.php.
Definition at line 476 of file listlib.php.
| $fieldnamesname = 'name' |
Definition at line 474 of file listlib.php.
| $icons = array() |
Definition at line 477 of file listlib.php.
| $id |
Definition at line 467 of file listlib.php.
| $item |
Definition at line 473 of file listlib.php.
| $name |
Definition at line 470 of file listlib.php.
| $parentlist |
Definition at line 480 of file listlib.php.