本文整理汇总了PHP中EEH_Form_Fields::get_form_fields方法的典型用法代码示例。如果您正苦于以下问题:PHP EEH_Form_Fields::get_form_fields方法的具体用法?PHP EEH_Form_Fields::get_form_fields怎么用?PHP EEH_Form_Fields::get_form_fields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EEH_Form_Fields
的用法示例。
在下文中一共展示了EEH_Form_Fields::get_form_fields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _generate_admin_form_fields
/**
* generates HTML for the forms used on admin pages
* @access protected
* @param array $input_vars - array of input field details
* @param array $id - used for defining unique identifiers for the form.
* @param string $generator (options are 'string' or 'array', basically use this to indicate which generator to use)
* @return string
* @uses EEH_Form_Fields::get_form_fields (/helper/EEH_Form_Fields.helper.php)
* @uses EEH_Form_Fields::get_form_fields_array (/helper/EEH_Form_Fields.helper.php)
*/
protected function _generate_admin_form_fields($input_vars = array(), $generator = 'string', $id = FALSE)
{
EE_Registry::instance()->load_helper('Form_Fields');
$content = $generator == 'string' ? EEH_Form_Fields::get_form_fields($input_vars, $id) : EEH_Form_Fields::get_form_fields_array($input_vars);
return $content;
}
示例2: _generate_admin_form_fields
/**
* generates HTML for the forms used on admin pages
* @access protected
* @param array $input_vars - array of input field details
* @param array $id - used for defining unique identifiers for the form.
* @param string $generator (options are 'string' or 'array', basically use this to indicate which generator to use)
* @return string
* @uses EEH_Form_Fields::get_form_fields (/helper/EEH_Form_Fields.helper.php)
* @uses EEH_Form_Fields::get_form_fields_array (/helper/EEH_Form_Fields.helper.php)
*/
protected function _generate_admin_form_fields($input_vars = array(), $generator = 'string', $id = FALSE)
{
$content = $generator == 'string' ? EEH_Form_Fields::get_form_fields($input_vars, $id) : EEH_Form_Fields::get_form_fields_array($input_vars);
return $content;
}