PHP Class Piwik\Updater\Migration\Db\Sql

See also: Factory::sql()
Inheritance: extends Piwik\Updater\Migration\Db
显示文件 Open project: piwik/piwik Class Usage Examples

Protected Properties

Property Type Description
$sql string

Public Methods

Method Description
__construct ( string $sql, integer | int[] $errorCodesToIgnore ) Sql constructor.
__toString ( )
addErrorCodeToIgnore ( integer $errorCode )
exec ( )
getErrorCodesToIgnore ( )
shouldIgnoreError ( $exception )

Method Details

__construct() public method

Sql constructor.
public __construct ( string $sql, integer | int[] $errorCodesToIgnore )
$sql string
$errorCodesToIgnore integer | int[] If no error should be ignored use an empty array.

__toString() public method

public __toString ( )

addErrorCodeToIgnore() public method

public addErrorCodeToIgnore ( integer $errorCode )
$errorCode integer

exec() public method

public exec ( )

getErrorCodesToIgnore() public method

shouldIgnoreError() public method

public shouldIgnoreError ( $exception )

Property Details

$sql protected_oe property

protected string $sql
return string