cvs: peardoc /fr/package/structures/structures-datagrid example-simple.xml

From: Date: Sun, 06 Nov 2005 07:11:50 +0000
Subject: cvs: peardoc /fr/package/structures/structures-datagrid example-simple.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7148@lists.php.net to get a copy of this message
moosh Sun Nov 6 02:11:50 2005 EDT Modified files: /peardoc/fr/package/structures/structures-datagrid example-simple.xml Log: -synt to en-1.8 1.7 : Changed bindDataMethod example to mimic first example 1.8 : reflected new changes regarding instantiating by reference http://cvs.php.net/diff.php/peardoc/fr/package/structures/structures-datagrid/example-simple.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/fr/package/structures/structures-datagrid/example-simple.xml diff -u peardoc/fr/package/structures/structures-datagrid/example-simple.xml:1.3 peardoc/fr/package/structures/structures-datagrid/example-simple.xml:1.4 --- peardoc/fr/package/structures/structures-datagrid/example-simple.xml:1.3 Fri Nov 4 15:49:14 2005 +++ peardoc/fr/package/structures/structures-datagrid/example-simple.xml Sun Nov 6 02:11:47 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.6 Maintainer: moosh Status: ready --> <refentry id="package.structures.structures-datagrid.example-simple"> <refnamediv> @@ -37,7 +37,7 @@ } // Affiche la grille de données -$grille = new Structures_DataGrid(); +$grille =& new Structures_DataGrid(); $grille->bind($ensembleDeDatas); $grille->render(); ?> @@ -53,11 +53,10 @@ <?php require('Structures/DataGrid.php'); -$grille = new Structures_DataGrid(); +$grille =& new Structures_DataGrid(); // Récupération de mes données -$individu = new Individu_DataObject; -$individu->cheveux = 'rouge'; +$individu = $db->query('SELECT * FROM users'); // liaison à la grille de données $data = Structures_DataGrid_DataSource::create($individu);

« previous php.pear.doc (#7148) next »