public function setEntryPoint($ep, $dbProfile, $contexts) { $this->entryPoint = $ep; $this->config = $ep->getConfigIni(); $this->contextId = $contexts; $this->newContextId = array(); if ($this->defaultDbProfile != '') { $this->useDbProfile($this->defaultDbProfile); } else { $this->useDbProfile($dbProfile); } }