Phpdomain
See also
- Find the original Sphinx extension at PyPi, the Python Package Index:
- sphinxcontrib-phpdomain.
- We are using a fork and the branch `develop-for-typo3
- <https://github.com/TYPO3-Documentation/sphinxcontrib-phpdomain/tree/develop-for-typo3>`__
This page
Quick Sample
This is source:
.. php:class:: \Vendor\Extension\Namespace\SomeDateClass
SomeDateClass class
.. php:method:: setDate($year, $month, $day)
Set the date.
:param int $year: The year.
:param int $month: The month.
:param int $day: The day.
:returns: Either false on failure, or the datetime object for method chaining.
.. php:method:: setTime($hour, $minute[, $second])
Set the time.
:param int $hour: The hour
:param int $minute: The minute
:param int $second: The second
:returns: Either false on failure, or the datetime object for method chaining.
.. php:const:: ATOM
Y-m-d\TH:i:sP
- class SomeDateClass
-
- Fully qualified name
-
\Vendor\
Extension\ Namespace\ Some Date Class
SomeDateClass class
- setDate ( $year, $month, $day)
-
Set the date.
- param int $year
-
The year.
- param int $month
-
The month.
- param int $day
-
The day.
- Returns
-
Either false on failure, or the datetime object for method chaining.
Acceptance tests for PHPdomain
Credit: The source for this section was taken from the original GitHub repository markstory/sphinxcontrib-phpdomain.
Classes
- class DateTime
-
DateTime class
- setDate ( $year, $month, $day)
-
Set the date in the datetime object
- param int $year
-
The year.
- param int $month
-
The month.
- param int $day
-
The day.
- setTime ( $hour, $minute[, $second])
-
Set the time
- param int $hour
-
The hour
- param int $minute
-
The minute
- param int $second
-
The second
Exceptions
Interfaces
- interface DateTimeInterface
-
Datetime interface
- setDate ( $year, $month, $day)
-
Set the date in the datetime object
- param int $year
-
The year.
- param int $month
-
The month.
- param int $day
-
The day.
Traits
Test Case - Global symbols with no namespaces
OtherClass::$nonIndentedAttribute
Namespaced elements
- exception NamespaceException
-
- Fully qualified name
-
\Library
Name\ Namespace Exception
This exception is in a namespace.
- class NamespaceClass
-
- Fully qualified name
-
\Library
Name\ Namespace Class
A class in the namespace, no indenting on children
- abstract class LibraryClassAbstract
-
- Fully qualified name
-
\Library
Name\ Library Class Abstract
An abstract class
Test Case - not including namespace
Library
LibraryName\LibraryClass::instanceMethod
LibraryName\LibraryClass::staticMethod()
LibraryName\LibraryClass::$property
LibraryName\LibraryClass::TEST_CONST
\LibraryName\NamespaceClass::firstMethod
\LibraryName\NamespaceClass::$property
\LibraryName\NamespaceClass::NAMESPACE_CONST
\LibraryName\LibraryClassFinal
\LibraryName\LibraryClassFinal::firstMethod
\LibraryName\LibraryClassFinal::secondMethod
\LibraryName\LibraryClassFinal::thirdMethod
\LibraryName\LibraryClassFinal::fourthMethod
\LibraryName\LibraryClassFinal::fifthMethod
\LibraryName\LibraryInterface::instanceMethod
Test Case - global access
LibraryName\\LibraryClass::$property
LibraryName\\LibraryClass::TEST_CONST
Any Cross Ref
Library
Date
Nested namespaces
- exception NestedNamespaceException
-
- Fully qualified name
-
\Library
Name\ Sub Package\ Nested Namespace Exception
In a package
Test Case - Test subpackage links
Library
\LibraryName\SubPackage\SubpackageClass
\LibraryName\SubPackage\SubpackageInterface
\LibraryName\SubPackage\NestedNamespaceException
Return Types
- class ReturningClass
-
- Fully qualified name
-
\Other
Library\ Returning Class
A class to do some returning.
- returnClassFromSameNamespace ( )
-
- returntype
-
OtherLibrary\\ Returned Class
- Returns
-
An object instance of a class from the same namespace.
- returnClassFromOtherNamespace ( )
-
- returntype
-
LibraryName\\ Sub Package\\ Subpackage Interface
- Returns
-
An object instance of a class from another namespace.
- returnClassConstant ( )
-
- returntype
-
LibraryName\\ Namespace Class:: NAMESPACE_ CONST
- Returns
-
The value of a specific class constant.
Top Level Namespace
Credit: The source for this section was taken from the original GitHub repository markstory/sphinxcontrib-phpdomain.
namespace Imagine\Draw
Instance of this interface is returned by.
- arc ( PointInterface $center, BoxInterface $size, $start, $end, Color $color)
-
Draws an arc on a starting at a given x, y coordinates under a given start and end angles
- param Imagine\Image\PointInterface $center
-
Center of the arc.
- param Imagine\Image\BoxInterface $size
-
Size of the bounding box.
- param integer $start
-
Start angle.
- param integer $end
-
End angle.
- param Imagine\Image\Color $color
-
Line color.
- throws
-
Imagine\Exception\ Runtime Exception
- Returns
-
Imagine\Draw\ Drawer Interface