[Midas] Fwd: item's parent info
Mona Wong
mona at sdsc.edu
Thu Jul 5 18:27:55 EDT 2012
Never mind, I found it, $folder[0]->getFolder_id() (:
Mona
Begin forwarded message:
>> 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
You are the light you wish to see.
*********************************************
More information about the Midas
mailing list