Error/Form.php
\Conjoon_Error_Form
Package: Conjoon\Error
A class representing an error in the conjoon application.
- Parent(s)
- \Conjoon_Error < \Conjoon_BeanContext
- Author
- Thorsten-Suckow-Homberg
- Category
- Error
- Uses
- \Conjoon_BeanContext
- Uses
- \Serializable
Constants
UNKNOWN
= 'CONJOON_ERROR_UNKNOWN'
inheritedInherited from:
\Conjoon_Error::UNKNOWN
- Inherited_from
- \Conjoon_Error::UNKNOWN
INPUT
= 'CONJOON_ERROR_INPUT'
inheritedInherited from:
\Conjoon_Error::INPUT
- Inherited_from
- \Conjoon_Error::INPUT
AUTHORIZATION
= 'CONJOON_ERROR_AUTHORIZATION'
inheritedInherited from:
\Conjoon_Error::AUTHORIZATION
- Inherited_from
- \Conjoon_Error::AUTHORIZATION
LOCKED
= 'CONJOON_ERROR_LOCKED'
inheritedInherited from:
\Conjoon_Error::LOCKED
- Inherited_from
- \Conjoon_Error::LOCKED
TOKEN_FAILURE
= 'CONJOON_ERROR_TOKEN_FAILURE'
inheritedInherited from:
\Conjoon_Error::TOKEN_FAILURE
- Inherited_from
- \Conjoon_Error::TOKEN_FAILURE
DATA
= 'CONJOON_ERROR_DATA'
inheritedInherited from:
\Conjoon_Error::DATA
- Inherited_from
- \Conjoon_Error::DATA
LEVEL_CRITICAL
= 'critical'
inheritedInherited from:
\Conjoon_Error::LEVEL_CRITICAL
- Inherited_from
- \Conjoon_Error::LEVEL_CRITICAL
LEVEL_WARNING
= 'warning'
inheritedInherited from:
\Conjoon_Error::LEVEL_WARNING
- Inherited_from
- \Conjoon_Error::LEVEL_WARNING
LEVEL_ERROR
= 'error'
inheritedInherited from:
\Conjoon_Error::LEVEL_ERROR
- Inherited_from
- \Conjoon_Error::LEVEL_ERROR
Properties

$code= ''
inheritedInherited from:
\Conjoon_Error::$$code
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$code

$file= ''
inheritedInherited from:
\Conjoon_Error::$$file
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$file

$level= ''
inheritedInherited from:
\Conjoon_Error::$$level
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$level

$line= ''
inheritedInherited from:
\Conjoon_Error::$$line
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$line

$message= ''
inheritedInherited from:
\Conjoon_Error::$$message
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$message

$type= ''
inheritedInherited from:
\Conjoon_Error::$$type
Details
- Type
- n/a
- Inherited_from
- \Conjoon_Error::$$type
Methods

__toString(
)
:
stringReturns a textual representation of the current object.
Returns
| Type | Description |
|---|---|
| string |

fromException(
\Exception $e, $errorClass
=
'Conjoon_Error'
)
:
\Conjoon_Error
staticinherited
Creates a new instance of Conjoon_Error based on the passed exception.
Inherited from: \Conjoon_Error::fromException()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $e | \Exception | Any exception that should be casted to an instance of Conjoon_Error |
| $errorClass |
| Type | Description |
|---|---|
| \Conjoon_Error |

fromFilter(
\Zend_Filter_Input $filter, \Zend_Filter_Exception $e
)
:
\Conjoon_Error_Form
staticinherited
Creates a Conjoon_Error_Form based on the fields that where marked as errorneous in the passed filter-instance.
Inherited from: \Conjoon_Error::fromFilter()
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $filter | \Zend_Filter_Input | |
| $e | \Zend_Filter_Exception |
| Type | Description |
|---|---|
| \Conjoon_Error_Form |

getDto(
)
:
\Conjoon_Groupware_Email_AccountDtoReturns a Dto for an instance of this class.
Returns
| Type | Description |
|---|---|
| \Conjoon_Groupware_Email_AccountDto |

serialize(
)
:
string
inherited
Serializes properties and returns them as a string which can later on be unserialized.
Inherited from: \Conjoon_Error::serialize()
Returns
| Type | Description |
|---|---|
| string |

setCode(
$code
)
:
void
inherited
Inherited from:
\Conjoon_Error::setCode()
Parameters
| Name | Type | Description |
|---|---|---|
| $code |

setFile(
$file
)
:
void
inherited
Inherited from:
\Conjoon_Error::setFile()
Parameters
| Name | Type | Description |
|---|---|---|
| $file |

setLevel(
$level
)
:
void
inherited
Inherited from:
\Conjoon_Error::setLevel()
Parameters
| Name | Type | Description |
|---|---|---|
| $level |

setLine(
$line
)
:
void
inherited
Inherited from:
\Conjoon_Error::setLine()
Parameters
| Name | Type | Description |
|---|---|---|
| $line |

setMessage(
$message
)
:
void
inherited
Inherited from:
\Conjoon_Error::setMessage()
Parameters
| Name | Type | Description |
|---|---|---|
| $message |

setType(
$type
)
:
void
inherited
Inherited from:
\Conjoon_Error::setType()
Parameters
| Name | Type | Description |
|---|---|---|
| $type |

toArray(
)
:
arrayReturns an associative array, which key/value pairs represent the properties stored by this object.
Returns
| Type | Description |
|---|---|
| array |

unserialize(
string $serialized
)
:
void
inherited
Unserializes $serialized and assigns the specific values found to the members in this class.
Inherited from: \Conjoon_Error::unserialize()
Parameters
| Name | Type | Description |
|---|---|---|
| $serialized | string | The serialized representation of a former instance of this class. |