Author Topic: Get Workspace Parent  (Read 6137 times)


  • Newbie
  • *
  • Posts: 10
    • View Profile
Get Workspace Parent
« on: July 05, 2010, 10:58:42 pm »

I am modifying the calendar so I can use it as a roster.  One of the mods is to display the workspaces in the calendar view.  To acheive this I am modifying :


I want to display the workspace the task is assigned to, but also the workspace's parent.  To display the workspace I am using:

$ws = $event->getWorkspaces();

foreach ($ws as $w) {
    echo  $w->getName(); 

But I don't know how to get the Parent Workspace from here, anybody got any Ideas ?



  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: Get Workspace Parent
« Reply #1 on: July 12, 2010, 12:05:43 pm »
Take a look at this mod for showing workspace names in the calendar.

For the parent workspace issue, this should help:
Code: [Select]
$parent = $ws->getParentWorkspace();