<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.imap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.imap-get-quotaroot.php',
    1 => 'imap_get_quotaroot',
    2 => 'Liefert die Quota-Einstellungen f&uuml;r ein Benutzerpostfach',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.imap-get-quota.php',
    1 => 'imap_get_quota',
  ),
  'next' => 
  array (
    0 => 'function.imap-getacl.php',
    1 => 'imap_getacl',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/imap/functions/imap-get-quotaroot.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-get-quotaroot" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_get_quotaroot</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_get_quotaroot</span> &mdash; <span class="dc-title">Liefert die Quota-Einstellungen für ein Benutzerpostfach</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.imap-get-quotaroot-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_get_quotaroot</strong></span>(<span class="methodparam"><span class="type"><a href="class.imap-connection.php" class="type IMAP\Connection">IMAP\Connection</a></span> <code class="parameter">$imap</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$mailbox</code></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="para rdfs-comment">
   Gibt die Quota-Einstellungen für den aktuellen Benutzer zurück. Die
   ermittelten Quota-Einstellungen gelten über alle Postfächer des Benutzers,
   der Nutzungswert für die aktuell im angegebenen Postfach genutzte
   Kapazität.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.imap-get-quotaroot-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">imap</code></dt><dd><p class="para">Eine <span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>-Instanz.</p></dd>
    
     <dt><code class="parameter">mailbox</code></dt>
     <dd>
      <p class="para">
       Der Name des zu untersuchenden Postfachs, z. B. INBOX.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.imap-get-quotaroot-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt ein Array zurück mit Ressourcennamen als Index und Arrays mit den
   Elementen limit und usage als Werte, die das aktuelle Limit sowie die
   tatsächliche Nutzung der jeweiligen Ressource für das angegebene Postfach
   angeben.
  </p>
  <p class="para">
   Die Funktion gibt <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurück, wenn Fehler auftreten, und ein Array mit
   Verbindungsinformationen, falls die Antwort des Servers nicht verarbeitet
   werden konnte.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imap-get-quotaroot-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  Der Parameter <code class="parameter">imap</code> erwartet nun eine
  <span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>-Instanz; vorher wurde eine gültige
  <code class="literal">imap</code>-<a href="language.types.resource.php" class="link">Ressource</a> erwartet.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.imap-get-quotaroot-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="function"><strong>imap_get_quotaroot()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$mbox </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_open</span><span style="color: #007700">(</span><span style="color: #DD0000">"{imap.example.org}"</span><span style="color: #007700">, </span><span style="color: #DD0000">"kalowsky"</span><span style="color: #007700">, </span><span style="color: #DD0000">"password"</span><span style="color: #007700">, </span><span style="color: #0000BB">OP_HALFOPEN</span><span style="color: #007700">)<br />      or die(</span><span style="color: #DD0000">"Kann keine Verbindung aufbauen: " </span><span style="color: #007700">. </span><span style="color: #0000BB">imap_last_error</span><span style="color: #007700">());<br /><br /></span><span style="color: #0000BB">$quota </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_get_quotaroot</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">, </span><span style="color: #DD0000">"INBOX"</span><span style="color: #007700">);<br />if (</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$quota</span><span style="color: #007700">)) {<br />   </span><span style="color: #0000BB">$storage </span><span style="color: #007700">= </span><span style="color: #0000BB">$quota</span><span style="color: #007700">[</span><span style="color: #DD0000">'STORAGE'</span><span style="color: #007700">];<br />   echo </span><span style="color: #DD0000">"Speicherplatz (aktuell genutzt): " </span><span style="color: #007700">.  </span><span style="color: #0000BB">$storage</span><span style="color: #007700">[</span><span style="color: #DD0000">'usage'</span><span style="color: #007700">];<br />   echo </span><span style="color: #DD0000">"Speicherplatz (Limit): " </span><span style="color: #007700">.  </span><span style="color: #0000BB">$storage</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">];<br /><br />   </span><span style="color: #0000BB">$message </span><span style="color: #007700">= </span><span style="color: #0000BB">$quota</span><span style="color: #007700">[</span><span style="color: #DD0000">'MESSAGE'</span><span style="color: #007700">];<br />   echo </span><span style="color: #DD0000">"Anzahl Nachrichten (aktuell): " </span><span style="color: #007700">.  </span><span style="color: #0000BB">$message</span><span style="color: #007700">[</span><span style="color: #DD0000">'usage'</span><span style="color: #007700">];<br />   echo </span><span style="color: #DD0000">"Anzahl Nachrichten (Limit): " </span><span style="color: #007700">.  </span><span style="color: #0000BB">$message</span><span style="color: #007700">[</span><span style="color: #DD0000">'limit'</span><span style="color: #007700">];<br /><br />   </span><span style="color: #FF8000">/* ...  */<br /><br /></span><span style="color: #007700">}<br /><br /></span><span style="color: #0000BB">imap_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.imap-get-quotaroot-notes">
  <h3 class="title">Anmerkungen</h3>
  <p class="para">
   Diese Funktion ist aktuell erst ab der Bibliotheksversion c-client2000
   verfügbar.
  </p>
  <p class="para">
   Das zu prüfende Postfach muss dem Benutzer gehören, für den
   <code class="parameter">imap</code> geöffnet wurde.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.imap-get-quotaroot-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-open.php" class="function" rel="rdfs-seeAlso">imap_open()</a> - &Ouml;ffnet einen IMAP-Stream zu einem Postfach</span></li>
    <li><span class="function"><a href="function.imap-set-quota.php" class="function" rel="rdfs-seeAlso">imap_set_quota()</a> - Legt die Gr&ouml;&szlig;enbeschr&auml;nkung f&uuml;r ein Postfach fest</span></li>
    <li><span class="function"><a href="function.imap-get-quota.php" class="function" rel="rdfs-seeAlso">imap_get_quota()</a> - Liefert Quota-Einstellungen und Nutzungsstatistik der Postf&auml;cher</span></li>
   </ul>
  </p>
 </div>


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