public function __construct($procedureID) { $this->gremlin = new Gremlin(); #load proc's info from ID $sql = "SELECT * FROM procs WHERE proc_id='{$procedureID}'"; $rawData = $gremlin->query($sql); extract($rawData); $this->procedureID = $procedureID; $this->companyID = $companyID; $this->name = $name; loadTags(); }
public function __construct($typeID) { $this->gremlin = new Gremlin(); #load ttyp's info from ID $sql = "SELECT * FROM ttyp WHERE ttyp_id='{$typeID}'"; $rawData = $gremlin->query($sql); extract($rawData); $this->typeID = $typeID; $this->name = $name; $this->companyID = $cmp_id; $this->teamID = $team_id; loadTags(); }
public function __construct($trayID) { $gremlin = new Gremlin(); #load tray's info from ID $sql = "SELECT * FROM trays WHERE tray_id='{$trayID}'"; $rawData = $gremlin->query($sql); extract($rawData); $this->trayID = $trayID; $this->name = $name; $this->companyID = $cmp_id; $this->teamID = $team_id; $this->atNow = $atnow; $this->userID = $usr_id; $this->siteID = $site_id; $this->storageID = $stor_id; $this->loanTeam = $loan_team; loadTags(); loadContents(); }