X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FBAO%2FGroupOrganization.php;h=848157d02629694dc1f381f0fe2fd4a4a3e19187;hb=cd2dfbd751a32826ac02c06d348b4bdd9d21109f;hp=0240fdfcd51bd93c9db46d1c3826a27cc4cebce7;hpb=9747cc7e7676edd433c3c76e476a0fd0bd74ea7e;p=civicrm-core.git diff --git a/CRM/Contact/BAO/GroupOrganization.php b/CRM/Contact/BAO/GroupOrganization.php index 0240fdfcd5..848157d026 100644 --- a/CRM/Contact/BAO/GroupOrganization.php +++ b/CRM/Contact/BAO/GroupOrganization.php @@ -1,7 +1,7 @@ group_id = $groupID; if ($dao->find(TRUE)) { @@ -123,15 +121,11 @@ class CRM_Contact_BAO_GroupOrganization extends CRM_Contact_DAO_GroupOrganizatio /** * Method to check group organization relationship exist * - * @param $contactID - * - * @internal param int $contactId + * @param int $contactID * - * @return boolean - * @access public - * @static + * @return bool */ - static function hasGroupAssociated($contactID) { + public static function hasGroupAssociated($contactID) { $orgID = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_GroupOrganization', $contactID, 'group_id', 'organization_id' ); @@ -142,13 +136,15 @@ class CRM_Contact_BAO_GroupOrganization extends CRM_Contact_DAO_GroupOrganizatio } /** - * Function to delete Group Organization + * Delete Group Organization * - * @param int $groupOrganizationID group organization id that needs to be deleted + * @param int $groupOrganizationID + * Group organization id that needs to be deleted. * - * @return mixed|null $results no of deleted group organization on success, false otherwise@access public + * @return int|null + * no of deleted group organization on success, false otherwise */ - static function deleteGroupOrganization($groupOrganizationID) { + public static function deleteGroupOrganization($groupOrganizationID) { $results = NULL; $groupOrganization = new CRM_Contact_DAO_GroupOrganization(); $groupOrganization->id = $groupOrganizationID; @@ -157,5 +153,5 @@ class CRM_Contact_BAO_GroupOrganization extends CRM_Contact_DAO_GroupOrganizatio return $results; } -} +}