symfony API

sfAdminGenerator 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.

Admin generator.

Inheritence

sfPropelCrudGenerator  <  sfAdminGenerator  <  sfCrudGenerator < sfGenerator

Method Summary

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) addCredentialCondition ($content, $params) Browse code

    $content The content
    $params The parameters

    Wraps content with a credential condition.

    returns HTML code

  • escapeString ($string) Browse code

    Escapes a string.

  • (string) getButtonToAction ($actionName, $params, $pk_link) Browse code

    $actionName The action name
    $params The parameters
    $pk_link Whether to add a primary key link or not

    Returns HTML code for an action button.

    returns HTML code

  • (array) getColumnCategories ($paramName) Browse code

    $paramName The parameter name

    Returns all column categories.

    returns The column categories

  • (string) getColumnEditTag ($column, $params) 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) Browse code

    $column The column name
    $params The parameters

    Returns HTML code for a column in filter mode.

    returns HTML code

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

    $column The column name
    $params The parameters

    Returns HTML code for a column in list mode.

    returns HTML code

  • (array) getColumns ($paramName, $category) Browse code

    $paramName The parameter name
    $category The category

    Gets sfAdminColumn objects for a given category.

    returns sfAdminColumn array

  • (mixed) getFieldParameterValue ($key, $type, $default) Browse code

    $key The key name
    $type The type (list, edit)
    $default The default value

    Gets a field parameter value.

    returns The parameter value

  • (sfForm) getFormObject () Browse code

    Gets the form object

  • (string) getHelp ($column, $type) Browse code

    $column The column name
    $type The field type (list, edit)

    Returns HTML code for a help text.

    returns HTML code

  • (string) getHelpAsIcon ($column, $type) Browse code

    $column The column name
    $type The field type (list, edit)

    Returns HTML code for a help icon.

    returns HTML code

  • (array) getHiddenFields () Browse code

    Retrieves all hidden fields in the widget schema

  • (array) getHiddenFieldsAsString () Browse code

    Gets the hidden fields as a string

  • (string) getI18NString ($key, $default, $withEcho) Browse code

    $key The key name
    $default The defaul value
    $withEcho If true, string is wrapped in php echo

    Wraps a content for I18N.

    returns HTML code

  • getLastNonHiddenField () Browse code

  • (string) getLinkToAction ($actionName, $params, $pk_link) Browse code

    $actionName The action name
    $params The parameters
    $pk_link Whether to add a primary key link or not

    Returns HTML code for an action link.

    returns HTML code

  • (string) getOptionToAction ($actionName, $params) Browse code

    $actionName The action name
    $params The parameters

    Returns HTML code for an action option in a select tag.

    returns HTML code

  • (mixed) getParameterValue ($key, $default) Browse code

    $key The key name
    $default The default value

    Gets a parameter value.

    returns The parameter value

  • (mixed) getValueFromKey ($key, $default) Browse code

    $key The key name
    $default The default value

    Gets the value for a given key.

    returns The key value

  • (string) replaceConstants ($value) Browse code

    Replaces constants in a string.

  • (array) splitFlag ($text) Browse code

    $text The column name

    Gets modifier flags from a column name.

    returns An array of detected flags