plainPassword = $value; return $this->getPasswordHashService()->encrypt($value); case UserRdf::PROPERTY_UILG: case UserRdf::PROPERTY_DEFLG: $val = $this->getLanguageService()->getLanguageByCode($value); return $val === null ? $value : $val->getUri(); default: return $value; } } /** * @return \helpers_PasswordHash */ protected function getPasswordHashService() { return \core_kernel_users_Service::getPasswordHash(); } /** * @return tao_models_classes_LanguageService */ protected function getLanguageService() { return tao_models_classes_LanguageService::singleton(); } /** * Get the plain password * * @return string|null */ public function getPlainPassword() { return $this->plainPassword; } }