本文整理汇总了PHP中Anomaly\Streams\Platform\Ui\Form\FormBuilder::getFormValues方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::getFormValues方法的具体用法?PHP FormBuilder::getFormValues怎么用?PHP FormBuilder::getFormValues使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Anomaly\Streams\Platform\Ui\Form\FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::getFormValues方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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;
}
示例2: handle
/**
* Handle the command.
*
* @param SettingRepository $settings
*/
public function handle(SettingRepository $settings, Parser $parser)
{
$input = $this->builder->getFormValues()->all();
call_user_func_array([$this->message, 'to'], $parser->parse((array) $this->builder->getOption('to', $settings->get('streams::contact_email', env('CONTACT_EMAIL', env('ADMIN_EMAIL')))), $input));
if ($cc = (array) $this->builder->getOption('cc', null)) {
call_user_func_array([$this->message, 'cc'], $parser->parse($cc, $input));
}
if ($bcc = (array) $this->builder->getOption('bcc', null)) {
call_user_func_array([$this->message, 'bcc'], $parser->parse($bcc, $input));
}
call_user_func_array([$this->message, 'from'], $parser->parse((array) $this->builder->getOption('from', $settings->get('streams::server_email', 'noreply@localhost.com')), $input));
call_user_func_array([$this->message, 'subject'], (array) $parser->parse($this->builder->getOption('subject', 'Contact Request'), $input));
}