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(); }
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(); }