Error: Failed to load processor ParentWiki
No macro or processor named 'ParentWiki' found

Error: Failed to load processor SubWiki
No macro or processor named 'SubWiki' found

TList implements an integer-indexed collection class.

You can access, append, insert, remove an item by using {@link itemAt}, {@link add}, {@link addAt}, {@link remove}, and {@link removeAt}. To get the number of the items in the list, use {@link getCount}. TList can also be used like a regular array as follows,

$list[]=$item;  // append at the end
$list[$index]=$item; // $index must be between 0 and $list->Count
2unset($list[$index]); // remove the item at $index
if(isset($list[$index])) // if the list has an item at $index
foreach($list as $index=>$item) // traverse each item in the list

Note, count($list) will always return 1. You should use {@link getCount()} to determine the number of items in the list.

To extend TList by doing additional operations with each added or removed item, you can override {@link addedItem} and {@link removedItem}. You can also override {@link canAddItem} and {@link canRemoveItem} to control whether to add or remove a particular item.

source:trunk/framework/Collections/TList.php