Actions

JObject/ construct

From Joomla! Documentation

Revision as of 19:09, 18 December 2008 by Artyom (Talk | contribs)

Copyedit.png
This Article Needs Your Help

This article is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.


This is a stub method with empty body. It is required for a smooth work of a hack that allows __construct() in PHP 4. Because JObject method explicitly invokes $this->__construct(), then __construct method must be defined in the JObject class or in its child class. So, to avoid "Call to undefined method" error, we define this method in the JObject class, as we cannot guarantee that a child class will define __construct method.

See also