OptomPortalConnection::setConfig PHP Method

setConfig() protected method

Set portal config.
protected setConfig ( )
    protected function setConfig()
    {
        $config = $this->yii->params['portal'];
        if (!$config) {
            throw new InvalidArgumentException('Missing portal configuration for ' . __CLASS__);
        }
        foreach (static::$required_config_keys as $k) {
            if (Helper::elementFinder($k, $config) === null) {
                throw new InvalidArgumentException('Missing required config parameter for ' . __CLASS__);
            }
        }
        $this->config = $config;
    }