PHP Classes

Common class GetProperty method

Recommend this page to a friend!

      PHP common data gateway  >  All threads  >  Common class GetProperty method  >  (Un) Subscribe thread alerts  
Subject:Common class GetProperty method
Summary:Returning null value for missing property
Author:Vallo Reima
Date:2013-09-10 06:15:15

  1. Common class GetProperty method   Reply   Report abuse  
Picture of Vallo Reima Vallo Reima - 2013-09-10 06:15:15
The common object may use property overloading (__get/__set). Checking for missing property's value via isset() function by GetProperty results with error if you don't supply __isset() magic method in this common object's class.