Overview

Namespaces

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

Classes

  • Features
  • Isoform
  • Statistical_information
  • Unigene
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace webservices\details;
 4: 
 5: use \PDO as PDO;
 6: /**
 7:  * Web Service.
 8:  * Get unigene details.
 9:  */
10: class Unigene extends \WebService {
11: 
12:     public function execute($querydata) {
13:         global $db;
14:         $constant = 'constant';
15: 
16: #UI hint
17:         if (false)
18:             $db = new PDO();
19: 
20:         $param_unigene_feature_id = $querydata['query1'];
21: 
22:         $query_get_unigenes = <<<EOF
23: SELECT *
24:     FROM feature AS unigene
25:     WHERE unigene.feature_id = :feature_id
26:     AND unigene.type_id = {$constant('CV_UNIGENE')}
27:     LIMIT 1
28: EOF;
29: 
30:         $stm_get_unigenes = $db->prepare($query_get_unigenes);
31:         $stm_get_unigenes->bindValue('feature_id', $param_unigene_feature_id);
32: 
33:         $return = array();
34: 
35:         $stm_get_unigenes->execute();
36:         if (($unigene = $stm_get_unigenes->fetch(PDO::FETCH_ASSOC)) != false) {
37:             $return['unigene'] = $unigene;
38:             require_once 'TranscriptDB/webservices/listing/Isoforms.php';
39:             $service = new \webservices\listing\Isoforms();
40:             $isoforms = $service->execute($querydata);
41:             if (isset($isoforms['isoforms']))
42:                 $return['unigene']['isoforms'] = $isoforms['isoforms'];
43:         }
44: 
45:         return $return;
46:     }
47: 
48: }
49: 
50: ?>
51: 
tbro API documentation generated by ApiGen 2.8.0