|
|
|
inline {@inheritdoc}
|
phpDocumentor Inline tags
|
inline {@source}
|
inline {@link}
Display a link to a URL, or link to an element's documentation in the the flow of descriptive text
Gregory Beaver
Copyright 2002, Gregory Beaver
(phpDocumentor 0.4+)
{@link
URL
description
}
{@link
element
description
}
Description
The inline {@link} tag is used to document any element (page, global variable, include, class, function, define, method, variable).
New in version 1.2: You can link to any defined function in the current php version using the function's name. This linking is done using the standard php function http://www.php.net/get_defined_functions, and so relies on the version of php that is used to execute phpDocumentor. A benefit of this method is that the function highlighting will automatically upgrade with a php upgrade without any change to the underlying code. You may also link directly to any portion of the php website using the fake package override PHP_MANUAL (as in PHP_MANUAL#get_defined_functions, or PHP_MANUAL#support.php).
inline {@link} displays links directly in the natural text flow of a DocBlock. If you want to display links prominently after descriptive text, use @see or @link.
For parameter information, see @see or @link. The guidelines for giving the element name to inline @link are the same as outlined in the @see manual page.
Example
The inline {@link} differs from ordinary non-inline tags. Inline tags parse and display their output directly in the documentation. In other words, this DocBlock:
/**
* Text with a normal @see and @link tag
* (the parentheses in "element()" are only necessary
* because it is a function)
* @see element()
* @link http://www.example.com
*/
function element()
{
}
Parses as (with -o HTML:frames:default):
<H3>element</H3>
<P><B>element ( )</B></P>
<b></b>
<pre>
Text with a normal @see and @link tag (the parentheses in "element()" are only necessary because it is a function)
</pre>
<DL>
<DT>Function Parameters:</DT>
<DT>Function Info:</DT>
<DD><b>See</b> - <CODE><a href="../default/_fake_page_php.html#element">element()</a></CODE></DD>
<DD><b>Link</b> - <CODE><a href="www.example.com">www.example.com</a></CODE></DD>
</DL>
<HR>
/**
* Text with an {@link http://www.example.com Inline Link to a Hyperlink} and an inline
* link to {@link element()} displays without a break in the flow
* (again, the parentheses in "element()" are only necessary
* because it is a function)
*/
function element()
{
}
Parses as (with -o HTML:frames:default):
<H3>element</H3>
<P><B>element ( )</B></P>
<b></b>
<pre>
Text with an <a href="http://www.example.com">Inline Link to a Hyperlink</a> and
an inline link to <a href="../default/_fake_page_php.html#element">element()</a>
displays without a break in the flow (again, the parentheses in "element()" are only necessary
because it is a function)
</pre>
<DL>
<DT>Function Parameters:</DT>
<DT>Function Info:</DT>
</DL>
<HR>
|
|
|
inline {@inheritdoc}
|
phpDocumentor Inline tags
|
inline {@source}
|
Documentation generated on Mon, 05 Dec 2011 21:35:27 -0600 by phpDocumentor 1.4.4