Fix comments

refs #3769
This commit is contained in:
Matthias Jentsch 2013-07-26 15:57:37 +02:00
parent 845654b77f
commit 94e9ffc7b3
2 changed files with 13 additions and 11 deletions

View File

@ -36,7 +36,7 @@ use Icinga\Authentication;
use Icinga\Application\Logger;
/**
* Authenticates users using a sql db as backend.
* Authenticate users using a sql db as backend.
* @package Icinga\Authentication\Backend
*/
class DbUserBackend implements UserBackend {
@ -70,8 +70,10 @@ class DbUserBackend implements UserBackend {
$DOMAIN_COLUMN = 'domain',
$EMAIL_COLUMN = 'email';
/*
* maps the configuration dbtypes to the corresponding Zend-PDOs
/**
* Map the configuration dbtypes to the corresponding Zend-PDOs
*
* @var Array
*/
private $dbTypeMap = Array(
'mysql' => 'PDO_MYSQL',
@ -79,7 +81,7 @@ class DbUserBackend implements UserBackend {
);
/**
* Creates a DbUserBackend
* Create a DbUserBackend
*
* @param $config The configuration-object containing the members host,user,password,db
*/
@ -110,7 +112,7 @@ class DbUserBackend implements UserBackend {
}
/**
* Checks if the user identified by the given credentials is available
* Check if the user identified by the given credentials is available
*
* @param Credentials $credentials The login credentials
* @return boolean True when the username is known and currently active.
@ -171,7 +173,7 @@ class DbUserBackend implements UserBackend {
}
/**
* Fetch the user's salt from the database
* Fetch the users salt from the database
*
* @param $username The user whose salt should be fetched.
* @return String|null Returns the salt-string or Null, when the user does not exist.
@ -216,7 +218,7 @@ class DbUserBackend implements UserBackend {
}
/**
* Creates a new instance of User from the given result-array
* Create a new instance of User from a query result
*
* @param array $result The query result-array containing the column
* @return User The created instance of User.
@ -231,4 +233,4 @@ class DbUserBackend implements UserBackend {
$usr->setDomain($result[$this->DOMAIN_COLUMN]);
return $usr;
}
}
}

View File

@ -96,7 +96,7 @@ class DbUserBackendTest extends \PHPUnit_Framework_TestCase {
}
/**
* Create the backends and fill it with sample-data.
* Create the backends and fill it with sample-data
*/
protected function setUp()
{
@ -125,7 +125,7 @@ class DbUserBackendTest extends \PHPUnit_Framework_TestCase {
}
/**
* Test the PostgreSQL backend.
* Test the PostgreSQL backend
*/
public function testPgsql()
{
@ -140,7 +140,7 @@ class DbUserBackendTest extends \PHPUnit_Framework_TestCase {
}
/**
* Test the MySQL-Backend.
* Test the MySQL-Backend
*/
public function testMySQL()
{