X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FContact%2FBAO%2FRelationship.php;h=fd3a24225df99bebd7f08ac3f9f55e2fc5f3df6e;hb=76e7a76c36e82fca4901e87abf8f1afddf2384ef;hp=6dd71afc8a24f6f942389b1dc9a2148367007ea9;hpb=b6e6000818a3bc99d2292cb50ea8470e85bff7de;p=civicrm-core.git diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index 6dd71afc8a..fd3a24225d 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -896,9 +896,8 @@ WHERE relationship_type_id = " . CRM_Utils_Type::escape($type, 'Integer'); * @param array $params * Array of extra values including relationship_type_id per api spec. * - * return string the query for this diretion - * * @return array + * [select, from, where] */ public static function makeURLClause($contactId, $status, $numRelationship, $count, $relationshipId, $direction, $params = array()) { $select = $from = $where = ''; @@ -1025,7 +1024,7 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) } /** - * This is the function to get the list of relationships + * Get a list of relationships * * @param int $contactId * Contact id. @@ -1035,19 +1034,17 @@ LEFT JOIN civicrm_country ON (civicrm_address.country_id = civicrm_country.id) * No of relationships to display (limit). * @param int $count * Get the no of relationships. - * $param int $relationshipId relationship id - * $param array $links the list of links to display - * $param int $permissionMask the permission mask to be applied for the actions - * $param boolean $permissionedContact to return only permissioned Contact - * $param array $params array of variables consistent with filters supported by the api - * return array $values relationship records * @param int $relationshipId - * @param null $links - * @param null $permissionMask + * @param array $links + * the list of links to display + * @param int $permissionMask + * the permission mask to be applied for the actions * @param bool $permissionedContact + * to return only permissioned Contact * @param array $params * * @return array|int + * relationship records */ static function getRelationship( $contactId = NULL,