示例#1
0
 public function __construct()
 {
     parent::__construct();
     global $siteOps;
     $this->db = new PDO(DB_CONNECT, DB_USER, DB_PASS);
     $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     $this->lookups = new models\Lookups();
     $this->ontologies = $this->lookups->buildOntologyIDHash(true);
     $this->defaultQualifierOntologies = $siteOps["DEFAULT_QUALIFIERS"];
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     global $siteOps;
     $this->lookups = new models\Lookups();
     $this->ontologies = new models\OntologyBlocks();
     $this->curationOps = new models\CurationOperations();
     $this->partTypes = $this->lookups->buildParticipantTypesHash(false);
     $this->partRoles = $this->lookups->buildParticipantRoleHash();
     $this->orgNames = $this->lookups->buildOrganismNameHash();
     $this->idTypes = $this->lookups->buildIDTypeHash();
     $this->attributeTypes = $this->lookups->buildAttributeTypeHASH();
     $this->ignoreAttributes = array_flip($siteOps["IGNORE_ATTRIBUTES"]);
     $this->buildAttributeTypeSelectLists();
     $this->blockCount = 1;
     $this->participantCount = 1;
 }