Nette\Database\Context::getConnection PHP 메소드

getConnection() 공개 메소드

public getConnection ( ) : Connection
리턴 Connection
    public function getConnection()
    {
        return $this->connection;
    }

Usage Example

예제 #1
0
파일: Table.php 프로젝트: petak23/scspp
 /** Funkcia v poli vrati zakladne info. o pripojeni.
  * @return array
  */
 public function getDBInfo()
 {
     $pom = explode(":", $this->connection->getConnection()->getDsn());
     $out = array();
     foreach (explode(";", $pom[1]) as $v) {
         $t = explode("=", $v);
         $out[$t[0]] = $t[1];
     }
     return $out;
 }
All Usage Examples Of Nette\Database\Context::getConnection