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


PHP FormBuilder::getFormFields方法代碼示例

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


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

示例1: handle

 /**
  * Handle the event.
  *
  * @param Store $session
  */
 public function handle(Store $session)
 {
     /* @var FieldType $field */
     foreach ($this->builder->getFormFields() as $field) {
         $session->flash($field->getFieldName(), $field->getPostValue());
     }
 }
開發者ID:jacksun101,項目名稱:streams-platform,代碼行數:12,代碼來源:FlashFieldValues.php

示例2: handle

 /**
  * Handle the event.
  */
 public function handle()
 {
     /* @var FieldType $field */
     foreach ($this->builder->getFormFields() as $field) {
         $field->setValue($field->getPostValue());
     }
 }
開發者ID:jacksun101,項目名稱:streams-platform,代碼行數:10,代碼來源:RepopulateFields.php

示例3: handle

 /**
  * Handle the command.
  *
  * @param  Decorator $decorator
  * @param  Parser    $parser
  * @return array
  */
 public function handle(Decorator $decorator, Parser $parser)
 {
     $data = [];
     $data['form'] = $this->builder->getFormPresenter();
     $data['fields'] = $decorator->decorate($this->builder->getFormFields());
     $data['subject'] = $parser->parse($this->builder->getOption('subject', 'Contact Request'), $this->builder->getFormValues()->all());
     return $data;
 }
開發者ID:anomalylabs,項目名稱:contact-plugin,代碼行數:15,代碼來源:GetMessageData.php

示例4: save

 /**
  * Save the form.
  *
  * @param FormBuilder|ConfigurationFormBuilder $builder
  * @return bool|mixed
  */
 public function save(FormBuilder $builder)
 {
     $namespace = $builder->getFormEntry() . '::';
     /* @var FieldType $field */
     foreach ($builder->getFormFields() as $field) {
         $this->configurations->set($namespace . $field->getField(), $builder->getScope(), $builder->getFormValue($field->getInputName()));
     }
 }
開發者ID:bloveless,項目名稱:configuration-module,代碼行數:14,代碼來源:ConfigurationFormRepository.php

示例5: extend

 /**
  * Extend the validation factory.
  *
  * @param Factory     $factory
  * @param FormBuilder $builder
  */
 public function extend(Factory $factory, FormBuilder $builder)
 {
     foreach ($builder->getFormFields() as $fieldType) {
         $this->registerValidators($factory, $builder, $fieldType);
     }
 }
開發者ID:jacksun101,項目名稱:streams-platform,代碼行數:12,代碼來源:FormExtender.php


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