lithium\util\Inflector::reset PHP Method

reset() public static method

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 reset ( )
    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');
    }

Usage Example

 public function setUp()
 {
     $this->_backups['catalogConfig'] = Catalog::config();
     Catalog::reset();
     Catalog::config(array('runtime' => array('adapter' => new Memory())));
     Inflector::reset();
 }
All Usage Examples Of lithium\util\Inflector::reset