symfony API

sfPropelCrudGenerator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 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 , 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 ($column, $params = array()) Browse code

    $column The column name
    $params The parameters

    Returns HTML code for a column in edit mode.

    returns HTML code

  • (string) getColumnFilterTag ($column, $params = array()) Browse code

    $column The column name
    $params The parameters

    Returns HTML code for a column in filter mode.

    returns HTML code

  • (string) getColumnGetter ($column, $developed = false, $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: &apos;getFoo&apos; or developped: &apos;$class-&gt;getFoo()&apos;.

    returns PHP code

  • (string) getColumnListTag ($column, $params = array()) Browse code

    $column The column name
    $params The parameters

    Returns HTML code for a column in list mode.

    returns HTML code

  • (string) getCrudColumnEditTag ($column, $params = array()) Browse code

    $column The column name
    $params The parameters

    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 = array()) 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 ($column) Browse code

    $column

  • (string) getUrlForAction ($action) Browse code

    $action

    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