Overview

Namespaces

  • cli_db
    • propel
      • map
      • om
  • cli_import
  • LoggedPDO
  • None
  • PHP
  • webservices
    • cart
    • combisearch
    • details
      • annotations
        • feature
    • graphs
      • barplot
      • genome
    • listing
    • queue

Classes

  • Dbxref
  • Interpro_predpeps
  • Mapman
  • Pub
  • Repeatmasker
  • Synonym
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace webservices\details\annotations\feature;
 4: 
 5: use \PDO as PDO;
 6: 
 7: /**
 8:  * WebService.
 9:  * get all Repeatmasker annotations for feature id.
10:  */
11: class Repeatmasker extends \WebService {
12: 
13:     public function getById($param_feature_id) {
14: 
15: 
16:         global $db;
17: #UI hint
18:         if (false)
19:             $db = new PDO();
20: 
21:         /*
22:          *     get_isoform_annotations_repeatmasker(_isoform_ids integer[])
23:          * RETURNS
24:          *   TABLE (isoform_id int, uniquename text, fmin integer, fmax integer, strand smallint, repeat_name text, repeat_family text, repeat_class text)
25:          */
26:         $stm_get_repeatmasker = $db->prepare('SELECT * FROM get_isoform_annotations_repeatmasker(ARRAY[:isoform_id::int])');
27:         $stm_get_repeatmasker->bindParam('isoform_id', $param_feature_id, PDO::PARAM_INT);
28: 
29:         $ret = array();
30: 
31:         $stm_get_repeatmasker->execute();
32:         while ($repeatmasker = $stm_get_repeatmasker->fetch(PDO::FETCH_ASSOC)) {
33:             $ret[] = $repeatmasker;
34:         }
35: 
36:         return $ret;
37:     }
38: 
39:     /**
40:      * @inheritDoc
41:      */
42:     public function execute($querydata) {
43: 
44:         return $this->getById($querydata['query1']);
45:     }
46: 
47: }
48: 
49: ?>
50: 
tbro API documentation generated by ApiGen 2.8.0