X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FLocation.php;h=f527f9b6b4cc5a77893f50a44422e590a8e87b71;hb=ad37ac8ed3992e075cddfef34d562f4dc8c22247;hp=cfc74cd982e0b2e33a233f7955d68f1be313db40;hpb=f9c505543e6e06508b9567e1d04f439e16d6642f;p=civicrm-core.git diff --git a/CRM/Core/BAO/Location.php b/CRM/Core/BAO/Location.php index cfc74cd982..f527f9b6b4 100644 --- a/CRM/Core/BAO/Location.php +++ b/CRM/Core/BAO/Location.php @@ -1,7 +1,7 @@ 'Billing'))); - } - return $billingTypeID; - } - /** - * Creates the entry in the civicrm_loc_block. + * @return int */ public static function createLocBlock(&$location, &$entityElements) { $locId = self::findExisting($entityElements); @@ -154,6 +137,10 @@ class CRM_Core_BAO_Location extends CRM_Core_DAO { /** * Takes an entity array and finds the existing location block. + * + * @param array $entityElements + * + * @return int */ public static function findExisting($entityElements) { $eid = $entityElements['entity_id']; @@ -177,8 +164,8 @@ WHERE e.id = %1"; * @param array $params * (reference ) an assoc array of name/value pairs. * - * @return object - * CRM_Core_BAO_locBlock object on success, null otherwise + * @return CRM_Core_BAO_locBlock + * Object on success, null otherwise */ public static function addLocBlock(&$params) { $locBlock = new CRM_Core_DAO_LocBlock(); @@ -193,8 +180,6 @@ WHERE e.id = %1"; * * @param int $locBlockId * Id of the Location Block. - * - * @return void */ public static function deleteLocBlock($locBlockId) { if (!$locBlockId) { @@ -252,7 +237,9 @@ WHERE e.id = %1"; } /** - * @param $entityBlock + * Get values. + * + * @param array $entityBlock * @param bool $microformat * * @return array @@ -289,8 +276,6 @@ WHERE e.id = %1"; * Contact id. * @param int $locationTypeId * Id of the location to delete. - * - * @return void */ public static function deleteLocationBlocks($contactId, $locationTypeId) { // ensure that contactId has a value @@ -367,12 +352,10 @@ WHERE e.id = %1"; } /** - * If contact has data for any location block, make sure - * contact should have only one primary block, CRM-5051 + * Make sure contact should have only one primary block, CRM-5051. * * @param int $contactId * Contact id. - * */ public static function checkPrimaryBlocks($contactId) { if (!$contactId) { @@ -414,6 +397,8 @@ WHERE e.id = %1"; } /** + * Get chain select values (whatever that means!). + * * @param mixed $values * @param string $valueType * @param bool $flatten