<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><span class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-tab-span" style="white-space:pre"> </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 class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">*********************************************<br> Mona Wong<br> Web & iPad Application Developer</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "> San Diego Supercomputer Center<br><br> You are the light you wish to see.<br>*********************************************<br><br><br></div></span></span>
</div>
<br></div></body></html>