public function unserialize($serialized = null)
    {

        // do nothing, if the passed value is empty or NULL
        if ($serialized === null || $serialized === '') {
            return;
        }

        // load the global configuration
        $configuration = $this->getConfiguration();

        // initializet delimiter, enclosure and escape char
        $delimiter = $this->getDelimiter() ? $this->getDelimiter() : $configuration->getDelimiter();
        $enclosure = $configuration->getEnclosure();
        $escape = $configuration->getEscape();

        // parse and return the found data as array
        return str_getcsv($serialized, $delimiter, $enclosure, $escape);
    }
public function unserialize($serialized = null)
    {

        // do nothing, if the passed value is empty or NULL
        if ($serialized === null || $serialized === '') {
            return;
        }

        // load the global configuration
        $configuration = $this->getConfiguration();

        // initializet delimiter, enclosure and escape char
        $delimiter = $this->getDelimiter() ? $this->getDelimiter() : $configuration->getDelimiter();
        $enclosure = $configuration->getEnclosure();
        $escape = $configuration->getEscape();

        // parse and return the found data as array
        return str_getcsv($serialized, $delimiter, $enclosure, $escape);
    }
public function unserialize ( $ serialized = null ) { // do nothing, if the passed value is empty or NULL if ( $ serialized === null || $ serialized === '' ) { return ; } // load the global configuration $ configuration = $ this -> getConfiguration ( ) ; // initializet delimiter, enclosure and escape char $ delimiter = $ this -> getDelimiter ( ) ? $ this -> getDelimiter ( ) : $ configuration -> getDelimiter ( ) ; $ enclosure = $ configuration -> getEnclosure ( ) ; $ escape = $ configuration -> getEscape ( ) ; // parse and return the found data as array return str_getcsv ( $ serialized , $ delimiter , $ enclosure , $ escape ) ; }
Unserializes the elements of the passed value by using the
instances CSV configuration options.

@param string|null $serialized The value to unserialize

@return array|null The exploded values
Unserializes the elements of the passed value by using the instances CSV configuration options .