當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CRM_Contact_DAO_Relationship::_fields方法代碼示例

本文整理匯總了PHP中CRM_Contact_DAO_Relationship::_fields方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Contact_DAO_Relationship::_fields方法的具體用法?PHP CRM_Contact_DAO_Relationship::_fields怎麽用?PHP CRM_Contact_DAO_Relationship::_fields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CRM_Contact_DAO_Relationship的用法示例。


在下文中一共展示了CRM_Contact_DAO_Relationship::_fields方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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), 'contact_id_a' => array('name' => 'contact_id_a', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'contact_id_b' => array('name' => 'contact_id_b', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'relationship_type_id' => array('name' => 'relationship_type_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_RelationshipType'), 'start_date' => array('name' => 'start_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Start Date')), 'end_date' => array('name' => 'end_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('End Date')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_permission_a_b' => array('name' => 'is_permission_a_b', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_permission_b_a' => array('name' => 'is_permission_b_a', 'type' => CRM_Utils_Type::T_BOOLEAN), 'case_id' => array('name' => 'case_id', 'type' => CRM_Utils_Type::T_INT, 'default' => 'UL', 'FKClassName' => 'CRM_Case_DAO_Case'));
     }
     return self::$_fields;
 }
開發者ID:peteainsworth,項目名稱:civicrm-4.2.9-drupal,代碼行數:13,代碼來源:Relationship.php

示例2: 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('Relationship ID'), 'description' => 'Relationship ID', 'required' => true), 'contact_id_a' => array('name' => 'contact_id_a', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact A'), 'description' => 'id of the first contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'contact_id_b' => array('name' => 'contact_id_b', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact B'), 'description' => 'id of the second contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'relationship_type_id' => array('name' => 'relationship_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Relationship Type'), 'description' => 'id of the relationship', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_RelationshipType'), 'start_date' => array('name' => 'start_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Relationship Start Date'), 'description' => 'date when the relationship started'), 'end_date' => array('name' => 'end_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Relationship End Date'), 'description' => 'date when the relationship ended'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Relationship Is Active'), 'description' => 'is the relationship active ?', 'default' => '1'), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Relationship Description'), 'description' => 'Optional verbose description for the relationship.', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_permission_a_b' => array('name' => 'is_permission_a_b', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Contact A has Permission Over Contact B'), 'description' => 'is contact a has permission to view / edit contact and
   related data for contact b ?
 '), 'is_permission_b_a' => array('name' => 'is_permission_b_a', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Contact B has Permission Over Contact A'), 'description' => 'is contact b has permission to view / edit contact and
   related data for contact a ?
 '), 'case_id' => array('name' => 'case_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Relationship Case'), 'description' => 'FK to civicrm_case', 'default' => 'NULL', 'FKClassName' => 'CRM_Case_DAO_Case'));
     }
     return self::$_fields;
 }
開發者ID:kidaa30,項目名稱:yes,代碼行數:16,代碼來源:Relationship.php


注:本文中的CRM_Contact_DAO_Relationship::_fields方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。