public function getConfig()
{
if (empty($this->config) or $this->configHasChanged) {
$config = $this->getDatatypeModel()->getData('prevalue_value');
if (!is_string($config) or !preg_match('/^(i|s|a|o|d)(.*);/si', $config)) {
$this->config = $config;
} else {
$this->config = unserialize($config);
}
$this->configHasChanged = false;
}
return $this->config;
}