From 20973bf89cd056a83787d5ae72069302a3b3c1c0 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 23 Dec 2008 11:12:18 +0100 Subject: [PATCH] Add XDB::format() that build a string using XDB format: $str = XDB::format('machin {?}', $arg); Signed-off-by: Florent Bruneau --- classes/xdb.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/xdb.php b/classes/xdb.php index a51e210..ac101a6 100644 --- a/classes/xdb.php +++ b/classes/xdb.php @@ -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; -- 2.1.4