[Midas] item's parent info

Mona Wong mona at sdsc.edu
Thu Jul 5 16:38:31 EDT 2012


	In my controller, I have the itemid and I'd like to know the directory which contains that item, how do I get that info?

	I tried "$this->Item->load ( $itemid )" but that doesn't contain the info I needed:

item = object(ItemDao)#134 (17) { ["_model"]=> string(4) "Item" ["key":protected]=> NULL ["ModelLoader"]=> object(MIDAS_ModelLoader)#130 (0) { } ["_key"]=> string(7) "item_id" ["saved"]=> bool(true) ["item_id"]=> string(5) "18876" ["name"]=> string(9) "annio.xml" ["description"]=> string(0) "" ["type"]=> string(1) "0" ["sizebytes"]=> string(4) "1192" ["date_creation"]=> string(19) "2012-06-29 19:50:19" ["date_update"]=> string(19) "2012-07-02 16:10:01" ["thumbnail"]=> string(0) "" ["view"]=> string(2) "18" ["download"]=> string(2) "11" ["privacy_status"]=> string(1) "1" ["uuid"]=> string(45) "<scrubbed>" } ]

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/496d27b7/attachment.html>


More information about the Midas mailing list