[Midas] item's parent info
Mona Wong
mona at sdsc.edu
Thu Jul 5 18:22:56 EDT 2012
> The dao classes have auto-generated getter methods for each of their data properties. So to get the item id, you would call:
>
> $itemId = $item->getItemId();
>
> Items are actually allowed to be simultaneously in multiple folders (although that is uncommon), and the way to get all of the parent folders of an item is to call:
>
> $folders = $item->getFolders();
>
> It will return a list of folder daos representing all of the folders in which the item resides.
Excuse my ignorance but how do I get the folder_id from the $folders? I tried accessing $folders[0]->Folderid() and $folders[0]->FolderID() but they did not work and I couldn't find where the AppDao (superclass of FolderDao) is defined.
thanks,
Mona
*********************************************
Mona Wong
Web & iPad Application Developer
San Diego Supercomputer Center
Believing we are in control is an
illusion that brings suffering.
*********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/midas/attachments/20120705/8b9fc1a6/attachment.html>
More information about the Midas
mailing list