symfony API

sfPropelGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

Propel generator.

Inheritence

sfPropelGenerator  <  sfModelGenerator < sfGenerator

Method Summary

Methods inherited from sfModelGenerator

addCredentialCondition , asPhp , configure , escapeString , generate , getActionsBaseClass , getAllFieldNames , getColumnGetter , getFormMultipartHtml , getFormObject , getI18nCatalogue , getI18NString , getLinkToAction , getManyToManyTables , getModelClass , getPluralName , getPrimaryKeys , getPrimaryKeyUrlParams , getRetrieveByPkParamsForAction , getSingularName , getType , getUrlForAction , loadConfiguration , renderField , validateParameters

Methods inherited from sfGenerator

evalTemplate , generate , generatePhpFiles , getGeneratedModuleName , getGeneratorClass , getGeneratorManager , getModuleName , getTheme , initialize , replacePhpMarks , setGeneratedModuleName , setGeneratorClass , setModuleName , setTheme , __construct

Method Details

  • configure () Browse code

    Configures this generator.

  • (array) getAllFieldNames ($withM2M) Browse code

    $withM2M Whether to include m2m fields or not

    Gets all the fields for the current model.

    returns An array of field names

  • (string) getColumnGetter ($column, $developed, $prefix) Browse code

    $column The column name
    $developed true if you want developped method names, false otherwise
    $prefix The prefix value

    Returns the getter either non-developped: 'getFoo' or developped: '$class->getFoo()'.

    returns PHP code

  • (array) getDefaultFieldsConfiguration () Browse code

    Returns the default configuration for fields.

    returns An array of default configuration for all fields

  • (array) getFieldsConfiguration ($context) Browse code

    $context The Context

    Returns the configuration for fields in a given context.

    returns An array of configuration for all the fields in a given context

  • (array) getManyToManyTables () Browse code

    Returns an array of tables that represents a many to many relationship.


    A table is considered to be a m2m table if it has 2 foreign keys that are also primary keys.

    returns An array of tables.

  • (TableMap) getTableMap () Browse code

    Gets the table map for the current model class.

    returns A TableMap instance

  • (string) getType ($column) Browse code

    $column A column object

    Returns the type of a column.

    returns The column type

  • initialize ($generatorManager) Browse code

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • loadMapBuilderClasses () Browse code

    Loads map builder classes.

    throws sfException

  • loadPrimaryKeys () Browse code

    Loads primary keys.

    throws sfException

  • translateColumnName () Browse code