lithium\data\Entity::unserialize()

public method

Prepares, enables and executes unserialization of the object.

Restores state of the object including pulled results. Tries to restore _handlers by calling into _init().

Parameters

  • string $data

    Serialized properties of the object.

Returns

void

Source

	public function unserialize($data) {
		$data = unserialize($data);
		static::_init();

		foreach ($data as $key => $value) {
			$this->{$key} = $value;
		}
	}