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


PHP FormBuilder::__construct方法代碼示例

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


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

示例1: __construct

 /**
  *  Create an instance of Mention builder and also call Form Builder's constructor
  * @param HtmlBuilder $html [description]
  * @param UrlGenerator $url [description]
  * @param ViewFactory $view [description]
  */
 public function __construct(HtmlBuilder $html, UrlGenerator $url, ViewFactory $view)
 {
     parent::__construct($html, $url, $view, csrf_token());
 }
開發者ID:unicodeveloper,項目名稱:laravel-mentions,代碼行數:10,代碼來源:MentionBuilder.php

示例2: __construct

 /**
  * @param HtmlBuilder $html
  * @param UrlGenerator $url
  * @param string $csrfToken
  * @param ViewErrorBag $errors
  */
 public function __construct(HtmlBuilder $html, UrlGenerator $url, $csrfToken, ViewErrorBag $errors)
 {
     parent::__construct($html, $url, $csrfToken);
     $this->errors = $errors;
 }
開發者ID:timothyvictor,項目名稱:laravel5-foundation,代碼行數:11,代碼來源:FoundationFiveFormBuilder.php

示例3: __construct

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

示例4: __construct

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

示例5: __construct

 /**
  * Create a new form builder instance.
  * if config/app.php set right, will use PkHtmlBuilder to build $html
  * @param  \Illuminate\Routing\UrlGenerator  $url
  * @param  \Illuminate\Html\HtmlBuilder  $html
  * @param  string  $csrfToken
  * @return void
  */
 public function __construct(PkHtmlBuilder $pkhtml, UrlGenerator $url, Factory $view, $csrfToken)
 {
     parent::__construct($pkhtml, $url, $view, $csrfToken);
 }
開發者ID:pkirkaas,項目名稱:PkExtensions,代碼行數:12,代碼來源:PkFormBuilder.php

示例6: __construct

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


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