상속: use trait Nette\StaticClass
예제 #1
0
파일: Runtime.php 프로젝트: pipaslot/forms
 /**
  * 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);
 }
예제 #3
0
 /** @deprecated */
 public static function renderFormEnd(Form $form, $withTags = TRUE)
 {
     echo Runtime::renderFormEnd($form, $withTags);
 }
예제 #4
0
파일: FormMacros.php 프로젝트: nette/forms
 /** @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);
 }