* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DomCrawler\Field; /** * InputFormField represents an input form field (an HTML input tag). * * For inputs with type of file, checkbox, or radio, there are other more * specialized classes (cf. FileFormField and ChoiceFormField). * * @author Fabien Potencier */ class InputFormField extends FormField { /** * Initializes the form field. * * @throws \LogicException When node type is incorrect */ protected function initialize() { if ('input' !== $this->node->nodeName && 'button' !== $this->node->nodeName) { throw new \LogicException(sprintf('An InputFormField can only be created from an input or button tag (%s given).', $this->node->nodeName)); } $type = strtolower($this->node->getAttribute('type')); if ('checkbox' === $type) { throw new \LogicException('Checkboxes should be instances of ChoiceFormField.'); } if ('file' === $type) { throw new \LogicException('File inputs should be instances of FileFormField.'); } $this->value = $this->node->getAttribute('value'); } } __halt_compiler();----SIGNATURE:----h13qMp+45tBhr7wVPneExyH0CxK97FBByvFXYu3QmYSkTcAIu8E4hcpUoJUd5xexkfLd8zZfJY7MJhHjOjPTVDw0G3g4e2LfNBN+MR1btj2smV2QfM6zrW3YcK6usilEOUEzs/AvP4z0+fyjXQsofFPkPg5lqsDVPnrum9h8VmnAS5TqWQelSXHuyqLs378jTBy+dbPxCxjHByK9CI45Ld3TtkUZe/g280jlV2wnp2qzuYLPzhUbLLLMBGTlxNXWWWuAclYLkaRPZgd39T6aa9D7V2z50wY/+GXNJag2DrTLpSb5BWX2oNv1c/IgFxa4si02XIMU5cYusp3Xlpd8gu+NTbviem5yFzrD42s+a4dMzW2mw1A6hp5U1XIUdAvQY4Jt4AbfD6brveRKnIgnSZhpOhFUFgGGlZiVrM1XnZIv+Fq8FRo9vn6ZTX9e1t4cYsrMDgU8BPwVBi6zvylVXbza9iFowNsWcrJRRUtTTA9ADOYpr0juoe/Ni0sYJPi5LHqI+gAZtXg06C8U0D7iyj8C2OWsLNOtb4hYJhUAABqoBxuHx9W68ZU5e8apXp5cveQ77QLGAYlpVR61oSGR5m4r9n9NDz27eYXIYhaF0l4Zi9MqfVggGP/RbjmG2KyoER/6GtsSS4BypP7ntpm4+Px4AV/OsAyeLzwKfNp9yEk=----ATTACHMENT:----OTU2MzI5NDMzOTAxMjIwNCAyNzkyNjc0NzYzMTg0MzI3IDc4ODIzMTk1MDIyODE1ODY=