當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。