JData::__get
The magic get method is used to get a data property.
This method is a public proxy for the protected getProperty method. Note: Magic __get does not allow recursive calls. This can be tricky because the error generated by recursing into __get is "Undefined property: {CLASS}::{PROPERTY}" which is misleading. This is relevant for this class because requesting a non-visible property can trigger a call to a sub-function. If that references the property directly in the object, it will cause a recursion into __get.
Signature
public function __get(string
$property )
Parameters
-
$property
- The name of the data property.
Returns
- mixed
- The value of the data property, or null if the data property does not exist.