cvs: peardoc /en/package/filesystem/file-htaccess setauthname.xml
| From: | Mika Tuupola | Date: | Sat, 18 Dec 2004 22:47:45 +0000 |
| Subject: | cvs: peardoc /en/package/filesystem/file-htaccess setauthname.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5293@lists.php.net to get a copy of this message | ||
tuupola Sat Dec 18 17:47:45 2004 EDT
Added files:
/peardoc/en/package/filesystem/file-htaccess setauthname.xml
Log:
* add docs for setAuthName()
http://cvs.php.net/co.php/peardoc/en/package/filesystem/file-htaccess/setauthname.xml?r=1.1&p=1
Index: peardoc/en/package/filesystem/file-htaccess/setauthname.xml
+++ peardoc/en/package/filesystem/file-htaccess/setauthname.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.filesystem.file-htaccess.setauthname">
<refnamediv>
<refname>File_HtAccess::setAuthName</refname>
<refpurpose>set the value of authname property</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<!--
<funcsynopsisinfo>
require_once 'File/HtAccess.php';
</funcsynopsisinfo>
-->
<funcprototype>
<funcdef>void <function>File_HtAccess::setAuthName</function></funcdef>
<paramdef>
<parameter>string
<optional>$type='Restricted'</optional></parameter>
</paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.filesystem.file-htaccess.setauthname.desc">
&title.desc;
<para>
Sets the value of authname property. This text will be displayed
in the browsers password prompt when browser tries to access
a protected resource.
</para>
</refsect1>
<refsect1 id="package.filesystem.file-htaccess.setauthname.parameter">
&title.param;
<para>
<itemizedlist>
<listitem>
<para>
<parameter>string $name</parameter> - Text to display in the
password prompt. Defaults to 'Restricted'.
</para>
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 id="package.filesystem.file-htaccess.setauthname.return">
&title.returns;
<para>
void
</para>
</refsect1>
<!--
<refsect1 id="package.filesystem.file.file-htaccess.setauthname.throws">
&title.throws;
<para>
</para>
</refsect1>
-->
<refsect1 id="package.filesystem.file.file-htaccess.setauthname.note">
&title.note;
¬e.notstatic;
</refsect1>
<!--
<refsect1 id="package.filesystem.file.file-htaccess.setauthname.see">
&title.see;
<para>
</para>
</refsect1>
-->
<refsect1 id="package.filesystem.file-htaccess.setauthname.example">
&title.example;
<example>
<title>Using <function>File_HtAccess::setAuthName</function></title>
<programlisting role="php">
<![CDATA[
<?php
require_once('File/HtAccess.php');
/* use Digest authentication */
$fh = new File_HtAccess('.htaccess');
$fh->load();
$fh->setAuthName('Got Root?');
$fh->save();
?>
]]>
</programlisting>
</example>
</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
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
-->