symfony API

sfPropelCrudGenerator 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 CRUD generator.

Inheritence

sfPropelAdminGenerator  <  sfPropelCrudGenerator  <  sfAdminGenerator < sfCrudGenerator < sfGenerator

Method Summary

Methods inherited from sfAdminGenerator

addCredentialCondition , escapeString , getButtonToAction , getColumnCategories , getColumnEditTag , getColumnFilterTag , getColumnListTag , getColumns , getFieldParameterValue , getFormClassName , getFormMultipartHtml , 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 , 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) getColumnEditTag (, ) Browse code

    Returns HTML code for a column in edit mode.

    returns HTML code

  • (string) getColumnFilterTag (, ) Browse code

    Returns HTML code for a column in filter mode.

    returns HTML code

  • (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) getColumnListTag (, ) Browse code

    Returns HTML code for a column in list mode.

    returns HTML code

  • (string) getCrudColumnEditTag (, ) Browse code

    Returns HTML code for a column in edit mode.

    returns HTML code

  • (string) getPeerClassName () Browse code

    Gets the Peer class name.

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

  • (string) getUrlForAction () Browse code

    Returns the URL for a given action.

    returns The URL related to a given action

  • 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

  • setScaffoldingClassName ($className) Browse code

    $className class name

    Sets the class name to use for scaffolding