public function __construct($data) { //Make sure all the properties are initialized $data['properties'] = $this->merge_default_properties($data); parent::__construct($data); Upfront_Output::$current_object = $this; }