Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

Process.php

00001 <?php
00002 include_once (GALAXIA_LIBRARY.'/src/common/Base.php');
00005 
00010 class Process extends Base {
00011   var $name;
00012   var $description;
00013   var $version;
00014   var $normalizedName;
00015   var $pId = 0;
00016 
00017   function Process($db) {
00018     $this->db=$db;
00019   }
00020   
00024   function getProcess($pId) {
00025     $query = "select * from `".GALAXIA_TABLE_PREFIX."processes` where `pId`=?";
00026     $result = $this->query($query,array($pId));
00027     if(!$result->numRows()) return false;
00028     $res = $result->fetchRow();
00029     $this->name = $res['name'];
00030     $this->description = $res['description'];
00031     $this->normalizedName = $res['normalized_name'];
00032     $this->version = $res['version'];
00033     $this->pId = $res['pId'];
00034   }
00035   
00039   function getNormalizedName() {
00040     return $this->normalizedName;
00041   }
00042   
00046   function getName() {
00047     return $this->name;
00048   }
00049   
00053   function getVersion() {
00054     return $this->version;
00055   }
00056 
00064   function getActivityByName($actname) {
00065     // Get the activity data
00066     $query = "select * from `".GALAXIA_TABLE_PREFIX."activities` where `pId`=? and `name`=?";
00067     $pId = $this->pId;
00068     $result = $this->query($query,array($pId,$actname));
00069     if(!$result->numRows()) return false;
00070     $res = $result->fetchRow();
00071     return $res;
00072   }
00073 
00074 }
00075 
00076 ?>

Generated on Mon Jun 7 16:37:37 2004 for Galaxia by doxygen 1.3.4