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

Public Member Functions

 isValidConstantType ()
 isValidConstantType()
 
 setValue ($value)
 setValue()
 
 getValue ()
 getValue()
 
 setType ($type)
 setType()
 
 getType ()
 getType()
 
 setArrayDepth ($arrayDepth)
 setArrayDepth()
 
 getArrayDepth ()
 getArrayDepth()
 
 _getAutoDeterminedType ($value)
 _getAutoDeterminedType()
 
 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()
 

Public Attributes

const TYPE_AUTO = 'auto'
 #@+ Constant values
 
const TYPE_BOOLEAN = 'boolean'
 
const TYPE_BOOL = 'bool'
 
const TYPE_NUMBER = 'number'
 
const TYPE_INTEGER = 'integer'
 
const TYPE_INT = 'int'
 
const TYPE_FLOAT = 'float'
 
const TYPE_DOUBLE = 'double'
 
const TYPE_STRING = 'string'
 
const TYPE_ARRAY = 'array'
 
const TYPE_CONSTANT = 'constant'
 
const TYPE_NULL = 'null'
 
const TYPE_OTHER = 'other'
 
- Public Attributes inherited from Zend_CodeGenerator_Php_Abstract
const LINE_FEED = "\n"
 Line feed to use in place of EOL.
 

Protected Member Functions

 _init ()
 _init()
 
 _getValidatedType ($type)
 _getValidatedType()
 

Protected Attributes

 $_value = null
 
 $_type = self::TYPE_AUTO
 
 $_arrayDepth = 1
 
- Protected Attributes inherited from Zend_CodeGenerator_Php_Abstract
 $_isSourceDirty = true
 
 $_indentation = ' '
 
- Protected Attributes inherited from Zend_CodeGenerator_Abstract
 $_sourceContent = null
 
 $_isSourceDirty = true
 

Static Protected Attributes

static $_constants = array()
 

Member Function Documentation

_getAutoDeterminedType (   $value)

_getAutoDeterminedType()

Parameters
mixed$value
Returns
string
_getValidatedType (   $type)
protected

_getValidatedType()

Parameters
string$type
Returns
string
_init ( )
protected

_init()

This method will prepare the constant array for this class

generate ( )

generate()

Returns
string
getArrayDepth ( )

getArrayDepth()

Returns
int
getType ( )

getType()

Returns
string
getValue ( )

getValue()

Returns
mixed
isValidConstantType ( )

isValidConstantType()

Returns
bool
setArrayDepth (   $arrayDepth)
setType (   $type)
setValue (   $value)

Member Data Documentation

$_arrayDepth = 1
protected
$_constants = array()
staticprotected
$_type = self::TYPE_AUTO
protected
$_value = null
protected
const TYPE_ARRAY = 'array'
const TYPE_AUTO = 'auto'

#@+ Constant values

const TYPE_BOOL = 'bool'
const TYPE_BOOLEAN = 'boolean'
const TYPE_CONSTANT = 'constant'
const TYPE_DOUBLE = 'double'
const TYPE_FLOAT = 'float'
const TYPE_INT = 'int'
const TYPE_INTEGER = 'integer'
const TYPE_NULL = 'null'
const TYPE_NUMBER = 'number'
const TYPE_OTHER = 'other'
const TYPE_STRING = 'string'