/** * 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; }
/** * 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; }