If you look in the base class for models, they'll define some properties that will have getters and setters automatically created for them.  For example, in the FolderModelBase class, there is the property <b>folder_id</b>, which will have an auto generated getter <b>getFolderId</b>, or apparently (in a surprise to me) <b>getFolder_id</b>.  The first letter of the property is capitalized in the getter, as is each letter following an underscore.<br>
<br><div class="gmail_quote">On Thu, Jul 5, 2012 at 6:27 PM, Mona Wong <span dir="ltr"><<a href="mailto:mona@sdsc.edu" target="_blank">mona@sdsc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
        Never mind, I found it, $folder[0]->getFolder_id() (:<br>
<br>
Mona<br>
<br>
<br>
Begin forwarded message:<br>
<div class="im"><br>
>> The dao classes have auto-generated getter methods for each of their data properties.  So to get the item id, you would call:<br>
>><br>
>> $itemId = $item->getItemId();<br>
>><br>
>> 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:<br>
>><br>
>> $folders = $item->getFolders();<br>
>><br>
>> It will return a list of folder daos representing all of the folders in which the item resides.<br>
><br>
>       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.<br>

><br>
> thanks,<br>
> Mona<br>
<br>
*********************************************<br>
    Mona Wong<br>
    Web & iPad Application Developer<br>
    San Diego Supercomputer Center<br>
<br>
</div>    You are the light you wish to see.<br>
<div class="HOEnZb"><div class="h5">*********************************************<br>
<br>
<br>
<br>
_______________________________________________<br>
Midas mailing list<br>
<a href="mailto:Midas@public.kitware.com">Midas@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/midas" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/midas</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>Michael Grauer<br>R & D Engineer<br>Kitware, Inc.<br>919 969 6990 x322<br><br><br><br>