public function init($config)
{
$this->loadUserData($config);
if ($this->_userFile !== null) {
if ($this->getApplication()->getConfigurationType() == TApplication::CONFIG_TYPE_PHP) {
$userFile = (include $this->_userFile);
$this->loadUserDataFromPhp($userFile);
} else {
$dom = new TXmlDocument();
$dom->loadFromFile($this->_userFile);
$this->loadUserDataFromXml($dom);
}
}
$this->_initialized = true;
}