Tripal v1.0 (6.x-1.0)
|
Public Member Functions | |
construct () | |
query () | |
render ($values) |
A handler to provide proper displays for sequence residues.
Definition at line 13 of file views_handler_field_residues.inc.
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); }