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


PHP CRM_Core_DAO_Note::_fields方法代码示例

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


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

示例1: array

 /**
  * Returns all the column names of this table
  *
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Note ID'), 'description' => 'Note ID', 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Note Entity'), 'description' => 'Name of table where item being referenced is stored.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'pseudoconstant' => array('callback' => 'CRM_Core_BAO_Note::entityTables')), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Note Entity ID'), 'description' => 'Foreign key to the referenced item.', 'required' => true), 'note' => array('name' => 'note', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Note'), 'description' => 'Note and/or Comment.', 'rows' => 4, 'cols' => 60, 'import' => true, 'where' => 'civicrm_note.note', 'headerPattern' => '/Note|Comment/i', 'dataPattern' => '//', 'export' => true, 'html' => array('type' => 'TextArea')), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Note Created By'), 'description' => 'FK to Contact ID creator', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Note Modified By'), 'description' => 'When was this note last modified/edited'), 'subject' => array('name' => 'subject', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Subject'), 'description' => 'subject of note description', 'maxlength' => 255, 'size' => 60, 'html' => array('type' => 'Text')), 'privacy' => array('name' => 'privacy', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Privacy'), 'description' => 'Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE, 'pseudoconstant' => array('optionGroupName' => 'note_privacy', 'optionEditPath' => 'civicrm/admin/options/note_privacy')));
     }
     return self::$_fields;
 }
开发者ID:agroknow,项目名称:mermix,代码行数:12,代码来源:Note.php

示例2: array

 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 static function &fields()
 {
     if (!self::$_fields) {
         self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'entity_table' => array('name' => 'entity_table', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Entity Table'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'entity_id' => array('name' => 'entity_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true), 'note' => array('name' => 'note', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Note'), 'rows' => 4, 'cols' => 60, 'import' => true, 'where' => 'civicrm_note.note', 'headerPattern' => '/Note|Comment/i', 'dataPattern' => '//', 'export' => true), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'modified_date' => array('name' => 'modified_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Modified Date')), 'subject' => array('name' => 'subject', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Subject'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'privacy' => array('name' => 'privacy', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Privacy'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE));
     }
     return self::$_fields;
 }
开发者ID:peteainsworth,项目名称:civicrm-4.2.9-drupal,代码行数:13,代码来源:Note.php


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