Symfony\Component\DomCrawler\Form::getFormNode PHP 메소드

getFormNode() 공개 메소드

Gets the form node associated with this form.
public getFormNode ( ) : DOMElement
리턴 DOMElement A \DOMElement instance
    public function getFormNode()
    {
        return $this->node;
    }

Usage Example

예제 #1
0
 public function testGetFormNode()
 {
     $dom = new \DOMDocument();
     $dom->loadHTML('<html><form><input type="submit" /></form></html>');
     $form = new Form($dom->getElementsByTagName('input')->item(0));
     $this->assertSame($dom->getElementsByTagName('form')->item(0), $form->getFormNode(), '->getFormNode() returns the form node associated with this form');
 }
All Usage Examples Of Symfony\Component\DomCrawler\Form::getFormNode