BioMart::Configuration AttributeCollection
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
BioMart::Configuration::AttributeCollection
Package variables
No package variables defined.
Inherit
BioMart::Root
Synopsis
Holds a List of BioMart::Attribute objects.
Description
Object to further define the Attributes available to the User Interface by
a Dataset. Holds a list of one or more BioMart::Attribute objects.
Methods
_new
No description
Code
addAttributeDescriptionCode
descriptionDescriptionCode
displayNameDescriptionCode
getAllAttributesDescriptionCode
maxSelectDescriptionCode
nameDescriptionCode
selectAllDescriptionCode
Methods description
addAttributecode    nextTop
  Usage      : usage
Description: Description
Returntype :
Exceptions : none
Caller : caller
descriptioncodeprevnextTop
  Usage      : Arg [1] - (optional) string $description
Description: get/set for description
Returntype : string
Exceptions : none
Caller : general
displayNamecodeprevnextTop
  Usage      : Arg [1] - (optional) string $display_name
Description: get/set for display name
Returntype : string
Exceptions : none
Caller : general
getAllAttributescodeprevnextTop
  Usage      : usage
Description: Description
Returntype :
Exceptions : none
Caller : caller
maxSelectcodeprevnextTop
  Usage      : Arg [1] - (optional) string $max_select
Description: get/set for max select
Returntype : string
Exceptions : none
Caller : general
namecodeprevnextTop
  Usage      : usage
Description: Description
Returntype : string name
Exceptions : none
Caller : caller
selectAllcodeprevnextTop
  Usage      : 
Description: get/set for selectAll checkBox
Returntype : true/false
Exceptions : none
Caller : templateToolKit
Methods code
_newdescriptionprevnextTop
sub _new {
  my ($self, @param) = @_;
  $self->SUPER::_new(@param);

  $self->addParams(TITLES, @param);
  $self->attr('attributes', []);
}
addAttributedescriptionprevnextTop
sub addAttribute {
  my ($self, $attribute) = @_;

  my $attributes = $self->get('attributes');
  push @{$attributes}, $attribute;
}
descriptiondescriptionprevnextTop
sub description {
  # stores description
my ($self, $value) = @_; if ($value){ $self->setParam(DESCRIPTION, $value); } return $self->getParam(DESCRIPTION);
}
displayNamedescriptionprevnextTop
sub displayName {
  # stores display name
my ($self, $value) = @_; if ($value){ $self->setParam(DISPLAYNAME, $value); } return $self->getParam(DISPLAYNAME);
}
getAllAttributesdescriptionprevnextTop
sub getAllAttributes {
  my $self = shift;

  return $self->get('attributes');
}

1;
}
maxSelectdescriptionprevnextTop
sub maxSelect {
  # stores max select
my ($self, $value) = @_; if ($value){ $self->setParam(MAXSELECT, $value); } return $self->getParam(MAXSELECT);
}
namedescriptionprevnextTop
sub name {
  my ($self, $newName) = @_;

  if ($newName) {
    $self->setParam(NAMEKEY, $newName);
  }
  return $self->getParam(NAMEKEY);
}
selectAlldescriptionprevnextTop
sub selectAll {
  # stores max select
my ($self, $value) = @_; if ($value){ $self->setParam(SELECTALL, $value); } return $self->getParam(SELECTALL);
}
General documentation
AUTHOR - Arek Kasprzyk, Syed Haider, Richard Holland, Darin London, Damian SmedleyTop
CONTACTTop
This module is part of the BioMart project http://www.biomart.org
Questions can be posted to the mart-dev mailing list: mart-dev@ebi.ac.uk