category Zend
package Zend_CodeGenerator
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

__construct()

__construct(array $options = array()

Parameters

$options

array

__toString() - casting to a string will in turn call generate()

__toString() : string

Returns

string

generate() - must be implemented by the child

generate() 

getSourceContent()

getSourceContent() : string

Returns

string

setConfig()

setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract

Parameters

$config

\Zend_Config

Returns

\Zend_CodeGenerator_Abstract

setOptions()

setOptions(array $options) : \Zend_CodeGenerator_Abstract

Parameters

$options

array

Returns

\Zend_CodeGenerator_Abstract

setSourceContent()

setSourceContent(string $sourceContent) 

Parameters

$sourceContent

string

_init() - this is called before the constuctor

_init() 

_prepare() - this is called at construction completion

_prepare() 

 Properties

 

$_isSourceDirty

$_isSourceDirty : boolean

Default

true
 

$_sourceContent

$_sourceContent : string

Default

null