示例#1
0
 /**
  * return foreign keys and entity references
  *
  * @static
  * @access public
  * @return array of CRM_Core_EntityReference
  */
 static function getReferenceColumns()
 {
     if (!self::$_links) {
         self::$_links = array(new CRM_Core_EntityReference(self::getTableName(), 'parent_id', 'civicrm_campaign', 'id'), new CRM_Core_EntityReference(self::getTableName(), 'created_id', 'civicrm_contact', 'id'), new CRM_Core_EntityReference(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id'));
     }
     return self::$_links;
 }
示例#2
0
文件: Campaign.php 项目: kidaa30/yes
 /**
  * Returns foreign keys and entity references
  *
  * @return array
  *   [CRM_Core_Reference_Interface]
  */
 static function getReferenceColumns()
 {
     if (!self::$_links) {
         self::$_links = static::createReferenceColumns(__CLASS__);
         self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_campaign', 'id');
         self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName(), 'created_id', 'civicrm_contact', 'id');
         self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName(), 'last_modified_id', 'civicrm_contact', 'id');
     }
     return self::$_links;
 }
示例#3
0
 /**
  * return foreign links
  *
  * @access public
  * @return array
  */
 function &links()
 {
     if (!self::$_links) {
         self::$_links = array('parent_id' => 'civicrm_campaign:id', 'created_id' => 'civicrm_contact:id', 'last_modified_id' => 'civicrm_contact:id');
     }
     return self::$_links;
 }