Inheritance: extends Flake\Core\Model
Example #1
0
 public function destroy()
 {
     $oContacts = $this->getContactsBaseRequester()->execute();
     foreach ($oContacts as $contact) {
         $contact->destroy();
     }
     parent::destroy();
 }
Example #2
0
 public function destroy()
 {
     # TODO: delete all related resources (principals, calendars, calendar events, contact books and contacts)
     # Destroying identity principal
     $this->oIdentityPrincipal->destroy();
     $oCalendars = $this->getCalendarsBaseRequester()->execute();
     foreach ($oCalendars as $calendar) {
         $calendar->destroy();
     }
     $oAddressBooks = $this->getAddressBooksBaseRequester()->execute();
     foreach ($oAddressBooks as $addressbook) {
         $addressbook->destroy();
     }
     parent::destroy();
 }
Example #3
0
 public function destroy()
 {
     $oEvents = $this->getEventsBaseRequester()->execute();
     foreach ($oEvents as $event) {
         $event->destroy();
     }
     parent::destroy();
 }