当前位置: 首页>>代码示例>>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;未经允许,请勿转载。