Пример #1
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()));
 }
Пример #2
0
 /**
  * @param Form $form
  */
 protected function buildFormPrototype(Form $form)
 {
     $form->setCssBaseTypeClass('zingularForm')->setViewName(View::FORM)->setComponentBaseType('form')->setErrorBuilder(Builder::ERROR);
 }
Пример #3
0
 /**
  * @return bool
  */
 public function isPersistent()
 {
     return $this->form->isPersistent();
 }