[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/database/src/ -> QueryMonitorInterface.php (source)

   1  <?php
   2  /**
   3   * Part of the Joomla Framework Database Package
   4   *
   5   * @copyright  Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
   6   * @license    GNU General Public License version 2 or later; see LICENSE
   7   */
   8  
   9  namespace Joomla\Database;
  10  
  11  /**
  12   * Interface defining a query monitor.
  13   *
  14   * @since  2.0.0
  15   */
  16  interface QueryMonitorInterface
  17  {
  18      /**
  19       * Act on a query being started.
  20       *
  21       * @param   string         $sql          The SQL to be executed.
  22       * @param   object[]|null  $boundParams  List of bound params, used with the query.
  23       *                                       Each item is an object that holds: value, dataType
  24       *
  25       * @return  void
  26       *
  27       * @since   2.0.0
  28       */
  29  	public function startQuery(string $sql, ?array $boundParams = null): void;
  30  
  31      /**
  32       * Act on a query being stopped.
  33       *
  34       * @return  void
  35       *
  36       * @since   2.0.0
  37       */
  38  	public function stopQuery(): void;
  39  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer