renderFormBegin() public static méthode

Renders form begin.
public static renderFormBegin ( Form $form, array $attrs, $withTags = TRUE ) : string
$form Nette\Forms\Form
$attrs array
Résultat string
Exemple #1
0
 /**
  * Renders form begin.
  * @param Form $form
  * @param array $attrs
  * @param bool $withTags
  * @return string
  */
 public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
 {
     $renderer = $form->getRenderer();
     if ($renderer instanceof IManualRenderer) {
         $renderer->beforeRender($form);
     }
     return parent::renderFormBegin($form, $attrs, $withTags);
 }
 public function renderBegin(Form $form, array $attrs = [], $withTags = TRUE)
 {
     if ($this->form !== $form) {
         $this->form = $form;
     }
     $this->renderedControls = new SplObjectStorage();
     $this->addFormModeClass($form, $attrs);
     /** @noinspection PhpInternalEntityUsedInspection */
     $rendered = Runtime::renderFormBegin($form, $attrs, $withTags);
     return $rendered;
 }
 /** @deprecated */
 public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
 {
     echo Runtime::renderFormBegin($form, $attrs, $withTags);
 }
Exemple #4
0
 /** @deprecated */
 public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
 {
     trigger_error(__METHOD__ . '() is deprecated, use Nette\\Bridges\\FormsLatte\\Runtime::renderFormBegin()', E_USER_DEPRECATED);
     echo Runtime::renderFormBegin($form, $attrs, $withTags);
 }