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? Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/88152-object-question/#findComment-451057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.