Свойство | Type | Description | |
---|---|---|---|
$deleteField | string | Name of the field used for deletion. | |
$optionalForms | array[sfForm] | List of forms that can be added by the user |
Méthode | Description | |
---|---|---|
__clone ( ) | ||
__construct ( $object = null, $options = [], $CSRFSecret = null ) | Constructor. | |
addOptionalForms ( $taintedValues = null ) | ||
bind ( array $taintedValues = null, array $taintedFiles = null ) | Binds the form with input values. | |
embedI18n ( array $cultures, string $decorator = null ) | Embeds i18n objects into the current form. | |
embedRelation ( string $relationName, array $options = [] ) : sfPropelForm | Embed a Collection form based on a Relation into this form. | |
getConnection ( ) : PropelPDO | ||
getDeleteField ( ) | ||
getEmptyRelatedForm ( string $relationName, array $options = [] ) : sfFormPropel | Get an empty Propel form based on a Relation of the current form's model. | |
getI18nFormClass ( ) : string | Returns the name of the i18n form class. | |
getI18nModelName ( ) : string | Returns the name of the i18n model. | |
getPeer ( ) : string | Get the name of the Peer class of the form's model, e.g. 'AuthorPeer' | |
getRelationForm ( string $relationName, array $options = [] ) : sfFormPropelCollection | Get a Collection form based on a Relation of the current form's model. | |
hasDeleteField ( ) | ||
isI18n ( ) : boolean | Returns true if the current form has some associated i18n objects. | |
mergeForm ( sfForm $form ) | Overrides sfForm::mergeForm() to also merge embedded forms Allows autosave of merged collections | |
mergeRelation ( string $relationName, array $options = [] ) : sfPropelForm | Merge a Collection form based on a Relation into this form. | |
processValues ( $values ) | Processes cleaned up values with user defined methods. | |
saveEmbeddedForms ( mixed $con = null, array $forms = null ) | Saves embedded form objects. | |
setDeleteField ( $fieldName ) | ||
setDeleteWidget ( string $name, sfWidgetForm $widget ) : sfPropelForm | Adds a widget to the form, and declare this widget as the delete control. |
Méthode | Description | |
---|---|---|
addEmptyRelationForm ( string $relationName, sfFormPropelCollection $relationForm, string $emptyName, string $prefix, array $options = [] ) | Adds an empty Propel form based on a Relation of the current form's model to a collection form. | |
doSave ( mixed $con = null ) | Updates and saves the current object. | |
doUpdateObject ( array $values ) | Updates the values of the object with the cleaned up values. | |
getRelationFields ( $relationMap ) | ||
getRelationMap ( $relationName ) | ||
processUploadedFile ( string $field, string $filename = null, array $values = null ) : string | Saves the uploaded file for the given field. | |
removeFile ( string $field ) | Removes the current file for the field. | |
saveFile ( string $field, string $filename = null, sfValidatedFile $file = null ) : string | Saves the current file for the field. | |
updateDefaultsFromObject ( ) | Updates the default values of the form with the current values of the current object. |
public __construct ( $object = null, $options = [], $CSRFSecret = null ) |
protected addEmptyRelationForm ( string $relationName, sfFormPropelCollection $relationForm, string $emptyName, string $prefix, array $options = [] ) | ||
$relationName | string | The name of a relation of the current Model, e.g. 'Book' |
$relationForm | sfFormPropelCollection | The form to augment |
$emptyName | string | The name of the empty form to add |
$prefix | string | The prefix to ad to the empty name to form the key to the optional forms array |
$options | array | An array of options |
protected doUpdateObject ( array $values ) | ||
$values | array | An array of values |
public embedRelation ( string $relationName, array $options = [] ) : sfPropelForm | ||
$relationName | string | The name of a relation of the current Model, e.g. 'Book' |
$options | array | An array of options |
Résultat | sfPropelForm | The current form instance |
public getEmptyRelatedForm ( string $relationName, array $options = [] ) : sfFormPropel | ||
$relationName | string | The name of a relation of the current Model, e.g. 'Book' |
$options | array | An array of options |
Résultat | sfFormPropel | A Propel form instance |
public getI18nFormClass ( ) : string | ||
Résultat | string | The name of the i18n form class |
public getI18nModelName ( ) : string | ||
Résultat | string | The name of the i18n model |
public getRelationForm ( string $relationName, array $options = [] ) : sfFormPropelCollection | ||
$relationName | string | The name of a relation of the current Model, e.g. 'Book' |
$options | array | An array of options |
Résultat | sfFormPropelCollection | A form collection instance |
public mergeForm ( sfForm $form ) | ||
$form | sfForm | The sfForm instance to merge with current form |
public mergeRelation ( string $relationName, array $options = [] ) : sfPropelForm | ||
$relationName | string | The name of a relation of the current Model, e.g. 'Book' |
$options | array | An array of options |
Résultat | sfPropelForm | The current form instance |
public processValues ( $values ) |
protected removeFile ( string $field ) | ||
$field | string | The field name |
public saveEmbeddedForms ( mixed $con = null, array $forms = null ) | ||
$con | mixed | An optional connection object |
$forms | array | An array of forms |
public setDeleteWidget ( string $name, sfWidgetForm $widget ) : sfPropelForm | ||
$name | string | The field name |
$widget | sfWidgetForm | The widget |
Résultat | sfPropelForm | The current form instance |
protected updateDefaultsFromObject ( ) |
protected string $deleteField | ||
Résultat | string |