Zend Framework
1.12
|
Public Member Functions | |
__construct ($file) | |
Constructor. | |
getFileName () | |
Return the file name of the reflected file. | |
getStartLine () | |
Get the start line - Always 1, staying consistent with the Reflection API. | |
getEndLine () | |
Get the end line / number of lines. | |
getDocComment () | |
Return the doc comment. | |
getDocblock ($reflectionClass= 'Zend_Reflection_Docblock') | |
Return the docblock. | |
getClasses ($reflectionClass= 'Zend_Reflection_Class') | |
Return the reflection classes of the classes found inside this file. | |
getFunctions ($reflectionClass= 'Zend_Reflection_Function') | |
Return the reflection functions of the functions found inside this file. | |
getClass ($name=null, $reflectionClass= 'Zend_Reflection_Class') | |
Retrieve the reflection class of a given class found in this file. | |
getContents () | |
Return the full contents of file. | |
__toString () | |
Serialize to string. | |
Static Public Member Functions | |
static | findRealpathInIncludePath ($fileName) |
Find realpath of file based on include_path. | |
static | export () |
Export. | |
Protected Member Functions | |
_reflect () | |
This method does the work of "reflecting" the file. | |
_checkFileDocBlock ($tokens) | |
Validate / check a file level docblock. | |
Protected Attributes | |
$_filepath = null | |
$_docComment = null | |
$_startLine = 1 | |
$_endLine = null | |
$_requiredFiles = array() | |
$_classes = array() | |
$_functions = array() | |
$_contents = null | |
__construct | ( | $file | ) |
Constructor.
string | $file |
__toString | ( | ) |
Serialize to string.
Required by the Reflector interface
|
protected |
Validate / check a file level docblock.
array | $tokens | Array of tokenizer tokens |
|
protected |
This method does the work of "reflecting" the file.
Uses PHP's tokenizer to perform file reflection.
|
static |
|
static |
Find realpath of file based on include_path.
string | $fileName |
getClass | ( | $name = null , |
|
$reflectionClass = 'Zend_Reflection_Class' |
|||
) |
Retrieve the reflection class of a given class found in this file.
null | string | $name | |
string | $reflectionClass | Reflection class to use when creating reflection instance |
Zend_Reflection_Exception | for invalid class name or invalid reflection class |
getClasses | ( | $reflectionClass = 'Zend_Reflection_Class' | ) |
Return the reflection classes of the classes found inside this file.
string | $reflectionClass | Name of reflection class to use for instances |
getContents | ( | ) |
Return the full contents of file.
getDocblock | ( | $reflectionClass = 'Zend_Reflection_Docblock' | ) |
Return the docblock.
string | $reflectionClass | Reflection class to use |
getDocComment | ( | ) |
Return the doc comment.
getEndLine | ( | ) |
Get the end line / number of lines.
getFileName | ( | ) |
Return the file name of the reflected file.
getFunctions | ( | $reflectionClass = 'Zend_Reflection_Function' | ) |
Return the reflection functions of the functions found inside this file.
string | $reflectionClass | Name of reflection class to use for instances |
getStartLine | ( | ) |
Get the start line - Always 1, staying consistent with the Reflection API.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |