<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
*
* @param object $act Reference to an activity object
*
- * @return void
- * @access public
+ * @return \CRM_Activity_BAO_ICalendar
+ @access public
*/
- function __construct( &$act ) {
+ public function __construct( &$act ) {
$this->activity = $act;
}
* @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();
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');
return $primary;
}
}
-