Feng Forum

Other Topics => Development => Applications => : jc July 05, 2010, 10:58:42 PM

: Get Workspace Parent
: jc July 05, 2010, 10:58:42 PM
Hi,

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 :

application/views/event/viewdate.php

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 ?

TIA,
  JC
: Re: Get Workspace Parent
: cabeza July 12, 2010, 12:05:43 PM
Take a look at this mod (http://forums.fengoffice.com/index.php?topic=4305.0) for showing workspace names in the calendar.

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