diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-10-14 15:49:00 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-10-20 13:38:38 +0200 |
commit | 4a8358bc509ed4f7771ae68f69fafed811a7e568 (patch) | |
tree | 06f8d656f235d2f9ad2e84d8536bc0accdacc3b7 /lib/private/diagnostics/nullquerylogger.php | |
parent | 1e69f5e7ac3414f307aac16842655a34a2f3c709 (diff) | |
download | nextcloud-server-4a8358bc509ed4f7771ae68f69fafed811a7e568.tar.gz nextcloud-server-4a8358bc509ed4f7771ae68f69fafed811a7e568.zip |
Rename to NullQueryLogger
Diffstat (limited to 'lib/private/diagnostics/nullquerylogger.php')
-rw-r--r-- | lib/private/diagnostics/nullquerylogger.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/private/diagnostics/nullquerylogger.php b/lib/private/diagnostics/nullquerylogger.php new file mode 100644 index 00000000000..8467b4dd26c --- /dev/null +++ b/lib/private/diagnostics/nullquerylogger.php @@ -0,0 +1,31 @@ +<?php +/** + * Copyright (c) 2014 Robin Appelman <icewind@owncloud.com> + * This file is licensed under the Affero General Public License version 3 or + * later. + * See the COPYING-README file. + */ + +namespace OC\Diagnostics; + +use OCP\Diagnostics\IQueryLogger; + +class NullQueryLogger implements IQueryLogger { + /** + * @param string $sql + * @param array $params + * @param array $types + */ + public function startQuery($sql, array $params = null, array $types = null) { + } + + public function stopQuery() { + } + + /** + * @return \OCP\Diagnostics\IQuery[] + */ + public function getQueries() { + return array(); + } +} |