When I wanted to use a GtkList widget I noticed that in PCC 1.6.1 there are none of the insertig methods (insert_items, append_items, prepend_items) are implemented! At least the append_items method should been there as listed for the phpgtk manual at http://gtk.php.net/manual/en/gtk.gtklist.method.append_items.php
Other functions listed at http://www.gtk.org/tutorial1.2/gtk_tut-31.html would be useful, too.
I know that I may use a CList, but a CList is some kinde of overdressed for this use.
Example Code:
$this->personel_index = unserialize(file_get_contents(DATA_DIRECTORY.'/index.ser'));
foreach($this->personel_index as $uid => $name)
{
$this->personeldata[$uid] = array('ListItem' => new GtkListItem($name));
$this->personellist->insert_items(array($this->personeldata[$uid]['ListItem']));
}
Result:
Runtime error in file C:\Program Files\Roadsend\projects\time-puncher\main.php on line 51: Calling method GtkList->insert_items: undefined method.