Can pass a FlagSet objet to XDB::...({?}). This will fill the corresponding
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 15 Jun 2008 18:42:00 +0000 (20:42 +0200)
committerVincent Zanotti <vincent.zanotti@polytechnique.org>
Mon, 16 Jun 2008 01:42:31 +0000 (03:42 +0200)
filed with ->flags()

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xdb.php

index 5bb1fef..ad63364 100644 (file)
@@ -166,6 +166,9 @@ class XDB
             return 'NULL';
 
           case 'object':
+            if ($var instanceof FlagSet) {
+                return "'" . addslashes($var->flags()) . "'";
+            }
           case 'array':
             return "'".addslashes(serialize($var))."'";