Moodle  2.2.1
http://www.collinsharper.com
Zend_Server_Method_Parameter Class Reference

Public Member Functions

 __construct ($options=null)
 setOptions (array $options)
 setDefaultValue ($defaultValue)
 getDefaultValue ()
 setDescription ($description)
 getDescription ()
 setName ($name)
 getName ()
 setOptional ($flag)
 isOptional ()
 setType ($type)
 getType ()
 toArray ()

Protected Attributes

 $_defaultValue
 $_description = ''
 $_name
 $_optional = false
 $_type = 'mixed'

Detailed Description

Definition at line 32 of file Parameter.php.


Constructor & Destructor Documentation

__construct ( options = null)

Constructor

Parameters:
null | array$options
Returns:
void

Definition at line 65 of file Parameter.php.

Here is the call graph for this function:


Member Function Documentation

Retrieve default value

Returns:
mixed

Definition at line 106 of file Parameter.php.

Here is the caller graph for this function:

Retrieve description

Returns:
string

Definition at line 128 of file Parameter.php.

Here is the caller graph for this function:

getName ( )

Retrieve name

Returns:
string

Definition at line 150 of file Parameter.php.

Here is the caller graph for this function:

getType ( )

Retrieve parameter type

Returns:
string

Definition at line 194 of file Parameter.php.

Here is the caller graph for this function:

Is the parameter optional?

Returns:
bool

Definition at line 172 of file Parameter.php.

Here is the caller graph for this function:

setDefaultValue ( defaultValue)

Set default value

Parameters:
mixed$defaultValue
Returns:
Zend_Server_Method_Parameter

Definition at line 95 of file Parameter.php.

setDescription ( description)

Set description

Parameters:
string$description
Returns:
Zend_Server_Method_Parameter

Definition at line 117 of file Parameter.php.

setName ( name)

Set name

Parameters:
string$name
Returns:
Zend_Server_Method_Parameter

Definition at line 139 of file Parameter.php.

setOptional ( flag)

Set optional flag

Parameters:
bool$flag
Returns:
Zend_Server_Method_Parameter

Definition at line 161 of file Parameter.php.

setOptions ( array options)

Set object state from array of options

Parameters:
array$options
Returns:
Zend_Server_Method_Parameter

Definition at line 78 of file Parameter.php.

Here is the caller graph for this function:

setType ( type)

Set parameter type

Parameters:
string$type
Returns:
Zend_Server_Method_Parameter

Definition at line 183 of file Parameter.php.

toArray ( )

Cast to array

Returns:
array

Definition at line 204 of file Parameter.php.

Here is the call graph for this function:


Field Documentation

$_defaultValue [protected]

Definition at line 37 of file Parameter.php.

$_description = '' [protected]

Definition at line 42 of file Parameter.php.

$_name [protected]

Definition at line 47 of file Parameter.php.

$_optional = false [protected]

Definition at line 52 of file Parameter.php.

$_type = 'mixed' [protected]

Definition at line 57 of file Parameter.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations