X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=CRM%2FCore%2FBAO%2FPhone.php;h=b83e8ff917045bb25c377414d5b959f96e35b2c3;hb=76e7a76c36e82fca4901e87abf8f1afddf2384ef;hp=57712aeb1b3d6df71def7aca1307c7090696fc87;hpb=771e2548641c460d0f7a244ad0aefb05c703b478;p=civicrm-core.git diff --git a/CRM/Core/BAO/Phone.php b/CRM/Core/BAO/Phone.php index 57712aeb1b..b83e8ff917 100644 --- a/CRM/Core/BAO/Phone.php +++ b/CRM/Core/BAO/Phone.php @@ -1,7 +1,7 @@ fetch()) { $values = array( 'locationType' => $dao->locationType, @@ -180,16 +176,16 @@ ORDER BY civicrm_phone.is_primary DESC, phone_id ASC "; /** * Get all the phone numbers for a specified location_block id, with the primary phone being first * - * @param array $entityElements the array containing entity_id and - * entity_table name + * @param array $entityElements + * The array containing entity_id and. + * entity_table name * * @param null $type * - * @return array the array of phone ids which are potential numbers - * @access public - * @static + * @return array + * the array of phone ids which are potential numbers */ - static function allEntityPhones($entityElements, $type = NULL) { + public static function allEntityPhones($entityElements, $type = NULL) { if (empty($entityElements)) { return NULL; } @@ -237,12 +233,12 @@ ORDER BY ph.is_primary DESC, phone_id ASC "; /** * Set NULL to phone, mapping, uffield * - * @param $optionId value of option to be deleted + * @param $optionId + * Value of option to be deleted. * - * return void - * @static + * @return void */ - static function setOptionToNull($optionId) { + public static function setOptionToNull($optionId) { if (!$optionId) { return; } @@ -270,10 +266,9 @@ ORDER BY ph.is_primary DESC, phone_id ASC "; /** * Call common delete function */ - static function del($id) { + public static function del($id) { // Ensure mysql phone function exists CRM_Core_DAO::checkSqlFunctionsExist(); return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Phone', $id); } } -