Add XDB::format() that build a string using XDB format:
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 23 Dec 2008 10:12:18 +0000 (11:12 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 23 Dec 2008 10:12:18 +0000 (11:12 +0100)
$str = XDB::format('machin {?}', $arg);

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

index a51e210..ac101a6 100644 (file)
@@ -130,6 +130,11 @@ class XDB
         return new XOrgDBResult(XDB::_prepare(func_get_args()));
     }
 
+    public static function format()
+    {
+        return XDB::_prepare(func_get_args());
+    }
+
     public static function execute()
     {
         global $globals;