EnsEMBL::Web::Tools::WebTree

Location: /modules/EnsEMBL/Web/Tools/WebTree.pm
Source code · Permalink
No superclasses
No subclasses

Overview

Method

}

Documentation coverage: 100 %

Methods

    get_first_header
    Parses an HTML file and returns the contents of the first tag (up to h3)
    View source

    get_info
    Parses an HTML file and returns info for navigation and indexing
    View source

    get_meta_index
    Parses an HTML file and returns the contents of the index meta tag
    View source

    get_meta_navigation
    Parses an HTML file and returns the contents of the navigation meta tag
    View source

    get_meta_order
    Parses an HTML file and returns the contents of the navigation meta tag
    View source

    get_title
    Parses an HTML file and returns the contents of the tag<br /> <a href="#" onClick="toggle_method('EnsEMBL::Web::Tools::WebTree::get_title');return void(0);" id='EnsEMBL::Web::Tools::WebTree::get_title_link'>View source</a> <div id='EnsEMBL::Web::Tools::WebTree::get_title' style='display: none;'>EnsEMBL::Web::Tools::WebTree::get_title</div><br /><br /> <b><a name="read_tree"></a>read_tree</b><br /> <br /><br /> Recursive function which descends into a directory and creates a tree of htdocs static pages with a multi-level hashref: {. _path => '/...', # web path _nav => 'navigation info', # from meta tags _title => 'title', # from title tag _index => '0', # order index, from meta tag file1 => {nav => '...', title => '...', index => '...'}, file2 => {nav => '...', title => '...', index => '...'}, ...,. dir1 => { ..same structure as parent.. }, dir2 => { ..same structure as parent.. }, ...,. }. <br /><br /> N.B. A directory can be omitted by putting 'NO INDEX' as the value of the navigation meta tag<br /> <a href="#" onClick="toggle_method('EnsEMBL::Web::Tools::WebTree::read_tree');return void(0);" id='EnsEMBL::Web::Tools::WebTree::read_tree_link'>View source</a> <div id='EnsEMBL::Web::Tools::WebTree::read_tree' style='display: none;'>EnsEMBL::Web::Tools::WebTree::read_tree</div><br /><br /> <b><a name="sortnames"></a>sortnames</b><br /> Does a case-insensitive sort of a list of file names and separates them into two lists - directories and non-directories<br /> <a href="#" onClick="toggle_method('EnsEMBL::Web::Tools::WebTree::sortnames');return void(0);" id='EnsEMBL::Web::Tools::WebTree::sortnames_link'>View source</a> <div id='EnsEMBL::Web::Tools::WebTree::sortnames' style='display: none;'>EnsEMBL::Web::Tools::WebTree::sortnames</div><br /><br /> </ul> </div> <br clear="all"> </div> </div> </div> <div class="footer">← <a href="../../../base.html">Home</a> · <a href="/common/highlight_method/EnsEMBL::Web::Tools::WebTree::" target="_new">Source code</a> </div> </body> </html>