X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FWebsite.php;h=090969c68a328f2e15e4eff8990604890c2066d7;hb=fe482240fb0d8a15a50325a36b2854ffbafeffab;hp=5373d463eb91c721e8d9b672694f1a863445bb05;hpb=ef10e0b52408ba266239a859756d757a10348228;p=civicrm-core.git diff --git a/CRM/Core/BAO/Website.php b/CRM/Core/BAO/Website.php index 5373d463eb..090969c68a 100644 --- a/CRM/Core/BAO/Website.php +++ b/CRM/Core/BAO/Website.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -39,12 +39,13 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { /** - * Takes an associative array and adds im + * Takes an associative array and adds im. * - * @param array $params (reference ) an assoc array of name/value pairs + * @param array $params + * (reference ) an assoc array of name/value pairs. * - * @return object CRM_Core_BAO_Website object on success, null otherwise - * @static + * @return object + * CRM_Core_BAO_Website object on success, null otherwise */ public static function add(&$params) { $hook = empty($params['id']) ? 'create' : 'edit'; @@ -59,15 +60,15 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { } /** - * Process website + * Process website. * - * @param array $params associated array - * @param int $contactID contact id + * @param array $params + * @param int $contactID + * Contact id. * * @param $skipDelete * * @return void - * @static */ public static function create(&$params, $contactID, $skipDelete) { if (empty($params)) { @@ -109,12 +110,12 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { } /** - * Delete website + * Delete website. * - * @param array $ids website ids + * @param array $ids + * Website ids. * * @return void - * @static */ public static function del($ids) { $query = 'DELETE FROM civicrm_website WHERE id IN ( ' . implode(',', $ids) . ')'; @@ -130,12 +131,11 @@ class CRM_Core_BAO_Website extends CRM_Core_DAO_Website { * @param array $params * @param $values * - * @return boolean - * @static + * @return bool */ public static function &getValues(&$params, &$values) { - $websites = array(); - $website = new CRM_Core_DAO_Website(); + $websites = array(); + $website = new CRM_Core_DAO_Website(); $website->contact_id = $params['contact_id']; $website->find(); @@ -152,14 +152,15 @@ 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 - * @static + * @return array + * the array of website details */ public static function allWebsites($id, $updateBlankLocInfo = FALSE) { if (!$id) { @@ -173,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, @@ -190,4 +191,5 @@ SELECT id, website_type_id } return $websites; } + }