PHP Class Symfony\Component\Form\Extension\DataCollector\FormDataCollector

Author: Robert Schönthal ([email protected])
Author: Bernhard Schussek ([email protected])
Inheritance: extends Symfony\Component\HttpKernel\DataCollector\DataCollector, implements Symfony\Component\Form\Extension\DataCollector\FormDataCollectorInterface
显示文件 Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Form\Extension\DataCollector\FormDataExtractorInterface $dataExtractor )
associateFormWithView ( Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormView $view )
buildFinalFormTree ( Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormView $view )
buildPreliminaryFormTree ( Symfony\Component\Form\FormInterface $form )
collect ( Request $request, Response $response, Exception $exception = null ) Does nothing. The data is collected during the form event listeners.
collectConfiguration ( Symfony\Component\Form\FormInterface $form )
collectDefaultData ( Symfony\Component\Form\FormInterface $form )
collectSubmittedData ( Symfony\Component\Form\FormInterface $form )
collectViewVariables ( Symfony\Component\Form\FormView $view )
getData ( )
getName ( )
serialize ( )

Protected Methods

Method Description
cloneVar ( $var, $isClass = false )

Private Methods

Method Description
recursiveBuildFinalFormTree ( Symfony\Component\Form\FormInterface $form = null, Symfony\Component\Form\FormView $view, array &$outputByHash )
recursiveBuildPreliminaryFormTree ( Symfony\Component\Form\FormInterface $form, array &$outputByHash )

Method Details

__construct() public method

public __construct ( Symfony\Component\Form\Extension\DataCollector\FormDataExtractorInterface $dataExtractor )
$dataExtractor Symfony\Component\Form\Extension\DataCollector\FormDataExtractorInterface

associateFormWithView() public method

public associateFormWithView ( Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormView $view )
$form Symfony\Component\Form\FormInterface
$view Symfony\Component\Form\FormView

buildFinalFormTree() public method

public buildFinalFormTree ( Symfony\Component\Form\FormInterface $form, Symfony\Component\Form\FormView $view )
$form Symfony\Component\Form\FormInterface
$view Symfony\Component\Form\FormView

buildPreliminaryFormTree() public method

public buildPreliminaryFormTree ( Symfony\Component\Form\FormInterface $form )
$form Symfony\Component\Form\FormInterface

cloneVar() protected method

protected cloneVar ( $var, $isClass = false )

collect() public method

Does nothing. The data is collected during the form event listeners.
public collect ( Request $request, Response $response, Exception $exception = null )
$request Symfony\Component\HttpFoundation\Request
$response Symfony\Component\HttpFoundation\Response
$exception Exception

collectConfiguration() public method

public collectConfiguration ( Symfony\Component\Form\FormInterface $form )
$form Symfony\Component\Form\FormInterface

collectDefaultData() public method

public collectDefaultData ( Symfony\Component\Form\FormInterface $form )
$form Symfony\Component\Form\FormInterface

collectSubmittedData() public method

public collectSubmittedData ( Symfony\Component\Form\FormInterface $form )
$form Symfony\Component\Form\FormInterface

collectViewVariables() public method

public collectViewVariables ( Symfony\Component\Form\FormView $view )
$view Symfony\Component\Form\FormView

getData() public method

public getData ( )

getName() public method

public getName ( )

serialize() public method

public serialize ( )