Author Topic: How do I add owners name to events in Calendar  (Read 918 times)

mknowlton

  • Newbie
  • *
  • Posts: 8
    • View Profile
How do I add owners name to events in Calendar
« on: November 22, 2016, 05:03:31 PM »
I have recently installed the community edition of Feng Office and so far everything is going well with one exception. When I pull up the calendar and choose to show everyone I have no way of knowing which appointment belongs to which user. The code is:

$event_id = $event->getid();
$subject = clean($event->getObjectName());

I have modified this to:

$event_id = $event->getid();
$subject = clean($event->getcreatedby()) . ' - ' . clean($event->getObjectName());

Using the getcreatedby It returns "object" instead of the calendar owner, I have tried several others but none will return the actual calendar owner in human readable format. is there and existing function/variable that I can call to return this?

 

anything