[system] / trunk / webwork2 / lib / WeBWorK / DB / Schema.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/DB/Schema.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1095 Revision 1096
71 71
72=item get(@keyparts) 72=item get(@keyparts)
73 73
74Attempts to retrieve the record matching C<@keyparts> from the table. Returns 74Attempts to retrieve the record matching C<@keyparts> from the table. Returns
75an instance of the table's record class if there is a match. Returns undef if 75an instance of the table's record class if there is a match. Returns undef if
76no record matches. All elements of keyparts must be defined. 76no record matches. All elements of C<@keyparts> must be defined.
77 77
78=item put($Record) 78=item put($Record)
79 79
80Attempts to replace the record in the table that matches the key of $Record. 80Attempts to replace the record in the table that matches the key of $Record.
81Returns true on success and false on failure (for example, if the database 81Returns true on success and false on failure (for example, if the database
83 83
84=item delete(@keyparts) 84=item delete(@keyparts)
85 85
86Attempts to delete the record in the table that matches C<@keyparts>. Returns 86Attempts to delete the record in the table that matches C<@keyparts>. Returns
87true if the record was successfully deleted or did not exist, and false if 87true if the record was successfully deleted or did not exist, and false if
88deletion failed. 88deletion failed. Elements of C<@keyparts> may be undefined.
89 89
90=back 90=back
91 91
92=cut 92=cut
93 93

Legend:
Removed from v.1095  
changed lines
  Added in v.1096

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9