src/wcmf/lib/model/AbstractQuery.php
protected static function getConnection($type) {
    $mapper = self::getMapper($type);
    $conn = $mapper->getConnection();
    return $conn;
  }
protected static function getConnection($type) {
    $mapper = self::getMapper($type);
    $conn = $mapper->getConnection();
    return $conn;
  }
protected static function getConnection ( $ type ) { $ mapper = self :: getMapper ( $ type ) ; $ conn = $ mapper -> getConnection ( ) ; return $ conn ; }
Get the database connection of the given node type.
@param $type The node type to get the connection from connection
@return The connection
Get the database connection of the given node type .