Linking to methods (was cvs: phpdoc /en/reference/http/HttpResponse setCacheControl.xml)
| From: | Hannes Magnusson | Date: | Sat, 04 Aug 2007 14:01:11 +0000 |
| Subject: | Linking to methods (was cvs: phpdoc /en/reference/http/HttpResponse setCacheControl.xml) | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969377231@lists.php.net to get a copy of this message | ||
HI all
I may have forgot to let you guys know..
<function>classname::method</function> and
<function>classname->method</function> work now.
There is a catch though:
It does ID lookup, meaning if the ID of the method is camelCased
you'll have to <function>className::camelCaseItToo</function>.
As per our standard, all IDs should be lowercased so that, in theory,
isn't a problem.
In the future (once we have fixed all the wrong IDs) I'd like to do
strtolower() on the <function /> and then look it up. That will give
the OO docs the possibility to camelCaseTheLinks without breaking our
ID convention.
-Hannes
On 8/4/07, Hannes Magnusson <bjori@php.net> wrote:
> bjori Sat Aug 4 13:39:38 2007 UTC
>
> Modified files:
> /phpdoc/en/reference/http/HttpResponse setCacheControl.xml
> Log:
> Remove redundant linking
> Fix typo
>
>
>
> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/http/HttpResponse/setCacheControl.xml?r1=1.6&r2=1.7&diff_format=u
> Index: phpdoc/en/reference/http/HttpResponse/setCacheControl.xml
> diff -u phpdoc/en/reference/http/HttpResponse/setCacheControl.xml:1.6
> phpdoc/en/reference/http/HttpResponse/setCacheControl.xml:1.7
> --- phpdoc/en/reference/http/HttpResponse/setCacheControl.xml:1.6 Wed Jun 20 22:24:34
> 2007
> +++ phpdoc/en/reference/http/HttpResponse/setCacheControl.xml Sat Aug 4 13:39:37 2007
> @@ -1,5 +1,5 @@
> <?xml version="1.0" encoding="iso-8859-1"?>
> -<!-- $Revision: 1.6 $ -->
> +<!-- $Revision: 1.7 $ -->
> <!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
> <refentry xml:id="function.HttpResponse-setCacheControl"
> xmlns="http://docbook.org/ns/docbook">
> <refnamediv>
> @@ -127,9 +127,9 @@
> &reftitle.seealso;
> <para>
> <simplelist>
> - <member><link
> linkend="function.HttpResponse-getCacheControl"><function>HttpResponse::getCacheControl</function></link></member>
> - <member><link
> linkend="function.HttpResponse-setCache"><function>HttpResponse::setCache</function></link></member>
> - <member><link
> linkend="function.HttpResponse-getCache"><function>HttpResponse::getCachel</function></link></member>
> +
> <member><function>HttpResponse::getCacheControl</function></member>
> + <member><function>HttpResponse::setCache</function></member>
> + <member><function>HttpResponse::getCache</function></member>
> </simplelist>
> </para>
> </refsect1>
>