Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_CodeGenerator_Php_Class Class Reference

Public Member Functions

 setDocblock ($docblock)
 setDocblock() Set the docblock
 
 getDocblock ()
 getDocblock()
 
 setName ($name)
 setName()
 
 getName ()
 getName()
 
 setAbstract ($isAbstract)
 setAbstract()
 
 isAbstract ()
 isAbstract()
 
 setExtendedClass ($extendedClass)
 setExtendedClass()
 
 getExtendedClass ()
 getExtendedClass()
 
 setImplementedInterfaces (Array $implementedInterfaces)
 setImplementedInterfaces()
 
 getImplementedInterfaces ()
 getImplementedInterfaces
 
 setProperties (Array $properties)
 setProperties()
 
 setConstants (Array $constants)
 setConstants()
 
 setProperty ($property)
 setProperty()
 
 setConstant ($const)
 setConstant()
 
 getProperties ()
 getProperties()
 
 getConstants ()
 getConstants()
 
 getProperty ($propertyName)
 getProperty()
 
 getConstant ($constName)
 getConstant()
 
 hasProperty ($propertyName)
 hasProperty()
 
 hasConstant ($constName)
 hasConstant()
 
 setMethods (Array $methods)
 setMethods()
 
 setMethod ($method)
 setMethod()
 
 getMethods ()
 getMethods()
 
 getMethod ($methodName)
 getMethod()
 
 hasMethod ($methodName)
 hasMethod()
 
 isSourceDirty ()
 isSourceDirty()
 
 generate ()
 generate()
 
- Public Member Functions inherited from Zend_CodeGenerator_Php_Abstract
 setSourceDirty ($isSourceDirty=true)
 setSourceDirty()
 
 isSourceDirty ()
 isSourceDirty()
 
 setIndentation ($indentation)
 setIndentation()
 
 getIndentation ()
 getIndentation()
 
- Public Member Functions inherited from Zend_CodeGenerator_Abstract
 __construct ($options=array())
 __construct()
 
 setConfig (Zend_Config $config)
 setConfig()
 
 setOptions (Array $options)
 setOptions()
 
 setSourceContent ($sourceContent)
 setSourceContent()
 
 getSourceContent ()
 getSourceContent()
 
 generate ()
 generate() - must be implemented by the child
 
 __toString ()
 __toString() - casting to a string will in turn call generate()
 

Static Public Member Functions

static fromReflection (Zend_Reflection_Class $reflectionClass)
 fromReflection() - build a Code Generation PHP Object from a Class Reflection
 

Protected Member Functions

 _init ()
 _init() - is called at construction time
 

Protected Attributes

 $_docblock = null
 
 $_name = null
 
 $_isAbstract = false
 
 $_extendedClass = null
 
 $_implementedInterfaces = array()
 
 $_properties = null
 
 $_constants = null
 
 $_methods = null
 
- Protected Attributes inherited from Zend_CodeGenerator_Php_Abstract
 $_isSourceDirty = true
 
 $_indentation = ' '
 
- Protected Attributes inherited from Zend_CodeGenerator_Abstract
 $_sourceContent = null
 
 $_isSourceDirty = true
 

Additional Inherited Members

- Public Attributes inherited from Zend_CodeGenerator_Php_Abstract
const LINE_FEED = "\n"
 Line feed to use in place of EOL.
 

Member Function Documentation

_init ( )
protected

_init() - is called at construction time

static fromReflection ( Zend_Reflection_Class  $reflectionClass)
static

fromReflection() - build a Code Generation PHP Object from a Class Reflection

Parameters
Zend_Reflection_Class$reflectionClass
Returns
Zend_CodeGenerator_Php_Class
generate ( )

generate()

Returns
string
getConstant (   $constName)

getConstant()

Parameters
string$constName
Returns
Zend_CodeGenerator_Php_Property
getConstants ( )

getConstants()

Returns
array
getDocblock ( )
getExtendedClass ( )

getExtendedClass()

Returns
string
getImplementedInterfaces ( )

getImplementedInterfaces

Returns
array
getMethod (   $methodName)

getMethod()

Parameters
string$methodName
Returns
Zend_CodeGenerator_Php_Method
getMethods ( )

getMethods()

Returns
array
getName ( )

getName()

Returns
string
getProperties ( )

getProperties()

Returns
array
getProperty (   $propertyName)

getProperty()

Parameters
string$propertyName
Returns
Zend_CodeGenerator_Php_Property
hasConstant (   $constName)

hasConstant()

Parameters
string$constName
Returns
bool
hasMethod (   $methodName)

hasMethod()

Parameters
string$methodName
Returns
bool
hasProperty (   $propertyName)

hasProperty()

Parameters
string$propertyName
Returns
bool
isAbstract ( )

isAbstract()

Returns
bool
isSourceDirty ( )

isSourceDirty()

Returns
bool
setAbstract (   $isAbstract)

setAbstract()

Parameters
bool$isAbstract
Returns
Zend_CodeGenerator_Php_Class
setConstant (   $const)
setConstants ( Array  $constants)

setConstants()

Parameters
array$constants
Returns
Zend_CodeGenerator_Php_Class
setDocblock (   $docblock)

setDocblock() Set the docblock

Parameters
Zend_CodeGenerator_Php_Docblock | array | string$docblock
Returns
Zend_CodeGenerator_Php_File
setExtendedClass (   $extendedClass)

setExtendedClass()

Parameters
string$extendedClass
Returns
Zend_CodeGenerator_Php_Class
setImplementedInterfaces ( Array  $implementedInterfaces)

setImplementedInterfaces()

Parameters
array$implementedInterfaces
Returns
Zend_CodeGenerator_Php_Class
setMethod (   $method)
setMethods ( Array  $methods)

setMethods()

Parameters
array$methods
Returns
Zend_CodeGenerator_Php_Class
setName (   $name)

setName()

Parameters
string$name
Returns
Zend_CodeGenerator_Php_Class
setProperties ( Array  $properties)

setProperties()

Parameters
array$properties
Returns
Zend_CodeGenerator_Php_Class
setProperty (   $property)

Member Data Documentation

$_constants = null
protected
$_docblock = null
protected
$_extendedClass = null
protected
$_implementedInterfaces = array()
protected
$_isAbstract = false
protected
$_methods = null
protected
$_name = null
protected
$_properties = null
protected