/** * call the parent constructor * and then load up the stuff from the supporting table */ public function __construct($id = 0, $data = array()) { if (empty($id)) { $data['container'] = 0; $data['title'] = get_string($this->get_artefact_type(), 'artefact.resume'); } parent::__construct($id, $data); }