Example #1
0
 /**
  * @param $name
  * @return mixed
  */
 public function getInput($name)
 {
     if ($this->form->getHttpMethod() === 'get') {
         return $this->services->getRequestHandler()->get($name);
     } else {
         return $this->services->getRequestHandler()->post($name);
     }
 }
Example #2
0
 /**
  * @param Form $container
  * @return string
  */
 protected function renderForm(Form $container)
 {
     return sprintf(self::FORMAT_FORM, $container->getFullId(), $container->getCssClass(), $container->getHttpMethod(), $container->getAction(), $container->getHtmlAttributesAsString(), $this->renderComponents($container->getComponents()));
 }