From: Chuck Hagenbuch Date: Mon, 26 Jan 2009 02:40:01 +0000 (-0500) Subject: add a static numerize method as a shortcut for instantiating the numerizer X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f8e378fd7bd993c7738df0703c612ac40605052e;p=horde.git add a static numerize method as a shortcut for instantiating the numerizer --- diff --git a/framework/Date_Parser/lib/Horde/Support/Numerizer.php b/framework/Date_Parser/lib/Horde/Support/Numerizer.php index 062f7046f..9f7317af3 100644 --- a/framework/Date_Parser/lib/Horde/Support/Numerizer.php +++ b/framework/Date_Parser/lib/Horde/Support/Numerizer.php @@ -4,6 +4,11 @@ */ class Horde_Support_Numerizer { + public static function numerize($string, $args = array()) + { + return self::factory($args)->numerize($string); + } + public static function factory($args = array()) { $locale = isset($args['locale']) ? $args['locale'] : null;