Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AddressBlock
  • AddressClass
  • CustomerAdditionalAddressInfo
  • CustomerB2BStatus
  • CustomerCallNumber
  • CustomerCity
  • CustomerCompany
  • CustomerCountryIso2
  • CustomerCountryIso3
  • CustomerCountryName
  • CustomerCountryZoneIsoCode
  • CustomerCountryZoneName
  • CustomerDateOfBirth
  • CustomerEmail
  • CustomerFirstname
  • CustomerGender
  • CustomerHashedPassword
  • CustomerHouseNumber
  • CustomerInputValidatorSettings
  • CustomerLastname
  • CustomerMemo
  • CustomerNumber
  • CustomerPassword
  • CustomerPostcode
  • CustomerServiceSettings
  • CustomerStreet
  • CustomerSuburb
  • CustomerVatNumber

Class CustomerPassword

Class CustomerPassword

Represents a customer's password.

CustomerPassword implements CustomerPasswordInterface
Package: Customer\ValueObjects
Deprecated: This class is deprecated and will be deleted in GX 3.7. Use CustomerHashedPassword instead.
Category: System
Implements: CustomerPasswordInterface
Located at Services/Core/Customer/ValueObjects/CustomerPassword.inc.php

Methods summary

public
# __construct( string $p_password, boolean $p_disableHash = false )

Constructor for the class CustomerPassword.

Constructor for the class CustomerPassword.

Validates password and build md5-hash.

Parameters

$p_password
Customer's password.
$p_disableHash
(optional) Will not hash the provided password string.

Throws

InvalidArgumentException
If $p_password is not a string.
public string
# __toString( )

Returns the password string value (either hashed or not).

Returns the password string value (either hashed or not).

Returns

string

Implementation of

CustomerPasswordInterface::__toString()
protected string
# _getHash( string $p_password )

Get password hash string.

Get password hash string.

Parameters

$p_password
Password to be hashed.

Returns

string

Throws

RuntimeException
If the password_hash function fails to hash the password.

Properties summary

protected string $password

Customer's password.

Customer's password.

#
API documentation generated by ApiGen