symfony API

sfInflector Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

@package symfony

Method Summary

  • string camelize()
    Returns a camelized string from a lower case and underscored string by replaceing slash with
  • string classify()
    Returns model class name for given database table.
  • string demodulize()
    Returns classname::module with classname:: stripped off.
  • strong foreign_key(, )
    Returns classname in underscored form, with "_id" tacked on at the end.
  • string humanize()
    Returns a human-readable string from a lower case and underscored word by replacing underscores
  • string tableize()
    Returns corresponding table name for given classname.
  • string underscore()
    Returns an underscore-syntaxed version or the CamelCased string.

Method Details

  • (string) camelize () Browse code

    Returns a camelized string from a lower case and underscored string by replaceing slash with

    double-colon and upper-casing each letter preceded by an underscore.

    returns Camelized string.

  • (string) classify () Browse code

    Returns model class name for given database table.

    returns Classified table name.

  • (string) demodulize () Browse code

    Returns classname::module with classname:: stripped off.

    returns Module name.

  • (strong) foreign_key (, ) Browse code

    Returns classname in underscored form, with "_id" tacked on at the end.

    This is for use in dealing with foreign keys in the database.

    returns Foreign key

  • (string) humanize () Browse code

    Returns a human-readable string from a lower case and underscored word by replacing underscores

    with a space, and by upper-casing the initial characters.

    returns Human-readable string.

  • (string) tableize () Browse code

    Returns corresponding table name for given classname.

    returns Name of the databse table for given class.

  • (string) underscore () Browse code

    Returns an underscore-syntaxed version or the CamelCased string.

    returns Underscored string.