class CRM_Activity_BAO_ActivityContact extends CRM_Activity_DAO_ActivityContact {
/**
- * class constructor
+ * Class constructor
*/
function __construct() {
parent::__construct();
}
/**
- * funtion to add activity contact
+ * Funtion to add activity contact
*
* @param array $params the values for this table: activity id, contact id, record type
*
}
/**
- * function to retrieve names of contact by activity_id
+ * Retrieve names of contact by activity_id
*
- * @param int $id ID of the activity
- * @param string $type type of interaction
+ * @param int $activityID
+ * @param int $recordTypeID
+ * @param bool $alsoIDs
*
* @return array
*
* @access public
- *
*/
static function getNames($activityID, $recordTypeID, $alsoIDs = FALSE) {
$names = array();
}
/**
- * function to retrieve id of target contact by activity_id
+ * Retrieve id of target contact by activity_id
*
- * @param int $id ID of the activity
+ * @param int $activityID
+ * @param int $recordTypeID
*
* @return mixed
*
* @access public
- *
*/
static function retrieveContactIdsByActivityId($activityID, $recordTypeID) {
$activityContact = array();
return $activityContact;
}
+ /**
+ * Get the links associate array as defined by the links.ini file.
+ *
+ *
+ * Experimental... -
+ * Should look a bit like
+ * [local_col_name] => "related_tablename:related_col_name"
+ *
+ *
+ * @return array|null
+ * array = if there are links defined for this table.
+ * empty array - if there is a links.ini file, but no links on this table
+ * null - if no links.ini exists for this database (hence try auto_links).
+ * @access public
+ * @see DB_DataObject::getLinks(), DB_DataObject::getLink()
+ */
+ /**
+ * @return array|null
+ */
function links() {
$link = array('activity_id' => 'civicrm_activity:id');
return $link;