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