From: Florent Bruneau Date: Tue, 23 Dec 2008 10:12:18 +0000 (+0100) Subject: Add XDB::format() that build a string using XDB format: X-Git-Tag: core/1.0.1~45 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=20973bf89cd056a83787d5ae72069302a3b3c1c0;p=platal.git Add XDB::format() that build a string using XDB format: $str = XDB::format('machin {?}', $arg); Signed-off-by: Florent Bruneau --- 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;