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;
    }
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;
    }
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 ; }
Returns the table name.
If not specified one, get the current class name and pluralize it.

@param string $cls class name

@return string table name
Returns the table name . If not specified one get the current class name and pluralize it .