URL: https://linuxfr.org/users/code34/journaux/phpmyobject-nouvelle-version-002 Title: PhpMyObject - nouvelle version 0.02 Authors: Code34 Date: 2007年06月03日T17:10:06+02:00 Tags: Score: 0 J'ai le plaisir de vous annoncer une nouvelle release de Phpmyobject. Le code a été réécrit à 70% Petit rappel: ========= Phpmyobject permet de générer des objets php en mappant des bases mysql Les grandes nouveautés de cette version: ================================= - Un parser SQL - Un nouveau controleur qui gère l'unicité des objets en se basant sur les primary keys beaucoup plus léger et performant - Un mappage qui permet de manipuler plusieurs types d'objets - des interfaces controleur et parser Cette version marche bien, et je vous invite à l'essayer dès maintenant. un extrait du README: $toto = new mycontroler(); $toto->queryControler("SELECT * from db_user,db_town where db_user.town_id=db_town.town_id;"); $map = $toto->getMap(); In this example, the controler will do: one object user, and one object town you can after this manipulate them like this: foreach ($map as $row){ echo($row[id]); /* will print the linking join id */ echo($row[table]); /* will print the object type refer to table */ echo($row[object]); /* will print the object */ } object can be acces like this: ============================= $row[object]->getListAttribute(); /* will return all the attribute of the object */ $row[object]->getAttribute($name); /* will return the value of one attribute */ $row[object]->setAttribute($attributename, $attributevalue) /* will set the attribute value */ [http://sourceforge.net/project/showfiles.php?group_id=194398](http://sourceforge.net/project/showfiles.php?group_id=194398)

AltStyle によって変換されたページ (->オリジナル) /