Symfony\Component\DomCrawler\Form::all PHP Method

all() public method

Gets all fields.
public all ( ) : FormField[]
return Symfony\Component\DomCrawler\Field\FormField[] An array of fields
    public function all()
    {
        return $this->fields->all();
    }

Usage Example

Example #1
0
 public function testConstructorLoadsOnlyFieldsOfTheRightForm()
 {
     $dom = $this->createTestMultipleForm();
     $nodes = $dom->getElementsByTagName('form');
     $buttonElements = $dom->getElementsByTagName('button');
     $form = new Form($nodes->item(0), 'http://example.com');
     $this->assertCount(3, $form->all());
     $form = new Form($buttonElements->item(1), 'http://example.com');
     $this->assertCount(5, $form->all());
 }
All Usage Examples Of Symfony\Component\DomCrawler\Form::all