Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Daniel W

    (@daniel-w-1)

    Like this (mockup from a part of module > ical > models> ical.php )

    reset( $this->shifts );
    		foreach( $this->shifts as $sh ){
    			$views = array(
    				'location'	=> $sh->present_location(HC_PRESENTER::VIEW_RAW),
    				'user'		=> $sh->present_user(HC_PRESENTER::VIEW_RAW),
    				'notes'		=> $sh->present_notes(HC_PRESENTER::VIEW_RAW),
    				);
    
    			$event = new hc_vevent(); // initiate a new EVENT
    			$event->setProperty( 'uid', 'obj-' . $sh->id . '-' . $my_unique );
    			$event->setProperty( 'location', $views['location'] );
    			$event->setProperty( 'summary', $views['user'] . ' @ ' . $views['location']  );
    			$event->setProperty( 'description', $views['notes']  );

    The imaginary rows are:
    'notes' => $sh->present_notes(HC_PRESENTER::VIEW_RAW),
    and
    $event->setProperty( 'description', $views['notes'] );

    Hi Daniel,
    yes we’ve got this in the development plan, hope to get it done within weeks. It will be a bit more complicated that this code because the comments option is packaged as a module which might be missing on a certain install (as it is with free versions).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘iCal Sync | Description’ is closed to new replies.