Sleep to handle superclasses' private members PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: 374
  • Last update:
  • Platform: Windows / Linux
  • Language: PHP
  • Price:Freeware
  • Company: tbarstow (View more)

Sleep to handle superclasses' private members script description:




Publisher review:
Sleep to handle superclasses' private members - PHP5 introduces visibility for object/class methods and data members. PHP5 introduces visibility for object/class methods and data members. This can prove problematic when serializing objects because base classes cannot see their parents' private vars, so these can't be serialized. Plus, a base class probably doesn't know about all of its parents' private vars (even its public and protected ones).

The point is, the subclasses do any local cleanup then delegate the actual __sleep request to a parent class. With a common parent class Object that all other classes extend, we can keep the real serialize code in one place but still allow children to change their state before sleeping.
Sleep to handle superclasses' private members is a PHP script for Snippets scripts design by tbarstow. It runs on following operating system: Windows / Linux.

Operating system:
Windows / Linux

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5