Date: 08/05/02
- Next message: db <email protected>: "[PHP-DOC] #18129 [Com]: Installation PHP 4.2.X with Apache 2.0.x"
- Previous message: Dan Kalowsky: "[PHP-DOC] cvs: phpdoc /en/reference/imap/functions imap-popen.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
kalowsky Mon Aug 5 18:04:21 2002 EDT
Added files:
/phpdoc/en/reference/imap/functions imap-get-quotaroot.xml
Modified files:
/phpdoc/en/reference/imap/functions imap-get-quota.xml
Log:
adding documentation of get-quotaroot
#could have sworn I did this before but a cvs update didn't bring it back
Index: phpdoc/en/reference/imap/functions/imap-get-quota.xml
diff -u phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.4 phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.5
--- phpdoc/en/reference/imap/functions/imap-get-quota.xml:1.4 Tue Jul 30 11:41:47 2002
+++ phpdoc/en/reference/imap/functions/imap-get-quota.xml Mon Aug 5 18:04:21 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
<refentry id="function.imap-get-quota">
<refnamediv>
@@ -27,9 +27,10 @@
</para>
<para>
NOTE: For this function to work, the mail stream is required to be opened
- as the mail-admin user.<!-- To be uncommented once imap_get_quotaroot is
- working --><!-- For a non-admin user version of this function, please see
- the <function>imap_get_quotaroot</function> function of PHP. -->
+ as the mail-admin user. For a non-admin user version of this function,
+ please see the <function>imap_get_quotaroot</function> function of PHP.
+ </para>
+ <para>
<parameter>imap_stream</parameter> should be the value returned from
an <function>imap_open</function> call. NOTE: This stream is required
to be opened as the mail admin user for the get_quota function to work.
@@ -66,6 +67,9 @@
output.
</para>
<para>
+ For backwards compatibility reasons, the originial access methods are
+ still available for use, although it is suggested to update.
+ <para>
<example>
<title><function>imap_get_quota</function> 4.3 or greater
example</title>
@@ -93,7 +97,7 @@
</example>
</para>
<para>
- See also <function>imap_open</function>, <function>imap_set_quota</function><!-- To be uncommented when imap_get_quotaroot works --><!-- , <function>imap_get_quotaroot</function> -->.
+ See also <function>imap_open</function>, <function>imap_set_quota</function>, <function>imap_get_quotaroot</function>.
</para>
</refsect1>
</refentry>
Index: phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml
+++ phpdoc/en/reference/imap/functions/imap-get-quotaroot.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.imap-get-quotaroot">
<refnamediv>
<refname>imap_get_quotaroot</refname>
<refpurpose>
Retrieve the quota settings per user
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>imap_get_quotaroot</methodname>
<methodparam><type>int</type><parameter>imap_stream</parameter></methodparam>
<methodparam><type>string</type><parameter>quota_root</parameter></methodparam>
</methodsynopsis>
<para>
Returns an array of integer values pertaining to the specified user
mailbox. All values contain a key based upon the resource name, and a
corresponding array with the usage and limit values within.
</para>
<para>
The limit value represents the total amount of space
allowed for this user's total mailbox usage. The usage value represents
the user's current total mailbox capacity. This function will return
&false; in the case of call failure, and an array of information about
the connection upon an un-parsable response from the server.
</para>
<para>
This function is currently only available to users of the c-client2000
or greater library.
</para>
<para>
<parameter>imap_stream</parameter> should be the value returned from
an <function>imap_open</function> call. This stream should be opened
as the user whose mailbox you wish to check.
<parameter>quota_root</parameter> should normally be in the form of
which mailbox (i.e. INBOX).
</para>
<para>
<example>
<title><function>imap_get_quotaroot</function> example</title>
<programlisting role="php">
<![CDATA[
$mbox = imap_open("{your.imap.host}","kalowsky","password",OP_HALFOPEN)
or die("can't connect: ".imap_last_error());
$quota = imap_get_quotaroot($mbox, "INBOX");
if(is_array($quota)) {
$storage = $quota_values['STORAGE'];
print "STORAGE usage level is: " . $storage['usage'];
print "STORAGE limit level is: " . $storage['limit'];
$message = $quota_values['MESSAGE'];
print "MESSAGE usage level is: " . $message['usage'];
print "MESSAGE usage level is: " . $message['limit'];
/* ... */
}
imap_close($mbox);
]]>
</programlisting>
</example>
</para>
<para>
See also <function>imap_open</function>, <function>imap_set_quota</function>, <function>imap_get_quota</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: db <email protected>: "[PHP-DOC] #18129 [Com]: Installation PHP 4.2.X with Apache 2.0.x"
- Previous message: Dan Kalowsky: "[PHP-DOC] cvs: phpdoc /en/reference/imap/functions imap-popen.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

