tibberous Posted January 28, 2008 Share Posted January 28, 2008 I have an object. When I print_r it, I get this: mosParameters Object ( [_params] => stdClass Object ( [catid] => 3 [style] => random [items] => [moduleclass_sfx] => [intro_only] => 1 [hide_author] => 1 [hide_createdate] => 0 [hide_modifydate] => 1 [link_titles] => 0 ) [_raw] => catid=3 style=random items= moduleclass_sfx= [_path] => [_type] => component [_xmlElem] => ) How do I refer to moduleclass_sfx -> _type? I tried array notation, object syntax, even the get method built into the class, but can't get it =( Any ideas? Link to comment https://forums.phpfreaks.com/topic/88152-object-question/ Share on other sites More sharing options...
trq Posted January 28, 2008 Share Posted January 28, 2008 Can we see the class definition for this object and your calling code? That stdClass object in there probably shouldn't be there. Link to comment https://forums.phpfreaks.com/topic/88152-object-question/#findComment-451050 Share on other sites More sharing options...
ziv Posted January 28, 2008 Share Posted January 28, 2008 here all u need: http://help.joomla.org/api/Joomla/mosParameters.html Link to comment https://forums.phpfreaks.com/topic/88152-object-question/#findComment-451057 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.