Documentation

cloneConnection

\Bitrix\Main\DB\Connection public
\Bitrix\Main\Data\ConnectionPool::cloneConnection(
 string $name,
 string $newName,
 array $parameters = array()
);

This non-static method creates new connection based on the connection already used.

Parameters

ParameterDescriptionVersion
$nameSource of copy.
$newNameNew copy name.
$parametersParameters, retrieved from the method ConnectionPool::createConnection.

Exceptions

Examples



© «Bitrix24», 2001-2024
Up