當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FormBuilder::__construct方法代碼示例

本文整理匯總了PHP中Illuminate\Html\FormBuilder::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP FormBuilder::__construct方法的具體用法?PHP FormBuilder::__construct怎麽用?PHP FormBuilder::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Html\FormBuilder的用法示例。


在下文中一共展示了FormBuilder::__construct方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * The constructor
  *
  * @param HtmlBuilder  $html
  * @param UrlGenerator $url
  * @param Session      $session
  */
 public function __construct(HtmlBuilder $html, UrlGenerator $url, Session $session)
 {
     parent::__construct($html, $url, $session->getToken());
     $this->session = $session;
     $this->requiredFields = [];
     $this->errorFields = [];
     if ($this->session->has('formhelper-required-fields')) {
         $this->requiredFields = $this->session->get('formhelper-required-fields');
         $this->session->forget('formhelper-required-fields');
     }
     if ($this->session->has('formhelper-error-fields')) {
         $this->errorFields = $this->session->get('formhelper-error-fields');
         $this->session->forget('formhelper-error-fields');
     }
 }
開發者ID:artisaninweb,項目名稱:laravel-formvalidation-helper,代碼行數:22,代碼來源:FormBuilder.php

示例2: __construct

 /**
  * Create a new form builder instance.
  *
  * @param \Illuminate\Html\HtmlBuilder  $html
  * @param \Illuminate\Routing\UrlGenerator  $url
  * @param string  $csrfToken
  * @param string  $sessionKey
  * @return void
  */
 public function __construct(HtmlBuilder $html, UrlGeneratorBase $url, $csrfToken, $sessionKey)
 {
     $this->sessionKey = $sessionKey;
     parent::__construct($html, $url, $csrfToken);
 }
開發者ID:mechiko,項目名稱:staff-october,代碼行數:14,代碼來源:FormBuilder.php

示例3: __construct

 /**
  * Create new instance of this FormBuilder intercepter!
  *
  * @param  Illuminate\Routing\UrlGenerator   $url
  * @param  Illuminate\Html\HtmlBuilder       $html
  * @param  string                            $token
  * @param  Illuminate\Translation\Translator $translator
  * @param  mixed                             $errors
  *
  * @return void
  */
 public function __construct($html, $url, $token, $translator, $errors = null)
 {
     $this->local_errors = $errors != null ? $errors : new MessageBag();
     parent::__construct($html, $url, $token, $translator);
 }
開發者ID:stolz,項目名稱:laravel-form-builder,代碼行數:16,代碼來源:Foundation.php

示例4: __construct

 /**
  * Create a new form builder instance.
  *
  * @param  \Illuminate\Routing\UrlGenerator  $url
  * @param  \Illuminate\Html\HtmlBuilder  $html
  * @param  string  $csrfToken
  * @return void
  */
 public function __construct(IlluminateHtmlBuilder $html, UrlGenerator $url, $csrfToken, ManagerInterface $manager)
 {
     parent::__construct($html, $url, $csrfToken);
     $this->manager = $manager;
 }
開發者ID:leitom,項目名稱:role,代碼行數:13,代碼來源:FormBuilder.php

示例5: __construct

 public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken)
 {
     parent::__construct($html, $url, $csrfToken);
     $this->lang = app('translator');
 }
開發者ID:neoxia,項目名稱:laravel,代碼行數:5,代碼來源:FormBuilder.php

示例6: __construct

 public function __construct(\Illuminate\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken)
 {
     parent::__construct($html, $url, $csrfToken);
 }
開發者ID:bllim,項目名稱:laravel-to-jquery-validation,代碼行數:4,代碼來源:FormBuilder.php

示例7: __construct

 public function __construct(\Illuminate\Html\HtmlBuilder $html, \Illuminate\Routing\UrlGenerator $url, $csrfToken, Converter\Base\Converter $converter)
 {
     parent::__construct($html, $url, $csrfToken);
     $plugin = \Config::get('laravalid.plugin');
     $this->converter = $converter;
 }
開發者ID:jitheshgopan,項目名稱:laravalid,代碼行數:6,代碼來源:FormBuilder.php

示例8: __construct

 /**
  * Constructor
  * 
  * @param Html $html
  * @param UrlGenerator $url
  * @param string $csrfToken
  */
 public function __construct(Html $html, UrlGenerator $url, $csrfToken)
 {
     parent::__construct($html, $url, $csrfToken);
 }
開發者ID:wingsline,項目名稱:inuitcss,代碼行數:11,代碼來源:FormBuilder.php


注:本文中的Illuminate\Html\FormBuilder::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。