I have a function loadModule();
in class core
, but to load modules I need to define variables in the construct, and many of them require core. Would I simply use loadModule("someModule", $settings, $dbc, $core, $etc...);
or loadModule("someModule", $settings, $dbc, $this, $etc...);
since this function is in the core class that is defined by $core? I'm confused right now, and help would be appreciated. Thanks
EDIT:
Intended use would look something like
$this->core->loadModule("initialLoad, $settings, $version, $dbc, $parser, $layout);
The module construct would look like
public function __construct($settings, $version, $dbc, $layout, $core, $parser){
$this->settings = $settings;
$this->version = $version;
$this->dbc = $dbc;
$this->layout = $layout;
$this->core = $core;
$this->parser = $parser;
}