[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/generator/ -> sfAdminGenerator.class.php (sommaire)

Admin generator. This class generates an admin module.

Author: Fabien Potencier <fabien.potencier@symfony-project.com>
Version: SVN: $Id: sfPropelAdminGenerator.class.php 2625 2006-11-07 10:36:14Z fabien $
Poids: 788 lignes (23 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfAdminColumn:: (8 méthodes):
  __construct()
  isReal()
  getName()
  isPartial()
  isComponent()
  isLink()
  getPhpName()
  __call()

Définit 8 fonctions

  getHelpAsIcon()
  getHelp()
  getButtonToAction()
  getLinkToAction()
  getColumnEditTag()
  getColumnCategories()
  addCredentialCondition()
  getColumns()
  splitFlag()
  getParameterValue()
  getFieldParameterValue()
  getValueFromKey()
  getI18NString()
  replaceConstants()
  getColumnListTag()
  getColumnFilterTag()
  escapeString()

Classe: sfAdminColumn  - X-Ref

Propel admin generator column.

__construct($phpName, $column = null, $flags = array()   X-Ref
Constructor.

param: string The column php name
param: string The column name
param: array  The column flags

isReal()   X-Ref
Returns true if the column maps a database column.

return: boolean true if the column maps a database column, false otherwise

getName()   X-Ref
Gets the name of the column.

return: string The column name

isPartial()   X-Ref
Returns true if the column is a partial.

return: boolean true if the column is a partial, false otherwise

isComponent()   X-Ref
Returns true if the column is a component.

return: boolean true if the column is a component, false otherwise

isLink()   X-Ref
Returns true if the column has a link.

return: boolean true if the column has a link, false otherwise

getPhpName()   X-Ref
Gets the php name of the column.

return: string The php name

__call($name, $arguments)   X-Ref
Pas de description

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getHelpAsIcon($column, $type = '')   X-Ref
Returns HTML code for a help icon.

param: string The column name
param: string The field type (list, edit)
return: string HTML code

getHelp($column, $type = '')   X-Ref
Returns HTML code for a help text.

param: string The column name
param: string The field type (list, edit)
return: string HTML code

getButtonToAction($actionName, $params, $pk_link = false)   X-Ref
Returns HTML code for an action button.

param: string  The action name
param: array   The parameters
param: boolean Whether to add a primary key link or not
return: string HTML code

getLinkToAction($actionName, $params, $pk_link = false)   X-Ref
Returns HTML code for an action link.

param: string  The action name
param: array   The parameters
param: boolean Whether to add a primary key link or not
return: string HTML code

getColumnEditTag($column, $params = array()   X-Ref
Returns HTML code for a column in edit mode.

param: string  The column name
param: array   The parameters
return: string HTML code

getColumnCategories($paramName)   X-Ref
Returns all column categories.

param: string  The parameter name
return: array The column categories

addCredentialCondition($content, $params = array()   X-Ref
Wraps content with a credential condition.

param: string  The content
param: array   The parameters
return: string HTML code

getColumns($paramName, $category = 'NONE')   X-Ref
Gets sfAdminColumn objects for a given category.

param: string The parameter name
return: array sfAdminColumn array

splitFlag($text)   X-Ref
Gets modifier flags from a column name.

param: string The column name
return: array An array of detected flags

getParameterValue($key, $default = null)   X-Ref
Gets a parameter value.

param: string The key name
param: mixed  The default value
return: mixed The parameter value

getFieldParameterValue($key, $type = '', $default = null)   X-Ref
Gets a field parameter value.

param: string The key name
param: string The type (list, edit)
param: mixed  The default value
return: mixed The parameter value

getValueFromKey($key, $default = null)   X-Ref
Gets the value for a given key.

param: string The key name
param: mixed  The default value
return: mixed The key value

getI18NString($key, $default = null, $withEcho = true)   X-Ref
Wraps a content for I18N.

param: string The key name
param: string The defaul value
return: string HTML code

replaceConstants($value)   X-Ref
Replaces constants in a string.

param: string
return: string

getColumnListTag($column, $params = array()   X-Ref
Returns HTML code for a column in list mode.

param: string  The column name
param: array   The parameters
return: string HTML code

getColumnFilterTag($column, $params = array()   X-Ref
Returns HTML code for a column in filter mode.

param: string  The column name
param: array   The parameters
return: string HTML code

escapeString($string)   X-Ref
Escapes a string.

param: string
param: string



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7