Skip to content

classes_essentials_session_serializer.class

Daniel Spors edited this page Dec 19, 2023 · 2 revisions

Classes in file essentials/session/serializer.class.php

class Serializer

Serializer/Unserializer We have our very own that support some specialities like database reconnection, datetime formats, reflection,... As we implemented our own object storage and serialize it in one run, we can be sure that the referential integrity will be given.

Serialize

Serializes a value Can be anything from complex object to bool value

Definition: public function Serialize($data)

Returns: string Serialized data string

Parameters:

  • mixed $data Value to serialize

Unserialize

Restores something from a serialized data string Note that of course all types used in that string must be known to the unserializing application!

Definition: public function Unserialize($data)

Returns: mixed Whatever was serialized

Parameters:

  • string $data Serialized data
Clone this wiki locally