Class Annotations (namespace Nette)


Annotations support for PHP.


Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Annotations.php (line 30)
Public Method Summary
Annotations
Static class - cannot be instantiated.
static array
get ($r, string $name)
Returns an annotation value.
static array
getAll ($r, [string $name = NULL])
Returns all annotations.
static bool
has ($r, string $name)
Has class/method/property specified annotation?
static & array
init ($r)
Parses and caches annotations.

Method Details

line 40

__construct

public Annotations __construct ()

Static class - cannot be instantiated.

Output
Annotations  

line 67

get

public static array get ($r, string $name)

Returns an annotation value.

Input
$r
string $name annotation name
Output
array  

line 81

getAll

public static array getAll ($r, [string $name = NULL])

Returns all annotations.

Input
$r
string $name annotation name
Output
array  

line 53

has

public static bool has ($r, string $name)

Has class/method/property specified annotation?

Input
$r
string $name annotation name
Output
bool  

line 103

init

public static array & init ($r)

Parses and caches annotations.

Input
$r
Output
& array