public function serializeData($mixValues)
    {
        $data = ToolboxFile::convertValuesToDatabase($mixValues ?: ['bin' => [], 'value' => [], 'path' => []]);

        // Check single file or multiple file.
        if ($this->get('file_multiple')) {
            return \serialize($data);
        }

        return $data[0];
    }
public function serializeData($mixValues)
    {
        $data = ToolboxFile::convertValuesToDatabase($mixValues ?: ['bin' => [], 'value' => [], 'path' => []]);

        // Check single file or multiple file.
        if ($this->get('file_multiple')) {
            return \serialize($data);
        }

        return $data[0];
    }
public function serializeData ( $ mixValues ) { $ data = ToolboxFile :: convertValuesToDatabase ( $ mixValues ? : [ 'bin' => [ ] , 'value' => [ ] , 'path' => [ ] ] ) ; // Check single file or multiple file. if ( $ this -> get ( 'file_multiple' ) ) { return \ serialize ( $ data ) ; } return $ data [ 0 ] ; }
Take the data from the system and serialize it for the database.

@param mixed $mixValues The data to serialize.

@return string An serialized array with binary data or a binary data.
Take the data from the system and serialize it for the database .