当前位置: 首页>>代码示例>>PHP>>正文


PHP FrmField::get_id_by_key方法代码示例

本文整理汇总了PHP中FrmField::get_id_by_key方法的典型用法代码示例。如果您正苦于以下问题:PHP FrmField::get_id_by_key方法的具体用法?PHP FrmField::get_id_by_key怎么用?PHP FrmField::get_id_by_key使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FrmField的用法示例。


在下文中一共展示了FrmField::get_id_by_key方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: get_id_by_key

 function get_id_by_key($field_key)
 {
     return FrmField::get_id_by_key($field_key);
 }
开发者ID:knightzac19,项目名称:formidable-forms,代码行数:4,代码来源:frm_factory.php

示例2: _get_dynamic_fields_args

 function _get_dynamic_fields_args()
 {
     $args = array();
     // Get the Dynamic field
     $field_id = FrmField::get_id_by_key('dynamic-state');
     $args['field'] = FrmField::getOne($field_id);
     // Get the Parent field
     $parent_field_id = FrmField::get_id_by_key('dynamic-country');
     $args['parent_field'] = FrmField::getOne($parent_field_id);
     $values = array('hide_field' => array(), 'form_select' => $args['parent_field']->field_options['form_select'], 'restrict' => '');
     $args['parent_options'] = FrmProFieldsHelper::get_linked_options($values, $args['field'], '');
     foreach ($args['parent_options'] as $key => $opt) {
         if ($opt == 'United States') {
             $args['us_id'] = $key;
             break;
         }
     }
     self::_get_the_join_field($args);
     self::_get_the_expected_dynamic_field_entry_ids($args);
     self::_get_the_prev_val($args);
     return $args;
 }
开发者ID:knightzac19,项目名称:formidable-forms,代码行数:22,代码来源:test_FrmProFieldsControllerAjax.php

示例3: _get_xml_update_args

 function _get_xml_update_args()
 {
     $repeating_section_id = FrmField::get_id_by_key('repeating-section');
     $repeating_section_values = self::_get_repeating_section_values($repeating_section_id);
     $repeating_section = FrmField::getOne($repeating_section_id);
     $repeating_fields = FrmField::get_all_for_form($repeating_section->field_options['form_select']);
     $parent_form_id = FrmForm::getIdByKey($this->all_fields_form_key);
     $parent_entries = FrmEntry::getAll(array('form_id' => $parent_form_id));
     $child_entries = FrmEntry::getAll(array('form_id' => $repeating_section->field_options['form_select']));
     $embed_form_id = FrmForm::getIdByKey($this->contact_form_key);
     $embedded_entries = FrmEntry::getAll(array('form_id' => $embed_form_id, 'parent_item_id !' => 0));
     $args = array('repeating_section' => $repeating_section, 'repeating_section_values' => $repeating_section_values, 'repeating_fields' => $repeating_fields, 'parent_form_id' => $parent_form_id, 'parent_entries' => $parent_entries, 'child_entries' => $child_entries, 'embedded_entries' => $embedded_entries);
     return $args;
 }
开发者ID:knightzac19,项目名称:formidable-forms,代码行数:14,代码来源:test_FrmProXMLHelper.php

示例4: _get_xml_update_args

 function _get_xml_update_args()
 {
     $parent_form_id = FrmForm::getIdByKey($this->all_fields_form_key);
     $repeating_section_id = FrmField::get_id_by_key('repeating-section');
     $all_fields = FrmField::get_all_for_form($parent_form_id, '', 'include', 'include');
     $repeating_section = FrmField::getOne($repeating_section_id);
     $rep_sec_form = FrmForm::getOne($repeating_section->field_options['form_select']);
     $repeating_fields = FrmField::get_all_for_form($repeating_section->field_options['form_select']);
     $args = array('parent_form_id' => $parent_form_id, 'repeating_section' => $repeating_section, 'all_fields' => $all_fields, 'rep_sec_form' => $rep_sec_form, 'repeating_fields' => $repeating_fields);
     return $args;
 }
开发者ID:knightzac19,项目名称:formidable-forms,代码行数:11,代码来源:test_FrmXMLHelper.php


注:本文中的FrmField::get_id_by_key方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。