Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 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();
 }