Inheritance: use trait Nette\StaticClass
Exemplo n.º 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 renderEnd($withTags = TRUE)
 {
     $this->assertInForm();
     $form = $this->form;
     $this->form = NULL;
     /** @noinspection PhpInternalEntityUsedInspection */
     return Runtime::renderFormEnd($form, $withTags);
 }
Exemplo n.º 3
0
 /** @deprecated */
 public static function renderFormEnd(Form $form, $withTags = TRUE)
 {
     echo Runtime::renderFormEnd($form, $withTags);
 }
Exemplo n.º 4
0
 /** @deprecated */
 public static function renderFormEnd(Form $form, $withTags = TRUE)
 {
     trigger_error(__METHOD__ . '() is deprecated, use Nette\\Bridges\\FormsLatte\\Runtime::renderFormEnd()', E_USER_DEPRECATED);
     echo Runtime::renderFormEnd($form, $withTags);
 }