예제 #1
0
파일: Doctor.php 프로젝트: RGrun/athena
 public function __construct($docID)
 {
     $this->gremlin = new Gremlin();
     #load doc's info from ID
     $sql = "SELECT * FROM doctors WHERE doc_id='{$docID}'";
     $rawData = $gremlin->query($sql);
     extract($rawData);
     $this->docID = $docID;
     $this->actice = $active;
     $this->name = $name;
     loadCompanies();
     loadSites();
 }
예제 #2
0
파일: Region.php 프로젝트: RGrun/athena
 public function __construct($regionID)
 {
     $gremlin = new Gremlin();
     #load region's info from ID
     $sql = "SELECT * FROM regions WHERE reg_id='{$regionID}'";
     $rawData = $gremlin->query($sql);
     extract($rawData);
     $this->regionID = $regionID;
     $this->companyID = $cmp_id;
     $this->name = $name;
     $this->city = $city;
     $this->state = $state;
     loadSites();
 }