Ankündigung

Einklappen
Keine Ankündigung bisher.

[Erledigt] Exchange 2007 KalenderItems

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [Erledigt] Exchange 2007 KalenderItems

    Hallo,

    folgender Sachverhalt: Ich lese Kalendereinträge aus dem Exchange - funktioniert prächtig vorrausgesetzt es sind mehr als einer.

    PHP-Code:
    include 'ExchangeNTLMSoapClient.php';

    $FindItem->Traversal "Shallow";
    $FindItem->ItemShape->BaseShape "AllProperties";
    $FindItem->ParentFolderIds->DistinguishedFolderId->Id "calendar";
    $FindItem->CalendarView->StartDate "2010-06-01T00:00:00Z";
    $FindItem->CalendarView->EndDate "2010-06-30T00:00:00Z";
    $result $client->FindItem($FindItem);
    $calendaritems $result->ResponseMessages->FindItemResponseMessage->RootFolder->Items->CalendarItem;
    var_dump($calendaritems);
    foreach (
    $calendaritems as $item)
    {
        echo 
    $item->Subject "n";

    In der Variable ist auch etwas drin, und ->Subject gibt es laut var-dump auch aber beim echo scheint es vollkommen ignoriert zu werden.

    Das ist der dump:

    Code:
    object(stdClass)[12]
      public 'ItemId' => 
        object(stdClass)[13]
          public 'Id' => string 'AAAeAERlbm5pcy5Gcmlja2VAYW1lZGVzLWdyb3VwLmNvbQBGAAAAAACw6HAM34RhQLV76K01oozgBwCK9QbcyXUiTqLe7zD1bYoaAAA1FEk7AACRy47Bp3tPR7xwW+WvCW/ZAAx6zg4aAAA=' (length=144)
          public 'ChangeKey' => string 'DwAAABQAAABeJ1VDGuHhTZGIwBMPMQUBAAEEBQ==' (length=40)
      public 'ParentFolderId' => 
        object(stdClass)[14]
          public 'Id' => string 'AAAeAERlbm5pcy5Gcmlja2VAYW1lZGVzLWdyb3VwLmNvbQAuAAAAAACw6HAM34RhQLV76K01oozgAQCK9QbcyXUiTqLe7zD1bYoaAAA1FEk7AAA=' (length=112)
          public 'ChangeKey' => string 'AQAAAA==' (length=8)
      public 'ItemClass' => string 'IPM.Appointment' (length=15)
      public 'Subject' => string 'test' (length=4)
      public 'Sensitivity' => string 'Normal' (length=6)
      public 'DateTimeReceived' => string '2010-05-26T07:33:22Z' (length=20)
      public 'Size' => int 6305
      public 'Importance' => string 'Normal' (length=6)
      public 'IsSubmitted' => boolean false
      public 'IsDraft' => boolean false
      public 'IsFromMe' => boolean false
      public 'IsResend' => boolean false
      public 'IsUnmodified' => boolean false
      public 'DateTimeSent' => string '2010-05-26T07:33:22Z' (length=20)
      public 'DateTimeCreated' => string '2010-05-26T07:33:19Z' (length=20)
      public 'ReminderDueBy' => string '2010-05-31T22:00:00Z' (length=20)
      public 'ReminderIsSet' => boolean true
      public 'ReminderMinutesBeforeStart' => string '1080' (length=4)
      public 'DisplayCc' => string '' (length=0)
      public 'DisplayTo' => string '' (length=0)
      public 'HasAttachments' => boolean false
      public 'Culture' => string 'de-DE' (length=5)
      public 'Start' => string '2010-05-31T22:00:00Z' (length=20)
      public 'End' => string '2010-06-01T22:00:00Z' (length=20)
      public 'IsAllDayEvent' => boolean true
      public 'LegacyFreeBusyStatus' => string 'Free' (length=4)
      public 'Location' => string '' (length=0)
      public 'IsMeeting' => boolean false
      public 'IsRecurring' => boolean false
      public 'MeetingRequestWasSent' => boolean false
      public 'IsResponseRequested' => boolean true
      public 'CalendarItemType' => string 'Single' (length=6)
      public 'MyResponseType' => string 'Unknown' (length=7)
      public 'Organizer' => 
        object(stdClass)[15]
          public 'Mailbox' => 
            object(stdClass)[16]
              public 'Name' => string 'Fricke Dennis' (length=13)
      public 'Duration' => string 'P1D' (length=3)
      public 'TimeZone' => string '(GMT+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien' (length=57)
      public 'AppointmentSequenceNumber' => int 0
      public 'AppointmentState' => int 0
      public 'ConferenceType' => int 0
      public 'AllowNewTimeProposal' => boolean true
      public 'NetShowUrl' => string '' (length=0)
    Wenn es >1 Item sind funktioniert es. Warum?


  • #2
    Problem behoben. Ergebnis ist kein Array wenn nur 1 Datensatz da ist.

    Sorry

    Kommentar

    Lädt...
    X