PHP Classes

DomCore is the perfect match

Recommend this page to a friend!

      PHP Classes blog  >  The Secret PHP Optimi...  >  All threads  >  DomCore is the perfect match  >  (Un) Subscribe thread alerts  
Subject:DomCore is the perfect match
Summary:The extended class checks that you dont use undeclared vars
Messages:2
Author:philippe thomassigny
Date:2012-06-14 21:33:07
Update:2012-06-15 04:01:00
 

  1. DomCore is the perfect match   Reply   Report abuse  
Picture of philippe thomassigny philippe thomassigny - 2012-06-14 21:44:57
The DomCore I published time ago on phpclasses takes care to offer a "java-like" programming our classes.

That means you can only use variables you already have declared.
Poof. No more dynamic variable.

If you try to use a dynamic variable (set/get) the extended code class will just throw an exception.

Miracle, it's exactly what we want to optimize the code for PHP 5.4 :)



  2. Re: DomCore is the perfect match   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2012-06-15 04:01:00 - In reply to message 1 from philippe thomassigny
Yes, using setters and getters could be a way to trap inadvertent access to variables that were not declared.