本文整理汇总了PHP中FormBuilder::inputBuilder方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::inputBuilder方法的具体用法?PHP FormBuilder::inputBuilder怎么用?PHP FormBuilder::inputBuilder使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::inputBuilder方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formBuilder
public function formBuilder($request)
{
$fb = new FormBuilder();
$form = new Form();
if (!empty($request['select_input_type'])) {
$fb->inputBuilder($request);
} else {
if (!empty($request['add_attr'])) {
$fb->inputBuilder($request);
} else {
if (!empty($request['add_radio'])) {
$fb->inputBuilder($request);
} else {
if (!empty($request['clear_form'])) {
$form->clearForm($request['form_name']);
} else {
if (!empty($request['save_form'])) {
echo $form->saveForm($request);
}
}
}
}
}
}
示例2: FormBuilder
<?php
require '../classes/FormBuilder.class.php';
$fb = new FormBuilder();
$fb->inputBuilder('text');
示例3: dirname
<?php
require_once dirname(__FILE__) . '/../classes/FormBuilder.class.php';
require_once dirname(__FILE__) . '/../classes/Form.class.php';
$fb = new FormBuilder();
$form = new Form();
if (!empty($_REQUEST['select_input_type'])) {
$fb->inputBuilder($_REQUEST);
} else {
if (!empty($_REQUEST['add_attr'])) {
$fb->inputBuilder($_REQUEST);
} else {
if (!empty($_REQUEST['clear_form'])) {
$form->clearForm($_REQUEST['form_name']);
} else {
if (!empty($_REQUEST['save_form'])) {
echo $form->saveForm($_REQUEST);
}
}
}
}