PHP-GTK
Thursday, October 23, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkListStore Constructor
GtkListStore::clearnext

Last updated: Sun, 12 May 2013
view this page in English

GtkListStore::append

GtkTreeIter append (array items);

You can use this method if you want to append a complete row of data at the end of the list store. The items has to be of the same size as the number of columns in the store, and the type of each array entry has to be that of relative model column.

The function returns the iterator of the inserted row, which you can use to refer to it after insertion.

Example 95. Append some rows to a list store

<?php
//Create new store with two columns
$store = new GtkListStore(Gobject::TYPE_STRING, Gobject::TYPE_LONG);
 
//append one row
$store->append(array('Tokio', 34100000));
//append another row
$store->append(array('Mexico city', 22650000));
?>

See also: prepend() , insert()


User Contributed Notes
gtk.gtkliststore.method.append.php
add a note about notes
There are no user contributed notes for this page.


previousGtkListStore Constructor
GtkListStore::clearnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:59 2013 CEST