X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FWebsite.php;h=090969c68a328f2e15e4eff8990604890c2066d7;hb=e98a98049142cec1b405f66dab5ced1be07336ec;hp=0b2d83f27db454cb5b0d2e2048b5ca117e25e7b6;hpb=fe6a56117db7e9dada18e60f91de717a89013d86;p=civicrm-core.git diff --git a/CRM/Core/BAO/Website.php b/CRM/Core/BAO/Website.php index 0b2d83f27d..090969c68a 100644 --- a/CRM/Core/BAO/Website.php +++ b/CRM/Core/BAO/Website.php @@ -1,7 +1,7 @@ contact_id = $params['contact_id']; $website->find(); @@ -155,17 +152,17 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { } /** - * Get all the websites for a specified contact_id + * Get all the websites for a specified contact_id. * - * @param int $id the contact id + * @param int $id + * The contact id. * * @param bool $updateBlankLocInfo * - * @return array the array of website details - * @access public - * @static + * @return array + * the array of website details */ - static function allWebsites($id, $updateBlankLocInfo = FALSE) { + public static function allWebsites($id, $updateBlankLocInfo = FALSE) { if (!$id) { return NULL; } @@ -177,8 +174,8 @@ SELECT id, website_type_id $params = array(1 => array($id, 'Integer')); $websites = $values = array(); - $dao = CRM_Core_DAO::executeQuery($query, $params); - $count = 1; + $dao = CRM_Core_DAO::executeQuery($query, $params); + $count = 1; while ($dao->fetch()) { $values = array( 'id' => $dao->id, @@ -194,5 +191,5 @@ SELECT id, website_type_id } return $websites; } -} +}