API Documentation

CodeGenerator/Php/File.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_CodeGenerator
subpackage
PHP
version
$Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_CodeGenerator_Php_File

Description

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.

Zend_CodeGenerator_Php_File

Extends from
Zend_CodeGenerator_Php_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_CodeGenerator
Properties
$_fileCodeGenerators
$_markerDocblock
$_markerRequire
$_markerClass
$_filename
$_docblock
$_requiredFiles
$_classes
$_body
Methods
registerFileCodeGenerator
fromReflectedFileName
fromReflection
setDocblock
getDocblock
setRequiredFiles
getRequiredFiles
setClasses
getClass
setClass
setFilename
getFilename
getClasses
setBody
getBody
isSourceDirty
generate
write

Description

Properties

$_body

string $_body = 'null'

Details

$_body
string
visibility
protected
default
null
final
false
static
false

$_classes

array $_classes = 'array'

Details

$_classes
array
visibility
protected
default
array
final
false
static
false

$_docblock

Zend_CodeGenerator_Php_Docblock $_docblock = 'null'

Details

$_docblock
Zend_CodeGenerator_Php_Docblock
visibility
protected
default
null
final
false
static
false

$_fileCodeGenerators

array $_fileCodeGenerators = 'array'

Details

$_fileCodeGenerators
array
Array of Zend_CodeGenerator_Php_File
visibility
protected
default
array
final
false
static
true

$_filename

string $_filename = 'null'

Details

$_filename
string
visibility
protected
default
null
final
false
static
false

$_markerClass

 $_markerClass = '/* Zend_CodeGenerator_Php_File-ClassMarker: {?} */'

Details

visibility
protected
default
/* Zend_CodeGenerator_Php_File-ClassMarker: {?} */
final
false
static
true

$_markerDocblock

 $_markerDocblock = '/* Zend_CodeGenerator_Php_File-DocblockMarker */'

Details

visibility
protected
default
/* Zend_CodeGenerator_Php_File-DocblockMarker */
final
false
static
true

$_markerRequire

 $_markerRequire = '/* Zend_CodeGenerator_Php_File-RequireMarker: {?} */'

Details

visibility
protected
default
/* Zend_CodeGenerator_Php_File-RequireMarker: {?} */
final
false
static
true

$_requiredFiles

array $_requiredFiles = 'array'

Details

$_requiredFiles
array
visibility
protected
default
array
final
false
static
false

Methods

fromReflectedFileName

fromReflectedFileName( string $filePath, bool $usePreviousCodeGeneratorIfItExists = true, bool $includeIfNotAlreadyIncluded = true ) : Zend_CodeGenerator_Php_File

fromReflectedFilePath() - use this if you intend on generating code generation objects based on the same file.

This will keep previous changes to the file in tact during the same PHP process

Arguments
$filePath
string
$usePreviousCodeGeneratorIfItExists
bool
$includeIfNotAlreadyIncluded
bool
Details
visibility
public
final
false
static
true

fromReflection

fromReflection( Zend_Reflection_File $reflectionFile ) : Zend_CodeGenerator_Php_File

fromReflection()

Arguments
$reflectionFile
Zend_Reflection_File
Details
visibility
public
final
false
static
true

generate

generate( ) : string

generate()

Output
string
Details
visibility
public
final
false
static
false

getBody

getBody( ) : string

getBody()

Output
string
Details
visibility
public
final
false
static
false

getClass

getClass( string $name = null ) : Zend_CodeGenerator_Php_Class

getClass()

Arguments
$name
string
Details
visibility
public
final
false
static
false

getClasses

getClasses( ) : array

getClasses()

Output
array
Array of Zend_CodeGenerator_Php_Class
Details
visibility
public
final
false
static
false

getDocblock

getDocblock( ) : Zend_CodeGenerator_Php_Docblock

Get docblock

Details
visibility
public
final
false
static
false

getFilename

getFilename( ) : string

getFilename()

Output
string
Details
visibility
public
final
false
static
false

getRequiredFiles

getRequiredFiles( ) : array

getRequiredFiles()

Output
array
Details
visibility
public
final
false
static
false

isSourceDirty

isSourceDirty( ) : bool

isSourceDirty()

Output
bool
Details
visibility
public
final
false
static
false

registerFileCodeGenerator

registerFileCodeGenerator(  $fileCodeGenerator,  $fileName = null ) :
Arguments
$fileCodeGenerator
$fileName
Details
visibility
public
final
false
static
true

setBody

setBody( string $body ) : Zend_CodeGenerator_Php_File

setBody()

Arguments
$body
string
Details
visibility
public
final
false
static
false

setClass

setClass( Zend_CodeGenerator_Php_Class|array $class ) : Zend_CodeGenerator_Php_File

setClass()

Arguments
$class
Zend_CodeGenerator_Php_Classarray
Details
visibility
public
final
false
static
false

setClasses

setClasses( array $classes ) : Zend_CodeGenerator_Php_File

setClasses()

Arguments
$classes
array
Details
visibility
public
final
false
static
false

setDocblock

setDocblock( Zend_CodeGenerator_Php_Docblock|array|string $docblock ) : Zend_CodeGenerator_Php_File

setDocblock() Set the docblock

Arguments
$docblock
Zend_CodeGenerator_Php_Docblockarraystring
Details
visibility
public
final
false
static
false

setFilename

setFilename( string $filename ) : Zend_CodeGenerator_Php_File

setFilename()

Arguments
$filename
string
Details
visibility
public
final
false
static
false

setRequiredFiles

setRequiredFiles( array $requiredFiles ) : Zend_CodeGenerator_Php_File

setRequiredFiles

Arguments
$requiredFiles
array
Details
visibility
public
final
false
static
false

write

write( ) :
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.