Example #1
0
 /**
  * Clears local in-memory caches.  Can be used to force a full-cache clear when updating
  * inflection rules mid-way through request execution.
  */
 public static function reset()
 {
     static::$_singularized = static::$_pluralized = array();
     static::$_camelized = static::$_underscored = array();
     static::$_humanized = array();
     static::$_plural['regexUninflected'] = static::$_singular['regexUninflected'] = null;
     static::$_plural['regexIrregular'] = static::$_singular['regexIrregular'] = null;
     static::$_transliteration = array('/à|á|å|â/' => 'a', '/è|é|ê|ẽ|ë/' => 'e', '/ì|í|î/' => 'i', '/ò|ó|ô|ø/' => 'o', '/ù|ú|ů|û/' => 'u', '/ç|ć|č/' => 'c', '/đ/' => 'dj', '/š/' => 's', '/ž/' => 'z', '/ñ/' => 'n', '/ä|æ/' => 'ae', '/ö/' => 'oe', '/ü/' => 'ue', '/Ä/' => 'Ae', '/Ü/' => 'Ue', '/Ö/' => 'Oe', '/ß/' => 'ss', '/Č|Ć/' => 'C', '/DŽ/' => 'Dz', '/Đ/' => 'Dj', '/Š/' => 'S', '/Ž/' => 'Z');
 }
 /**
  * Clears local in-memory caches.  Can be used to force a full-cache clear when updating
  * inflection rules mid-way through request execution.
  *
  * @return void
  */
 public static function reset()
 {
     static::$_singularized = static::$_pluralized = array();
     static::$_camelized = static::$_underscored = array();
     static::$_plural['regexUninflected'] = static::$_singular['regexUninflected'] = null;
     static::$_plural['regexIrregular'] = static::$_singular['regexIrregular'] = null;
 }
Example #3
0
 /**
  * Clears local in-memory caches.  Can be used to force a full-cache clear when updating
  * inflection rules mid-way through request execution.
  *
  * @return void
  */
 public static function reset()
 {
     static::$_singularized = static::$_pluralized = array();
     static::$_camelized = static::$_underscored = array();
     static::$_plural['regexUninflected'] = static::$_singular['regexUninflected'] = null;
     static::$_plural['regexIrregular'] = static::$_singular['regexIrregular'] = null;
     static::$_transliteration = array('/à|á|å|â/' => 'a', '/è|é|ê|ẽ|ë/' => 'e', '/ì|í|î/' => 'i', '/ò|ó|ô|ø/' => 'o', '/ù|ú|ů|û/' => 'u', '/ç/' => 'c', '/ñ/' => 'n', '/ä|æ/' => 'ae', '/ö/' => 'oe', '/ü/' => 'ue', '/Ä/' => 'Ae', '/Ü/' => 'Ue', '/Ö/' => 'Oe', '/ß/' => 'ss');
 }