symfony API

sfPropelCrudGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 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.

Propel CRUD generator.

Inheritence

sfPropelAdminGenerator  <  sfPropelCrudGenerator  <  sfAdminGenerator < sfCrudGenerator < sfGenerator

Method Summary

Methods inherited from sfAdminGenerator

addCredentialCondition , escapeString , getButtonToAction , getColumnCategories , getColumnEditTag , getColumnFilterTag , getColumnListTag , getColumns , getFieldParameterValue , getFormObject , getHelp , getHelpAsIcon , getHiddenFields , getHiddenFieldsAsString , getI18NString , getLastNonHiddenField , getLinkToAction , getOptionToAction , getParameterValue , getValueFromKey , replaceConstants , splitFlag

Methods inherited from sfCrudGenerator

generate , getClassName , getColumnGetter , getColumnListTag , getCrudColumnEditTag , getMap , getMethodParamsForGetOrCreate , getObjectTagParams , getPeerClassName , getPHPObjectHelper , getPluralName , getPrimaryKey , getPrimaryKeyIsSet , getPrimaryKeyUrlParams , getRelatedClassName , getRetrieveByPkParamsForAction , getRetrieveByPkParamsForEdit , getRetrieveByPkParamsForGetOrCreate , getSingularName , getTableMap , getTestPksForGetOrCreate , loadMapBuilderClasses , loadPrimaryKeys , setScaffoldingClassName

Methods inherited from sfGenerator

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

Method Details

  • (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

  • (string) getPHPObjectHelper ($helperName, $column, $params, $localParams) Browse code

    $helperName The helper name
    $column The column name
    $params An array of parameters
    $localParams An array of local parameters

    Generates a PHP call to an object helper.

    returns PHP code

  • getRelatedClassName () Browse code

  • initialize ($generatorManager) Browse code

    $generatorManager A sfGeneratorManager instance

    Initializes the current sfGenerator instance.

  • loadMapBuilderClasses () Browse code

    Loads map builder classes.


    This method is ORM dependant.

    throws sfException

  • loadPrimaryKeys () Browse code

    Loads primary keys.


    This method is ORM dependant.

    throws sfException