NAME

WeBWorK::DB::Record - common functionality for Record classes.

CONSTRUCTOR

new($Prototype)

Create a new record object, set initial values from the record object $Prototype, which must be a subclass of WeBWorK::DB::Record.

new(%fields)

Create a new record object, set initial values from the hash %fields, which must contain keys equal to the field names of the record class.

BASE METHODS

idsToString

Returns a string representation of the object's keyfields.

idsToString

Returns a string representation of the object's fields.

toHash

Returns a hash representation of the object's fields. If interpreted as a list, the fields will be in order.

toArray

Returns an array representation of the object's fields.