Пример #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(), 'mailing_id', 'civicrm_mailing', 'id'), new CRM_Core_EntityReference(self::getTableName(), 'parent_id', 'civicrm_mailing_job', 'id'));
     }
     return self::$_links;
 }
Пример #2
0
 /**
  * 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(), 'mailing_id', 'civicrm_mailing', 'id');
         self::$_links[] = new CRM_Core_Reference_Basic(self::getTableName(), 'parent_id', 'civicrm_mailing_job', 'id');
     }
     return self::$_links;
 }