Tripal v1.0 (6.x-1.0)
views_handler_field_residues.inc
Go to the documentation of this file.
00001 <?php
00013 class views_handler_field_residues extends views_handler_field {
00014 
00015   function construct() {
00016     parent::construct();
00017       $this->additional_fields['residues'] = array('table' => 'feature', 'field' => 'residues');
00018   }
00019 
00020   function query() {
00021     $this->ensure_my_table();
00022     $this->add_additional_fields();
00023   }
00024 
00025   function render($values) {
00026     // add a <br> every 100 bp
00027     return ereg_replace("(.{100})", "\\1<br />", $values->feature_residues);
00028 
00029   }
00030 }
 All Classes Files Functions Variables