public function __construct($MlmSystem, $config) { $this->MlmSystem =& $MlmSystem; $this->modx =& $MlmSystem->modx; $this->config =& $config; if ($this->MiniShop2 = $this->modx->getService('miniShop2')) { $this->MiniShop2->initialize($this->modx->context->key); } else { $this->MlmSystem->printLog('MiniShop2Profits requires installed miniShop2.', 1); } }
/** @inheritdoc} */ public function printLog($message = '', $show = false) { return $this->MlmSystem->printLog($message, $show); }