protected function prepareForDatabase($property, $value)
    {
        $type = $this->getPropertyType($property);

        if ($type == 'array' && is_array($value)) {
            return implode(",", $value);
        }
        if (is_bool($value)) {
            $value = (int) $value;
        }

        return $value;
    }
protected function prepareForDatabase($property, $value)
    {
        $type = $this->getPropertyType($property);

        if ($type == 'array' && is_array($value)) {
            return implode(",", $value);
        }
        if (is_bool($value)) {
            $value = (int) $value;
        }

        return $value;
    }
protected function prepareForDatabase ( $ property , $ value ) { $ type = $ this -> getPropertyType ( $ property ) ; if ( $ type == 'array' && is_array ( $ value ) ) { return implode ( "," , $ value ) ; } if ( is_bool ( $ value ) ) { $ value = ( int ) $ value ; } return $ value ; }
Converts values into a core_config_data compatible format

@param string $property
@param mixed  $value

@return mixed
Converts values into a core_config_data compatible format