public static function getTableName($cls=null)
    {
        $fullcls = $cls ? $cls : get_called_class();

        if (array_key_exists($fullcls, self::$_table_name)) {
            return self::$_table_name[$fullcls];
        }

        $cls = self::_extractClassName($fullcls);

        $name = Inflections::pluralize($cls);
        if (self::isIgnoringCase()) {
            $name = strtolower($name);
        }
        return $name;
    }