BioMart::Configuration PushAction
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
BioMart::Configuration::PushAction
Package variables
No package variables defined.
Included modules
Digest::MD5
Inherit
BioMart::Root
Synopsis
Object responsible for PushActions
Description
PushActions represent the values (BioMart::Configuration::Options) that are
placed onto another filter when a particular value
(BioMart::Configuration::Option) is chosen for a particular filter. The
driving filter contains Options which in turn contain one or more PushAction
objects. These PushActions contain the Options to place on the other filter
when chosen. An example of this is the chromosome name and band filters for
the gene datasets in ensembl (www.ensembl.org/biomart/martview). When a
particular option is chosen for the chromosome drop down the options available
in the band menus. The javascript driving this is populated using the Options
and PushActions contained within the chromosome Filter.
Methods
_hashCode
No description
Code
_init
No description
Code
_newDescriptionCode
addOptionDescriptionCode
dataSetNameDescriptionCode
getAllOptionsDescriptionCode
nameDescriptionCode
refDescriptionCode
Methods description
_newcode    nextTop
  
Usage : no arguments
Description: creates a new PushAction object which can contain a single
Attribue object
Returntype : BioMart::Configuration::PushAction
Exceptions : none
Caller : general
addOptioncodeprevnextTop
  Usage      : usage
Description: Description
Returntype :
Exceptions : none
Caller : caller
dataSetNamecodeprevnextTop
  Usage      : my $subName = $option->dataSetName; 
$option->dataSetName->($newName);
Description: get/set for the name of the dataSet which hosts this attribute.
Returntype : scalar $name
Exceptions : none
Caller : general
getAllOptionscodeprevnextTop
  Usage      : usage
Description: Description
Returntype :
Exceptions : none
Caller : caller
namecodeprevnextTop
  Usage      : my $optionName = $option->name; $option->name($optionName);
Description: get/set for internal name
Returntype : scalar $name
Exceptions : none
Caller : general
refcodeprevnextTop
  Usage      : my $ref = $option->ref; $option->ref($ref);
Description: get/set for ref
Returntype : scalar $ref
Exceptions : none
Caller : general
Methods code
_hashCodedescriptionprevnextTop
sub _hashCode {
  my $self = shift;
  my $digest = Digest::MD5->new;
  $digest->add($self->SUPER::_hashCode);
  return $digest->hexdigest;
}

1;
}
_initdescriptionprevnextTop
sub _init {
  my ($self, @param) = @_;
  $self->SUPER::_init(@param);
  my $proto = shift @param;
  $self->attr('options', $proto->getAllPushActions);
}
_newdescriptionprevnextTop
sub _new {
  my ($self, @param) = @_;
  $self->SUPER::_new(@param);
  $self->addParams(TITLES, @param);
  $self->attr('options',[]);
}
addOptiondescriptionprevnextTop
sub addOption {
  my ($self, $option) = @_;
  my $options = $self->get('options');
  push @{$options}, $option;
}
dataSetNamedescriptionprevnextTop
sub dataSetName {
  # stores dataset name?
my ($self, $value) = @_; if ($value){ $self->setParam(DATASETNAME, $value); } return $self->getParam(DATASETNAME);
}
getAllOptionsdescriptionprevnextTop
sub getAllOptions {
  my $self = shift;
  return $self->get('options');
}
namedescriptionprevnextTop
sub name {
  # stores internal name
my ($self, $value) = @_; if ($value){ $self->setParam(NAME, $value); } return $self->getParam(NAME);
}
refdescriptionprevnextTop
sub ref {
  # stores ref
my ($self, $value) = @_; if ($value){ $self->setParam(REF, $value); } return $self->getParam(REF);
}
General documentation
AUTHOR - Arek Kasprzyk, Syed Haider, 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