X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FActivity%2FBAO%2FICalendar.php;h=901bfe9d18d03e90a1ce63a03655af38d24618d3;hb=1024e1784fb68b8529a77143f5191a60d70837cf;hp=13212cc107e762b1ccc87aebe6ab28448f52463e;hpb=6628866da4eb17b8ff190928d8afdbee11526ae6;p=civicrm-core.git diff --git a/CRM/Activity/BAO/ICalendar.php b/CRM/Activity/BAO/ICalendar.php index 13212cc107..901bfe9d18 100644 --- a/CRM/Activity/BAO/ICalendar.php +++ b/CRM/Activity/BAO/ICalendar.php @@ -1,7 +1,7 @@ activity = $act; } @@ -63,9 +63,8 @@ class CRM_Activity_BAO_ICalendar { * @param array $contacts Array of contacts (attendees) * * @return string Array index of the added attachment in the $attachments array, or else null. - * @access public */ - function addAttachment( &$attachments, $contacts ) { + public function addAttachment( &$attachments, $contacts ) { // Check preferences setting if ( CRM_Core_BAO_Setting::getItem( CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'activity_assignee_notification_ics' ) ) { $config = &CRM_Core_Config::singleton(); @@ -102,13 +101,16 @@ class CRM_Activity_BAO_ICalendar { return null; } - function cleanup() { + public function cleanup() { if ( !empty ( $this->icsfile ) ) { @unlink( $this->icsfile ); } } // TODO: Is there a better way to do this? + /** + * @return string + */ private function getPrimaryEmail() { $session = &CRM_Core_Session::singleton(); $uid = $session->get('userID'); @@ -130,4 +132,3 @@ class CRM_Activity_BAO_ICalendar { return $primary; } } -