Jump to content

szbztz

New Members
  • Posts

    2
  • Joined

  • Last visited

szbztz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I'd like to access a protected object parameter but I simply can't figure it out how. I'll attach the file in witch if I var_dump the $this variable from the function getData() I get something like... bject(ModRokSprocket)#1098 (4) { ["params":protected]=> object(RokCommon_Registry)#1061 (1) { ["data":protected]=> object(stdClass)#1058 (31) { ["run_content_plugins"]=> string( "onmodule" ["provider"]=> string(6) "joomla" ["layout"]=> string( "features" ["joomla_articles"]=> object(stdClass)#1051 (7) { ["1"]=> object(stdClass)#1077 (1) { ["root"]=> object(stdClass)#935 (1) { ["article"]=> string(1) "3" } } ["2"]=> object(stdClass)#1052 (1) { ["root"]=> object(stdClass)#1004 (1) { ["article"]=> string(1) "4" } } My question is how could I unset the $this->joomla_articles[1] for examle. I've read that the protected object can be accessed from the class itself but I really can't figure it out how. ModRokSprocket.php
  2. Ok this might be very simple to few but I simply can't figure it out. If I var_dump a $this variable in a script I get the following...object(ModRokSprocket)#1098 (4) { ["params":protected]=> object(RokCommon_Registry)#1061 (1) { ["data":protected]=> object(stdClass)#1058 (31) { ["run_content_plugins"]=> string( "onmodule" ["provider"]=> string(6) "joomla" ["layout"]=> string( "features" ["joomla_articles"]=> object(stdClass)#1051 (7) { ["1"]=> object(stdClass)#1077 (1) { ["root"]=> object(stdClass)#935 (1) { ["article"]=> string(1) "3" } } ["2"]=> object(stdClass)#1052 (1) { ["root"]=> object(stdClass)#1004 (1) { ["article"]=> string(1) "4" } } If id do say $this->params = NULL it works but how can I set the data for example because if I do $this->params->data is wrong or $this->params['RokCommon_Registry']->data is also a no go...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.