function GoogleCalendarWrapper($email, $password, $cusr = "", $assigned_link = "") { global $current_user; $this->feed_url = "http://www.google.com/calendar/feeds/default/private/full"; if (trim($current_user->google_mcalendar_c) != '' and trim($current_user->google_mcalendar_c) != '1') { $this->feed_url = $current_user->google_mcalendar_c; } if (trim($cusr->google_mcalendar_c) != '' and trim($cusr->google_mcalendar_c) != '1') { $this->feed_url = $cusr->google_mcalendar_c; } if ($assigned_link != "") { $this->feed_url = $assigned_link; } $this->email = $email; $this->password = $password; $this->feed_url_prepared = $this->feed_url; parent::MyCurl(); }