oPersonalAddressBook = $oPersonalAddressBook; } /** * @param string $sRealm * @param string $sUserName * * @return string|null */ public function getDigestHash($sRealm, $sUserName) { $sHash = $this->oPersonalAddressBook->GetUserHashByEmail($sUserName, true); if (!empty($sHash)) { $this->currentUser = $sUserName; return \md5($sUserName.':'.$sRealm.':'.$sHash); } return null; } }