renderFormBegin() 공개 정적인 메소드

Renders form begin.
public static renderFormBegin ( Form $form, array $attrs, $withTags = TRUE ) : string
$form Nette\Forms\Form
$attrs array
리턴 string
예제 #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 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;
 }
예제 #3
0
 /** @deprecated */
 public static function renderFormBegin(Form $form, array $attrs, $withTags = TRUE)
 {
     echo Runtime::renderFormBegin($form, $attrs, $withTags);
 }
예제 #4
0
파일: FormMacros.php 프로젝트: nette/forms
 /** @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);
 }