Example #1
0
 private static function isInSubscriptionArray(\steam_calendar $steamCalendar, $subscriptions)
 {
     $steamCalendarId = $steamCalendar->get_id();
     foreach ($subscriptions as $subscription) {
         $id = $subscription->get_id();
         if ($id == $steamCalendarId) {
             return true;
         }
     }
     return false;
 }
Example #2
0
 private static function isSteamCalendarEmpty(\steam_calendar $steamCalendar)
 {
     return count($steamCalendar->get_date_objects()) == 0;
 }