Reflection/File.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Reflection  
Version
$Id$  

\Zend_Reflection_File

Package: Zend_Reflection
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Methods

methodpublic__construct(string $file) : void

Constructor

Parameters
NameTypeDescription
$filestring
methodpublic__toString() : string

Serialize to string

Required by the Reflector interface
Returns
TypeDescription
string
Details
Todo
What should this serialization look like?  
methodpublicexport() : null
static

Export

Required by the Reflector interface.
Returns
TypeDescription
null
Details
Todo
What should this do?  
methodpublicfindRealpathInIncludePath(string $fileName) : string
static

Find realpath of file based on include_path

Parameters
NameTypeDescription
$fileNamestring
Returns
TypeDescription
string
methodpublicgetClass(null | string $name = null, string $reflectionClass = 'Zend_Reflection_Class') : \Zend_Reflection_Class

Retrieve the reflection class of a given class found in this file

Parameters
NameTypeDescription
$namenull | string
$reflectionClassstring

Reflection class to use when creating reflection instance

Returns
TypeDescription
\Zend_Reflection_Class
Throws
ExceptionDescription
\Zend_Reflection_Exceptionfor invalid class name or invalid reflection class
methodpublicgetClasses(string $reflectionClass = 'Zend_Reflection_Class') : array

Return the reflection classes of the classes found inside this file

Parameters
NameTypeDescription
$reflectionClassstring

Name of reflection class to use for instances

Returns
TypeDescription
arrayArray of Zend_Reflection_Class instances
methodpublicgetContents() : string

Return the full contents of file

Returns
TypeDescription
string
methodpublicgetDocComment() : string

Return the doc comment

Returns
TypeDescription
string
methodpublicgetDocblock(string $reflectionClass = 'Zend_Reflection_Docblock') : \Zend_Reflection_Docblock

Return the docblock

Parameters
NameTypeDescription
$reflectionClassstring

Reflection class to use

Returns
TypeDescription
\Zend_Reflection_Docblock
methodpublicgetEndLine() : int

Get the end line / number of lines

Returns
TypeDescription
int
methodpublicgetFileName() : string

Return the file name of the reflected file

Returns
TypeDescription
string
methodpublicgetFunctions(string $reflectionClass = 'Zend_Reflection_Function') : array

Return the reflection functions of the functions found inside this file

Parameters
NameTypeDescription
$reflectionClassstring

Name of reflection class to use for instances

Returns
TypeDescription
arrayArray of Zend_Reflection_Functions
methodpublicgetStartLine() : int

Get the start line - Always 1, staying consistent with the Reflection API

Returns
TypeDescription
int
Documentation was generated by phpDocumentor 2.2.0 .