API Documentation

CodeGenerator/Php/Property/DefaultValue.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: DefaultValue.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_CodeGenerator_Php_Property_DefaultValue

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_Property_DefaultValue

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
Constants
TYPE_AUTO
TYPE_BOOLEAN
TYPE_BOOL
TYPE_NUMBER
TYPE_INTEGER
TYPE_INT
TYPE_FLOAT
TYPE_DOUBLE
TYPE_STRING
TYPE_ARRAY
TYPE_CONSTANT
TYPE_NULL
TYPE_OTHER
Properties
$_constants
$_value
$_type
$_arrayDepth
Methods
_init
isValidConstantType
setValue
getValue
setType
getType
setArrayDepth
getArrayDepth
_getValidatedType
_getAutoDeterminedType
generate

Description

Constants

TYPE_AUTO

 TYPE_AUTO = 'auto'

Details

value
auto

TYPE_BOOLEAN

 TYPE_BOOLEAN = 'boolean'

Details

value
boolean

TYPE_BOOL

 TYPE_BOOL = 'bool'

Details

value
bool

TYPE_NUMBER

 TYPE_NUMBER = 'number'

Details

value
number

TYPE_INTEGER

 TYPE_INTEGER = 'integer'

Details

value
integer

TYPE_INT

 TYPE_INT = 'int'

Details

value
int

TYPE_FLOAT

 TYPE_FLOAT = 'float'

Details

value
float

TYPE_DOUBLE

 TYPE_DOUBLE = 'double'

Details

value
double

TYPE_STRING

 TYPE_STRING = 'string'

Details

value
string

TYPE_ARRAY

 TYPE_ARRAY = 'array'

Details

value
array

TYPE_CONSTANT

 TYPE_CONSTANT = 'constant'

Details

value
constant

TYPE_NULL

 TYPE_NULL = 'null'

Details

value
null

TYPE_OTHER

 TYPE_OTHER = 'other'

Details

value
other

Properties

$_arrayDepth

int $_arrayDepth = '1'

Details

$_arrayDepth
int
visibility
protected
default
1
final
false
static
false

$_constants

array $_constants = 'array'

Details

$_constants
array
of reflected constants
visibility
protected
default
array
final
false
static
true

$_type

string $_type = 'self'

Details

$_type
string
visibility
protected
default
self
final
false
static
false

$_value

mixed $_value = 'null'

Details

$_value
mixed
visibility
protected
default
null
final
false
static
false

Methods

_getAutoDeterminedType

_getAutoDeterminedType( mixed $value ) : string

_getAutoDeterminedType()

Arguments
$value
mixed
Output
string
Details
visibility
public
final
false
static
false

_getValidatedType

_getValidatedType( string $type ) : string

_getValidatedType()

Arguments
$type
string
Output
string
Details
visibility
protected
final
false
static
false

_init

_init( ) :

_init()

This method will prepare the constant array for this class

Details
visibility
protected
final
false
static
false

generate

generate( ) : string

generate()

Output
string
Details
visibility
public
final
false
static
false

getArrayDepth

getArrayDepth( ) : int

getArrayDepth()

Output
int
Details
visibility
public
final
false
static
false

getType

getType( ) : string

getType()

Output
string
Details
visibility
public
final
false
static
false

getValue

getValue( ) : mixed

getValue()

Output
mixed
Details
visibility
public
final
false
static
false

isValidConstantType

isValidConstantType( ) : bool

isValidConstantType()

Output
bool
Details
visibility
public
final
false
static
false

setArrayDepth

setArrayDepth( int $arrayDepth ) : Zend_CodeGenerator_Php_Property_DefaultValue

setArrayDepth()

Arguments
$arrayDepth
int
Details
visibility
public
final
false
static
false

setType

setType( string $type ) : Zend_CodeGenerator_Php_Property_DefaultValue

setType()

Arguments
$type
string
Details
visibility
public
final
false
static
false

setValue

setValue( mixed $value ) : Zend_CodeGenerator_Php_Property_DefaultValue

setValue()

Arguments
$value
mixed
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.