<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.pdo-pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'pdo-pgsql.getnotify.php',
    1 => 'Pdo\\Pgsql::getNotify',
    2 => 'Get asynchronous notification',
  ),
  'up' => 
  array (
    0 => 'class.pdo-pgsql.php',
    1 => 'Pdo\\Pgsql',
  ),
  'prev' => 
  array (
    0 => 'pdo-pgsql.escapeidentifier.php',
    1 => 'Pdo\\Pgsql::escapeIdentifier',
  ),
  'next' => 
  array (
    0 => 'pdo-pgsql.getpid.php',
    1 => 'Pdo\\Pgsql::getPid',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pdo_pgsql/pdo/pgsql/getnotify.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="pdo-pgsql.getnotify" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Pdo\Pgsql::getNotify</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">Pdo\Pgsql::getNotify</span> &mdash; <span class="dc-title">Get asynchronous notification</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-pdo-pgsql.getnotify-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Pdo\Pgsql::getNotify</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$fetchMode</code><span class="initializer"> = <strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-default">PDO::FETCH_DEFAULT</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$timeoutMilliseconds</code><span class="initializer"> = 0</span></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   Returns a result set representing a pending asynchronous notification.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-pdo-pgsql.getnotify-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">fetchMode</code></dt>
    <dd>
     <p class="para">
      The format the result set should be returned as,
      one of the following constants:
      <ul class="simplelist">
       <li><strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-default">PDO::FETCH_DEFAULT</a></code></strong></li>
       <li><strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-both">PDO::FETCH_BOTH</a></code></strong></li>
       <li><strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-assoc">PDO::FETCH_ASSOC</a></code></strong></li>
       <li><strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-num">PDO::FETCH_NUM</a></code></strong></li>
      </ul>
     </p>
    </dd>
   
   
    <dt><code class="parameter">timeoutMilliseconds</code></dt>
    <dd>
     <span class="simpara">
      The length of time to wait for a response, in milliseconds.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-pdo-pgsql.getnotify-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   If one or more notifications is pending, returns a single row,
   with fields <code class="literal">message</code> and <code class="literal">pid</code>,
   otherwise returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-pdo-pgsql.getnotify-errors">
  <h3 class="title">Errori/Eccezioni</h3>
  <p class="simpara">
   A <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> is thrown if
   <code class="parameter">fetchMode</code> is not one of the valid
   <strong><code><a href="pdo.constants.fetch-modes.php#pdo.constants.fetch-default">PDO::FETCH_<span class="replaceable">*</span></a></code></strong>
   constants.
  </p>
  <p class="simpara">
   A <span class="exceptionname"><a href="class.valueerror.php" class="exceptionname">ValueError</a></span> is thrown if
   <code class="parameter">timeoutMilliseconds</code> is less than <code class="literal">0</code>.
  </p>
  <p class="simpara">
   A <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> is raised when
   <code class="parameter">timeoutMilliseconds</code> is greater than the value
   that can be contained in a signed 32-bit integer, in which case it will be
   the maximum value of a signed 32-bit integer.
  </p>
 </div>


 

 <div class="refsect1 seealso" id="refsect1-pdo-pgsql.getnotify-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="pdo.query.php" class="methodname" rel="rdfs-seeAlso">PDO::query()</a> - Prepares and executes an SQL statement without placeholders</span></li>
   <li><span class="methodname"><a href="pdostatement.fetch.php" class="methodname" rel="rdfs-seeAlso">PDOStatement::fetch()</a> - Fetches the next row from a result set</span></li>
   <li><span class="methodname"><a href="pdostatement.fetchall.php" class="methodname" rel="rdfs-seeAlso">PDOStatement::fetchAll()</a> - Fetches the remaining rows from a result set</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>