[Jifty-commit] r2058 - in Jifty-DBI/trunk: lib/Jifty/DBI

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Oct 22 21:09:43 EDT 2006


Author: schwern
Date: Sun Oct 22 21:09:43 2006
New Revision: 2058

Modified:
   Jifty-DBI/trunk/   (props changed)
   Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm

Log:
 r24528 at windhund:  schwern | 2006-10-22 18:08:54 -0700
 Whitespace nits
 
 Document columns and column


Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm	(original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm	Sun Oct 22 21:09:43 2006
@@ -29,21 +29,21 @@
 
   package MyRecord;
   use base qw/Jifty::DBI::Record/;
-  
+
 =head1 DESCRIPTION
 
-Jifty::DBI::Record encapuslates records and tables as part of the L<Jifty::DBI> 
+Jifty::DBI::Record encapuslates records and tables as part of the L<Jifty::DBI>
 object-relational mapper.
 
 =head1 METHODS
 
-=head2 new ARGS 
+=head2 new ARGS
 
 Instantiate a new, empty record object.
 
 ARGS is a hash used to pass parameters to the C<_init()> function.
 
-Unless it is overloaded, the _init() function expects one key of 
+Unless it is overloaded, the _init() function expects one key of
 'handle' with a value containing a reference to a Jifty::DBI::Handle
 object.
 
@@ -351,6 +351,10 @@
 
 =head2 column
 
+    my $value = $self->column($column);
+
+Returns the $value of a $column.
+
 =cut
 
 sub column {
@@ -363,6 +367,14 @@
 
 }
 
+=head2 columns
+
+    my @columns = $record->columns;
+
+Returns a sorted list of a $record's @columns.
+
+=cut
+
 sub columns {
     my $self = shift;
     return @{$self->_COLUMNS_CACHE() || $self->_COLUMNS_CACHE([


More information about the Jifty-commit mailing list