public function __construct($waitlistdata) { parent::__construct(); $this->set_table(WAITLISTTABLE); $this->add_property('id', 'int'); $this->add_property('classid', 'int'); $this->add_property('userid', 'int'); $this->add_property('timecreated', 'int'); $this->add_property('timemodifieid', 'int'); $this->add_property('position', 'int'); $this->add_property('enrolmenttime', 'int'); if (is_numeric($waitlistdata)) { $this->data_load_record($waitlistdata); } else { if (is_array($waitlistdata)) { $this->data_load_array($waitlistdata); } else { if (is_object($waitlistdata)) { $this->data_load_array(get_object_vars($waitlistdata)); } } } }