Re: serialize et config | Titre du sujet : Re: serialize et config par br_750 sur 09/01/2012 18:35:54
re j'ai trouver la class responsable de la recuperation des conf et de son traitement
function getConfValueForOutput()
{
switch ($this->getVar('conf_valuetype')) {
case 'int':
return intval($this->getVar('conf_value', 'N'));
break;
case 'array':
$value = @unserialize($this->getVar('conf_value', 'N'));
return $value ? $value : array();
case 'float':
$value = $this->getVar('conf_value', 'N');
return (float) $value;
break;
case 'textarea':
return $this->getVar('conf_value');
default:
return $this->getVar('conf_value', 'N');
break;
}
}
ds la partie qui m'interresse quand il s'agit d'un array, il font bien un unserialize, je ne comprend pas pourquoi chez moi j'ai une erreur... merci A+
|
|