getConnection() public static méthode

Method to retrieve the name of the current instance of connection
public static getConnection ( ) : string
Résultat string
Exemple #1
0
 /**
  * Format the Query
  * 
  */
 private function getQuery($sql)
 {
     $sql = is_array($sql) ? json_encode($sql) : $sql;
     $sql = '<strong style="color:green;">' . htmlspecialchars($sql) . '</strong>';
     $conn = '<strong style="color:red;">' . PDO4You::getConnection() . '</strong>';
     return '"' . $sql . '", "' . $conn . '"';
 }