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


PHP CustomFields::getId方法代码示例

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


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

示例1: _install

 public function _install()
 {
     $this->db->where('name', 'digital_products')->update('components', array('autoload' => '1', 'enabled' => '1'));
     $field = new CustomFields();
     $field->setEntity('Product')->setIsActive(true)->setname('dplink')->setfLabel('Link to digital content')->settypeId(3);
     $field->save();
     ShopCore::app()->SSettings->set('DPLinkCFID', $field->getId());
     /** We recomend to use http://ellislab.com/codeigniter/user-guide/database/forge.html */
     /**
      $this->load->dbforge();
     
      $fields = array(
      'id' => array('type' => 'INT', 'constraint' => 11, 'auto_increment' => TRUE,),
      'name' => array('type' => 'VARCHAR', 'constraint' => 50,),
      'value' => array('type' => 'VARCHAR', 'constraint' => 100,)
      );
     
      $this->dbforge->add_key('id', TRUE);
      $this->dbforge->add_field($fields);
      $this->dbforge->create_table('mod_empty', TRUE);
     */
     /**
      */
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:24,代码来源:digital_products.php

示例2: CustomFields

<?php

// Copyright SQCRM. For licensing, reuse, modification and distribution see license.txt
/**
* Change password modal
* @author Abhik Chakraborty
*/
include_once "config.php";
$idmodule = (int) $_GET["idmodule"];
$referrar = $_GET["referrar"];
$idfields = (int) $_GET["sqrecord"];
$do_custom_fields = new CustomFields();
$do_custom_fields->getId($idfields);
$field_validation = $do_custom_fields->field_validation;
$field_validation_data = array();
if ($field_validation != '') {
    $field_validation_data = json_decode($field_validation, true);
}
if ($do_custom_fields->field_type == 5 || $do_custom_fields->field_type == 6) {
    $do_combo_values = new ComboValues();
    $do_combo_values->get_combo_values($idfields);
    $pick_data = '';
    while ($do_combo_values->next()) {
        $pick_data .= $do_combo_values->combo_value . "\n";
        //adding new lines for the text area in pick options
    }
}
$allow = true;
$e_add = new Event("CustomFields->eventEditCustomField");
echo '<form class="form-horizontal" id="CustomFields__eventEditCustomField" name="CustomFields__eventEditCustomField" action="/eventcontroler.php" method="post">';
echo $e_add->getFormEvent();
开发者ID:sQcrm,项目名称:sqcrm,代码行数:31,代码来源:edit_custom_field_modal.php


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