コード例 #1
0
ファイル: ORMSettings.php プロジェクト: vitordm/VTRORM
 /**
  * Registry the self instance
  */
 private function registryInstance()
 {
     if (!ORMRegistry::offsetExists("class\\VTRORM\\ORMSettings")) {
         ORMRegistry::setInRef("class\\VTRORM\\ORMSettings", $this);
     }
 }
コード例 #2
0
ファイル: LazyModel.php プロジェクト: vitordm/VTRORM
 /**
  * @throws \Exception
  */
 protected function instanceObjects()
 {
     $this->CommonQuery =& ORMRegistry::classGet("VTRORM\\Query\\CommonQuery");
     $this->Select =& ORMRegistry::classGet("VTRORM\\Query\\SelectQuery");
     $this->Update =& ORMRegistry::classGet("VTRORM\\Query\\UpdateQuery");
     $this->Insert =& ORMRegistry::classGet("VTRORM\\Query\\InsertQuery");
     $this->Delete =& ORMRegistry::classGet("VTRORM\\Query\\DeleteQuery");
     //$Table = $this->Schema->getTable();
     if (!empty($this->Alias)) {
         $Table = [$this->Table => $this->Alias];
     } else {
         $Table =& $this->Table;
     }
     $this->setTableIntoHelpers($Table);
 }
コード例 #3
0
ファイル: Connection.php プロジェクト: vitordm/VTRORM
 /**
  * Registry the self instance
  */
 private function registryInstance()
 {
     if (!ORMRegistry::offsetExists("class\\VTRORM\\Database\\Connection")) {
         ORMRegistry::setInRef("class\\VTRORM\\Database\\Connection", $this);
     }
 }