2017 © Pedro Peláez
 

symfony-bundle calendar-bundle

Useful Calendar Features.

image

striide/calendar-bundle

Useful Calendar Features.

  • Tuesday, December 3, 2013
  • by chadl
  • Repository
  • 1 Watchers
  • 3 Stars
  • 89 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

StriideCalendarBundle

The intent for this Bundle is to provide a bridge between http://kigkonsult.se/iCalcreator/ and Symfony, (*1)

Routing

StriideCalendarBundle: resource: "@StriideCalendarBundle/Resources/config/routing.yml" prefix: /, (*2)

Example Use:

    $calendar = new Calendar();
    $calendar->setGuid(md5("some unique randome identifier));
    $calendar->setName("My Calendar Feed");
    $calendar->setDescription("Description of my Calendar Feed");

    $items = ...; // set of events to be used in the calendar feed

    foreach($items as $item)
    {
      $ce = new Event();
      $ce->setStarttime($item->getLocalStartTime());
      $ce->setLocation($item->getLocation());
      $ce->setEndtime($item->getLocalEndTime());
      $ce->setName($item->getTitle());
      
      $calendar->addEvent($ce);
      $calendar->setTimezone($item->getDateTimeZone());
    }

    $ics = $this->get('striide_calendar.service')->calendarToIcs($calendar);
    $filename = "feed.ics";
    return new Response(
                        $ics->render(),
                        200,
                        array(
                              'Content-type' => "text/calendar",
                              'Content-Disposition' => 'inline; filename="'.$filename.'"'
                            )
                          );

The Versions

03/12 2013

dev-master

9999999-dev https://github.com/chadl/StriideCalendarBundle.git

Useful Calendar Features.

  Sources   Download

MIT

The Requires

 

by Chad Lindstrom

calendar symfony2