Separate names with a comma.
Comments in 'Plugin Development' started by JackboyPlay, Apr 13, 2016.
Is it possible to get the array from another plugin or set the array values from another plugin?
Yes.
@hoyinm14mc sorry if I ask but have you a code for that?
Do a getter. PHP: public function getArray(){return $this->array;}
public function getArray(){return $this->array;}
And how can I set the value of the array?
Handle it like a normal array.
Okay
OMG why would you do that???
Why don't simply get the class property directly? $otherPluginObject->publicArray
Why not?