PHP Class Eccube\Repository\CustomerRepository

This class was generated by the Doctrine ORM. Add your own custom repository methods below.
Inheritance: extends Doctrine\ORM\EntityRepository, implements Symfony\Component\Security\Core\User\UserProviderInterface
Show file Open project: ec-cube/ec-cube Class Usage Examples

Protected Properties

Property Type Description
$app

Public Methods

Method Description
createSalt ( $byte ) : string saltを生成する
encryptPassword ( $app, Customer $Customer ) : mixed 入力されたパスワードをSaltと暗号化する
getActiveCustomerByEmail ( $email )
getActiveCustomerByResetKey ( $reset_key )
getNonActiveCustomerBySecretKey ( $secret_key )
getQueryBuilderBySearchData ( $searchData )
getResetPassword ( )
getUniqueResetKey ( $app ) : string ユニークなパスワードリセットキーを返す
getUniqueSecretKey ( $app ) : string ユニークなシークレットキーを返す
loadUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface Loads the user for the given username.
newCustomer ( )
refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user ) : Symfony\Component\Security\Core\User\UserInterface Refreshes the user for the account interface.
setApplication ( $app )
supportsClass ( string $class ) : boolean Whether this provider supports the given user class.
updateBuyData ( $app, Customer $Customer, $orderStatusId ) 会員の初回購入時間、購入時間、購入回数、購入金額を更新する

Method Details

createSalt() public method

saltを生成する
public createSalt ( $byte ) : string
$byte
return string

encryptPassword() public method

入力されたパスワードをSaltと暗号化する
public encryptPassword ( $app, Customer $Customer ) : mixed
$app
$Customer Eccube\Entity\Customer
return mixed

getActiveCustomerByEmail() public method

public getActiveCustomerByEmail ( $email )

getActiveCustomerByResetKey() public method

public getActiveCustomerByResetKey ( $reset_key )

getNonActiveCustomerBySecretKey() public method

public getNonActiveCustomerBySecretKey ( $secret_key )

getQueryBuilderBySearchData() public method

public getQueryBuilderBySearchData ( $searchData )

getResetPassword() public method

public getResetPassword ( )

getUniqueResetKey() public method

ユニークなパスワードリセットキーを返す
public getUniqueResetKey ( $app ) : string
$app
return string

getUniqueSecretKey() public method

ユニークなシークレットキーを返す
public getUniqueSecretKey ( $app ) : string
$app
return string

loadUserByUsername() public method

This method must throw UsernameNotFoundException if the user is not found.
See also: UsernameNotFoundException
public loadUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface
$username string The username
return Symfony\Component\Security\Core\User\UserInterface

newCustomer() public method

public newCustomer ( )

refreshUser() public method

It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map.
public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user ) : Symfony\Component\Security\Core\User\UserInterface
$user Symfony\Component\Security\Core\User\UserInterface
return Symfony\Component\Security\Core\User\UserInterface

setApplication() public method

public setApplication ( $app )

supportsClass() public method

Whether this provider supports the given user class.
public supportsClass ( string $class ) : boolean
$class string
return boolean

updateBuyData() public method

会員の初回購入時間、購入時間、購入回数、購入金額を更新する
public updateBuyData ( $app, Customer $Customer, $orderStatusId )
$app
$Customer Eccube\Entity\Customer
$orderStatusId

Property Details

$app protected property

protected $app