Service/DeveloperGarden/Credential.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- DeveloperGarden
- Version
- $Id$
\Zend_Service_DeveloperGarden_Credential
Package: Zend_Service\DeveloperGarden


Returns



- Author
- Marco Kaiser
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


string $_realm = 't-online.de'
Service Realm - default t-online.de
Default value
't-online.de'
Details- Type
- string
Methods


__construct(string $username = null, string $password = null, string $realm = null) : \Zend_Service_DeveloperGarden_Credential
constructor to init the internal data
Parameters
Returns
Name | Type | Description |
---|---|---|
$username | string | |
$password | string | |
$realm | string |
Type | Description |
---|---|
\Zend_Service_DeveloperGarden_Credential |


getUsername(bool $withRealm = false) : string | null
returns the username
if $withRealm == true we combine username and realm like
username@realm
ParametersName | Type | Description |
---|---|---|
$withRealm | bool |
Type | Description |
---|---|
string | null |


setPassword(string $password = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
split the password into an array
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$password | string |
Type | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_ClientAbstract |
Exception | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_Exception |


setRealm(string $realm = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
set the new realm
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$realm | string |
Type | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_ClientAbstract |
Exception | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_Exception |


setUsername(string $username = null) : \Zend_Service_DeveloperGarden_Client_ClientAbstract
set the new login
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$username | string |
Type | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_ClientAbstract |
Exception | Description |
---|---|
\Zend_Service_DeveloperGarden_Client_Exception |