add a static numerize method as a shortcut for instantiating the numerizer
authorChuck Hagenbuch <chuck@horde.org>
Mon, 26 Jan 2009 02:40:01 +0000 (21:40 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Mon, 26 Jan 2009 02:40:01 +0000 (21:40 -0500)
framework/Date_Parser/lib/Horde/Support/Numerizer.php

index 062f704..9f7317a 100644 (file)
@@ -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;