X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FNote.php;h=038dbf77447c936bcd1448192ae887ec99c40a47;hb=945f423dcc24c233767fc77be9f9bb2d3e4b7a8d;hp=bc8fd6c7a708947b561954b514fa662d063c61af;hpb=29d98e1314e345f1b9044f5359c2d0a67f380d21;p=civicrm-core.git diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php index bc8fd6c7a7..038dbf7744 100644 --- a/CRM/Core/BAO/Note.php +++ b/CRM/Core/BAO/Note.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -23,12 +23,12 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2014 + * @copyright CiviCRM LLC (c) 2004-2015 * $Id$ * */ @@ -39,7 +39,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { /** - * Const the max number of notes we display at any given time + * Const the max number of notes we display at any given time. * @var int */ const MAX_NOTES = 3; @@ -78,7 +78,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { * @param object $note * Either the id of the note to retrieve, or the CRM_Core_DAO_Note object itself. * - * @return boolean + * @return bool * TRUE if the note should be displayed, otherwise FALSE * */ @@ -125,7 +125,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { } /** - * Takes an associative array and creates a note object + * Takes an associative array and creates a note object. * * the function extract all the params it needs to initialize the create a * note object. the params array could contain additional unused name/value @@ -139,7 +139,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { * @return object * $note CRM_Core_BAO_Note object */ - public static function &add(&$params, $ids = array()) { + public static function add(&$params, $ids = array()) { $dataExists = self::dataExists($params); if (!$dataExists) { return CRM_Core_DAO::$_nullObject; @@ -218,12 +218,12 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { } /** - * Check if there is data to create the object + * Check if there is data to create the object. * * @param array $params * (reference ) an assoc array of name/value pairs. * - * @return boolean + * @return bool */ public static function dataExists(&$params) { // return if no data present @@ -281,7 +281,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { } /** - * Delete the notes + * Delete the notes. * * @param int $id * Note id. @@ -332,7 +332,7 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { } /** - * Delete all records for this contact id + * Delete all records for this contact id. * * @param int $id * ID of the contact for which note needs to be deleted. @@ -388,7 +388,7 @@ ORDER BY modified_date desc"; } /** - * Get log record count for a Contact + * Get log record count for a Contact. * * @param int $contactID * @@ -411,7 +411,7 @@ ORDER BY modified_date desc"; } /** - * Get all descendent notes of the note with given ID + * Get all descendent notes of the note with given ID. * * @param int $parentId * ID of the note to start from. @@ -429,7 +429,7 @@ ORDER BY modified_date desc"; } /** - * Get total count of direct children visible to the current user + * Get total count of direct children visible to the current user. * * @param int $id * Note ID. @@ -453,7 +453,7 @@ ORDER BY modified_date desc"; } /** - * Recursive function to get all descendent notes of the note with given ID + * Recursive function to get all descendent notes of the note with given ID. * * @param int $parentId * ID of the note to start from. @@ -548,7 +548,7 @@ ORDER BY modified_date desc"; } /** - * Delete all note related to contact when contact is deleted + * Delete all note related to contact when contact is deleted. * * @param int $contactID * Contact id whose notes to be deleted. @@ -580,4 +580,5 @@ WHERE participant.contact_id = %1 AND note.entity_table = 'civicrm_participant' self::del($contactNoteId->id, FALSE); } } + }