Method Summary
-
string
addCredentialCondition($content, $params = array())
Wraps content with a credential condition.
-
escapeString($string)
Escapes a string.
-
string
getButtonToAction($actionName, $params, $pk_link = false)
Returns HTML code for an action button.
-
array
getColumnCategories($paramName)
Returns all column categories.
-
string
getColumnEditTag($column, $params = array())
Returns HTML code for a column in edit mode.
-
string
getColumnFilterTag($column, $params = array())
Returns HTML code for a column in filter mode.
-
string
getColumnListTag($column, $params = array())
Returns HTML code for a column in list mode.
-
array
getColumns($paramName, $category = 'NONE')
Gets sfAdminColumn objects for a given category.
-
mixed
getFieldParameterValue($key, $type = '', $default = null)
Gets a field parameter value.
-
string
getFormClassName()
Gets the form class name
-
string
getFormMultipartHtml()
Gets the HTML to add to the form tag if the form is multipart.
-
getFormObject()
Gets the form object
-
string
getHelp($column, $type = '')
Returns HTML code for a help text.
-
string
getHelpAsIcon($column, $type = '')
Returns HTML code for a help icon.
-
array
getHiddenFields()
Retrieves all hidden fields in the widget schema
-
array
getHiddenFieldsAsString()
Gets the hidden fields as a string
-
string
getI18NString($key, $default = null, $withEcho = true)
Wraps a content for I18N.
-
getLastNonHiddenField()
-
string
getLinkToAction($actionName, $params, $pk_link = false)
Returns HTML code for an action link.
-
string
getOptionToAction($actionName, $params)
Returns HTML code for an action option in a select tag.
-
mixed
getParameterValue($key, $default = null)
Gets a parameter value.
-
mixed
getValueFromKey($key, $default = null)
Gets the value for a given key.
-
string
replaceConstants($value)
Replaces constants in a string.
-
array
splitFlag($text)
Gets modifier flags from a column name.
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) addCredentialCondition ($content, $params = array())
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 = false)
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 = 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) 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
-
(array) getColumns ($paramName, $category = 'NONE')
Browse code
| $paramName |
The parameter name
|
| $category |
The category
|
Gets sfAdminColumn objects for a given category.
returns sfAdminColumn array
-
(mixed) getFieldParameterValue ($key, $type = '', $default = null)
Browse code
| $key |
The key name
|
| $type |
The type (list, edit)
|
| $default |
The default value
|
Gets a field parameter value.
returns The parameter value
-
(string) getFormClassName ()
Browse code
Gets the form class name
returns The form class name associated with this generator
-
(string) getFormMultipartHtml ()
Browse code
Gets the HTML to add to the form tag if the form is multipart.
-
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 = null, $withEcho = true)
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 = false)
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 = null)
Browse code
| $key |
The key name
|
| $default |
The default value
|
Gets a parameter value.
returns The parameter value
-
(mixed) getValueFromKey ($key, $default = null)
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
Gets modifier flags from a column name.
returns An array of detected flags
|