polished up output-*-rewrite-var

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@203772 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2005-12-27 12:24:35 +00:00
parent 52accafdfe
commit ab0b667a97
2 changed files with 19 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.output-add-rewrite-var">
<refnamediv>
<refname>output_add_rewrite_var</refname>
@ -15,11 +15,21 @@
<methodparam><type>string</type><parameter>value</parameter></methodparam>
</methodsynopsis>
<para>
This function rewrite the URLs and forms with the given variable.
This function adds another name/value pair to the URL rewrite mechanism.
The name and value will be added to URLs (as GET parameter) and forms
(as hidden input fields) the same way as the
session ID when transparent URL rewriting is enabled with
<parameter>session.use_trans_sid</parameter>.
</para>
<para>
This functions behavior is controled by the <literal>url_rewriter.tags</literal>
&php.ini; parameter. See the <link linkend="ref.session">session</link> section
for further details on this setting.
</para>
<note>
<simpara>
This function buffers the output.
Calling this function will implicitly start output buffering if it is
not active already.
</simpara>
</note>
<para>

View file

@ -1,5 +1,5 @@
<?xml version='1.0' encoding='iso-8859-1'?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.output-reset-rewrite-vars">
<refnamediv>
<refname>output_reset_rewrite_vars</refname>
@ -13,9 +13,11 @@
<type>bool</type><methodname>output_reset_rewrite_vars</methodname>
<void/>
</methodsynopsis>
<para>This function resets the URL rewriter and undo the changes made by
<function>output_add_rewrite_var</function> and/or by
<function>session_start</function> that are still in the buffer.
<para>
This function resets the URL rewriter and removes all rewrite
variables previously set by the <function>output_add_rewrite_var</function>
function or the session mechanism (if <literal>session.use_trans_sid</literal>
was set on <function>session_start</function>).
</para>
<para>
<example>