Class: ODDB::View::Analysis::CenteredSearchComposite

Inherits:
CenteredSearchComposite show all
Defined in:
src/view/analysis/centeredsearchform.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :language_chooser,
  [0,1]   => View::CenteredSearchForm,
  [0,2]   => 'analysis_search_explain',
  [0,3,0] =>  :analysis_count,
  [0,3,1] =>  'analysis_count',
  [0,4]   => View::CenteredNavigation,
#  [0,4]    =>  'download_analysis0',
#  [0,4,1]  => :download_analysis,
#  [0,4,2]  => 'download_analysis2',
#  [0,5,1] => 'database_last_updated_txt',
#   [0,5,2]  => :database_last_updated,
  [0,5]   => :legal_note,
  [0,6]   => :paypal,
}
CSS_MAP =
{
  [0,0,1,7] =>  'list center',
}
COMPONENT_CSS_MAP =
{}

Constants inherited from CenteredSearchComposite

COMPONENTS, COMPONENT_CSS_MAP, CSS_CLASS, CSS_MAP, HTML_ATTRIBUTES, SYMBOL_MAP

Instance Method Summary (collapse)

Methods inherited from CenteredSearchComposite

#atc_chooser, #atc_ddd_size, #beta, #database_last_updated, #database_size, #ddd_count_text, #divider, #download_ebook, #download_export, #download_generics, #export_divider, #fachinfo_size, #fipi_offer, #interactions, #limitation_size, #mailinglist, #narcotics_size, #new_feature, #patinfo_size, #paypal, #plugin, #recent_registrations, #vaccines_size

Methods included from UserSettings

#language_chooser, #language_chooser_short

Methods included from ExternalLinks

#contact_link, #data_declaration, #external_link, #faq_link, #generic_definition, #help_link, #legal_note, #meddrugs_update, #wiki_link

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) analysis_count(model, session)



35
36
37
# File 'src/view/analysis/centeredsearchform.rb', line 35

def analysis_count(model, session)
  @session.analysis_count
end

- (Object) download_analysis(model, session)



30
31
32
33
34
# File 'src/view/analysis/centeredsearchform.rb', line 30

def download_analysis(model, session) 
  link = HtmlGrid::Link.new(:download_analysis1, model, session, self)
#   link.href = something
  link
end