public function populate_from_record($record) {
        foreach ($this->fieldsindb as $field) {
            $this->$field = $record->$field;
        }
        $this->timemodified = $record->timemodified;
    }
public function populate_from_record($record) {
        foreach ($this->fieldsindb as $field) {
            $this->$field = $record->$field;
        }
        $this->timemodified = $record->timemodified;
    }
public function populate_from_record ( $ record ) { foreach ( $ this -> fieldsindb as $ field ) { $ this -> $ field = $ record -> $ field ; } $ this -> timemodified = $ record -> timemodified ; }
Load properties of this class from db record.

@param object $record Given a record from 'question_statistics' copy stats from record to properties.
Load properties of this class from db record .