Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13846

Use the PHP 5 __construct() method

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Obsolete
    • Icon: Medium Medium
    • Future
    • 4.0.1
    • Misc
    • None

    Description

      The code from old PHP 4 style constructors methods should be moved to the PHP 5 style constructor ``__construct()``. IMHO it improves readability of the code a lot.

      Old constructors need to remain available for at least 1 major version, because otherwise child classes calling the parent's constructor will be broken (for example workflow event types, datatypes, ...). The old constructors can write a warning message that they are deprecated and call ``__construct``.

      In a later phase, the old PHP 4 style constructors can be removed.

      Attachments

        Activity

          People

            unknown unknown
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: