Back to Opencart

Class Opencart\Catalog\Model\Account\Customer

docs/api/Opencart.Catalog.Model.Account.Customer.html

4.1.0.38.3 KB
Original Source

Namespaces

Classes

Class Opencart[Catalog](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html)\[Model](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.html)\[Account](http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.Model.Account.html)\[Customer](http://localhost\opencart-master/docs/api/Opencart.Catalog.Model.Account.Customer.html)

| extends | Model |

Class Customer

Located at catalog\model\account\customer.php

Methods
`
public

			` | `addCustomer(array<string, mixed> $data): int`

Add Customer

Add Customer

| # | | `

public

			` | `editCustomer(int $customer_id, array<string, mixed> $data): void`

Edit Customer

Edit Customer

| # | | `

public

			` | `editPassword(string $email, string $password): void`

Edit Password

Edit Password

| # | | `

public

			` | `editCode(string $email, string $code): void`

Edit Code

Edit Code

| # | | `

public

			` | `editToken(string $email, string $token): void`

Edit Token

Edit Token

| # | | `

public

			` | `editNewsletter(int $customer_id, bool $newsletter): void`

Edit Newsletter

Edit Newsletter

| # | | `

public

			` | `deleteCustomer(int $customer_id): void`

Delete Customer

Delete Customer

| # | | `

public

			` | `getCustomer(int $customer_id): array<string, mixed>`

Get Customer

Get Customer

| # | | `

public

			` | `getCustomerByEmail(string $email): array<string, mixed>`

Get Customer By Email

Get Customer By Email

| # | | `

public

			` | `getCustomerByCode(string $code): array<string, mixed>`

Get Customer By Code

Get Customer By Code

| # | | `

public

			` | `getCustomerByToken(string $token): array<string, mixed>`

Get Customer By Token

Get Customer By Token

| # | | `

public

			` | `getTotalCustomersByEmail(string $email): int`

Get Total Customers By Email

Get Total Customers By Email

| # | | `

public

			` | `deleteHistory(int $customer_id): void`

Delete Customer History

Delete Customer History

| # | | `

public

			` | `deleteIp(int $customer_id): void`

Delete Ip

Delete Ip

| # | | `

public

			` | `getIps(int $customer_id): array<int, array<string, mixed>>`

Get Ips

Get Ips

| # | | `

public

			` | `getTotalIps(int $customer_id): int`

Get Total Ips

Get Total Ips

| # | | `

public

			` | `addLogin(int $customer_id, string $ip, string $country = ''): void`

Add Login

Add Login

| # | | `

public

			` | `addLoginAttempt(string $email): void`

Add Login Attempt

Add Login Attempt

| # | | `

public

			` | `deleteLoginAttempts(string $email): void`

Delete Customer Login Attempts

Delete Customer Login Attempts

| # | | `

public

			` | `getLoginAttempts(string $email): array<string, mixed>`

Get Login Attempts

Get Login Attempts

| # | | `

public

			` | `addAuthorize(int $customer_id, array<string, mixed> $data): void`

Add Authorize

Add Authorize

| # | | `

public

			` | `editAuthorizeStatus(int $customer_authorize_id, bool $status): void`

Edit Authorize Status

Edit Authorize Status

| # | | `

public

			` | `editAuthorizeTotal(int $customer_authorize_id, int $total): void`

Edit Authorize Total

Edit Authorize Total

| # | | `

public

			` | `deleteAuthorize(int $customer_id, int $customer_authorize_id = 0): void`

Delete Customer Authorize

Delete Customer Authorize

| # | | `

public

			` | `getAuthorizeByToken(int $customer_id, string $token): array<string, mixed>`

Get Authorize By Token

Get Authorize By Token

| # | | `

public

			` | `resetAuthorizes(int $customer_id): void`

Reset Customer Authorizes

Reset Customer Authorizes

| # |

Methods inherited from Opencart\System\Engine\Model
__construct(),__get(), __set(),__isset()
Properties inherited from Opencart\System\Engine\Model
$registry

OpenCart API API documentation generated by ApiGen dev-master