2012-03-20, 23:07:28
Nobody Wrote:But I'm still curious... Function return_i18n_search_results is public. Why return_i18n_search_results returns object with protected or private fields?
In OO programming you (nearly) never should have public fields.
The "properties" here are accessed through the magic function __get($name), which uses the non-public fields just to "cache" some of the property values.