public function shadedevents($request, $json=true, $calendars = null, $offset=3000)
    {
        if (!$calendars) {
            $calendars = PublicCalendar::get();
        }
        $calendars = $calendars->filter(array(
            'shaded' => true
        ));

        return $this->publicevents($request, $json, $calendars, $offset);
    }
public function shadedevents($request, $json=true, $calendars = null, $offset=3000)
    {
        if (!$calendars) {
            $calendars = PublicCalendar::get();
        }
        $calendars = $calendars->filter(array(
            'shaded' => true
        ));

        return $this->publicevents($request, $json, $calendars, $offset);
    }
public function shadedevents ( $ request , $ json = true , $ calendars = null , $ offset = 3000 ) { if ( ! $ calendars ) { $ calendars = PublicCalendar :: get ( ) ; } $ calendars = $ calendars -> filter ( array ( 'shaded' => true ) ) ; return $ this -> publicevents ( $ request , $ json , $ calendars , $ offset ) ; }
Shaded events controller
Shaded events for the calendar are called once on calendar initialization,
hence the offset of 3000 days
Shaded events controller Shaded events for the calendar are called once on calendar initialization hence the offset of 3000 days