Tripal v1.0 (6.x-1.0)
views_handler_field_residues Class Reference

List of all members.

Public Member Functions

 construct ()
 query ()
 render ($values)

Detailed Description

A handler to provide proper displays for sequence residues.

Definition at line 13 of file views_handler_field_residues.inc.


Member Function Documentation

views_handler_field_residues::construct ( )

Definition at line 15 of file views_handler_field_residues.inc.

                       {
    parent::construct();
      $this->additional_fields['residues'] = array('table' => 'feature', 'field' => 'residues');
  }
views_handler_field_residues::query ( )

Definition at line 20 of file views_handler_field_residues.inc.

                   {
    $this->ensure_my_table();
    $this->add_additional_fields();
  }
views_handler_field_residues::render ( values)

Definition at line 25 of file views_handler_field_residues.inc.

                           {
    // add a <br> every 100 bp
    return ereg_replace("(.{100})", "\\1<br />", $values->feature_residues);

  }

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables