[Bio] / FigKernelPackages / FIGMODELTable.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/FIGMODELTable.pm

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

revision 1.13, Fri Mar 5 21:16:26 2010 UTC revision 1.14, Mon Apr 12 17:12:11 2010 UTC
# Line 92  Line 92 
92          return $self->{"array"}->[$RowNumber];          return $self->{"array"}->[$RowNumber];
93  }  }
94    
95    =head3 get_rows
96    Definition:
97            (RowObjects):array reference to all rows = FIGMODELTable->get_rows();
98    Description:
99            Returns a reference to the complete array of rows
100    =cut
101    sub get_rows {
102            my ($self) = @_;
103            return $self->{"array"};
104    }
105    
106  =head3 filename  =head3 filename
107  Definition:  Definition:
108          my $filename = $TableObj->filename();          my $filename = $TableObj->filename();
# Line 594  Line 605 
605          }          }
606  }  }
607    
608    sub is_heading {
609            my ($self,$heading) = @_;
610            foreach my $ExistingHeading ($self->headings()) {
611                    if ($heading eq $ExistingHeading) {
612                            return 1;
613                    }
614            }
615            return 0;
616    }
617    
618    sub is_indexed {
619            my ($self,$heading) = @_;
620            if (defined($self->{"hash columns"}->{$heading})) {
621                    return 1;
622            }
623            return 0;
624    }
625    
626  =head3 add_hashheadings  =head3 add_hashheadings
627  Definition:  Definition:
628          $TableObj->add_hashheadings(@Headings);          $TableObj->add_hashheadings(@Headings);

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3