Exemplo n.º 1
0
 /**
  * Constructor
  * 
  * @param Console\Input\InputInterface $input
  * @param Console\Output\OutputInterface $output
  * @param Console\Helper\QuestionHelper $questionHelper
  * @param FieldCollectionInterface ...$fieldCollections
  */
 public function __construct(Console\Input\InputInterface $input, Console\Output\OutputInterface $output, Console\Helper\QuestionHelper $questionHelper, FieldCollectionInterface ...$fieldCollections)
 {
     parent::__construct(...$fieldCollections);
     $this->input = $input;
     $this->output = $output;
     $this->questionHelper = $questionHelper;
 }
Exemplo n.º 2
0
 /**
  * Constructor
  * 
  * @param mixed $id If several forms are on one page, use this id to differentiate them
  * @param \Feeld\FieldCollection\FieldCollectionInterface ...$fieldCollections
  */
 public function __construct($id = 0, ErrorContainer $errorContainer = null, \Feeld\FieldCollection\FieldCollectionInterface ...$fieldCollections)
 {
     parent::__construct(...$fieldCollections);
     $this->setId(self::PREFIX_FIELD_FORM . $id);
     $this->addInternalFields();
     $this->errorContainer = is_null($errorContainer) ? new ErrorContainer() : $errorContainer;
     $this->method = INPUT_POST;
 }