The full set of revisions can be retrieved using the item dao:<div><br></div><div>$revs = $itemDao->getRevisions();</div><div><br></div><div>They should be in order from oldest to newest, I think, but you might want to verify that :)</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Zach<br><br><div class="gmail_quote">On Wed, Sep 5, 2012 at 2:08 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"><div style="word-wrap:break-word"><div><br></div><span style="white-space:pre-wrap"> </span>Another question about retrieving information about an item from my controller...<div>
<br><div><blockquote type="cite"><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px"><span><div><div><div><div><blockquote type="cite"><div><div style="font-family:Helvetica;font-size:13px">
<div>// Load our models</div><div>$ItemModel = MidasLoader::loadModel('Item');</div><div>$ItemRevisionModel = MidasLoader::loadModel('ItemRevision');</div><div>$BitstreamModel = MidasLoader::loadModel('Bitstream');</div>
<div><br></div><div>// Get the item and its last revision from the time id</div><div>$itemDao = $ItemModel->load($itemId);</div><div>$lastRevisionDao = $ItemModel->getLastRevision($itemDao);</div></div></div></blockquote>
</div></div></div></div></span></blockquote></blockquote><div><br></div><span style="white-space:pre-wrap"> </span>The last line above gives me the last revision of an item. How do I get all the revisions? And what order will the revisions be in...first to last (most recent)?</div>
<div><br></div><div>thanks,</div><div>Mona</div><div><br></div><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
*********************************************<br> Mona Wong<br> Web & iPad Application Developer</div><div style="word-wrap:break-word"> San Diego Supercomputer Center<br><br> You are the light you wish to see.<br>
*********************************************<br><br><br></div></span></span>
</div>
<br></div></div><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>
<br></blockquote></div><br><br clear="all"><div><br></div>
</div>