User
class User extends User implements EquatableInterface, PrimaryKeyInterface, AdvanceUserInterface, UserInterface
Class User Extends default FOS User.
Properties
| protected int | $id | ||
| protected ArrayCollection|Group[] | $groups | Collection of groups for user | |
| protected array | $roles | Collection of roles for user | |
| protected bool | $locked | Indicates if user account is locked | |
| protected bool | $expired | Indicates if user account has expired | |
| protected array | $userSpecificProductGroups | Array that holds information about specific product groups discount for user. This field is auto-generated | |
| protected bool | $isActiveDefault | ||
| protected ArrayCollection | $orders | Collection of all orders user had made | |
| protected string | $type | Type of user. One of defined(PERSONAL or COMPANY) | |
| protected string | $firstName | User first name | |
| protected string | $lastName | Last name of user | |
| protected string | $userCode | Unique identifier for user. Used for storing user's erp code | |
| protected string | $userSecondaryCode | Unique identifier for user. Used for storing user's code | |
| protected array | $phoneNumbers | Array that holds mobile and phone number | |
| protected Address | $address | Primary address for user | |
| protected ArrayCollection|Address[] | $shippingAddresses | Collection of address | |
| protected Company | $company | User's company. NULL if user type is not COMPANY | |
| protected Image | $avatar | User's profile image | |
| protected ArrayCollection|Statistics[] | $statistics | Collection of statistics for user | |
| protected ArrayCollection|Ticket[] | $tickets | Collection of tickets created by user | |
| protected ArrayCollection|Comment[] | $comments | Collection of ticket comments posted by user | |
| protected Collection|CouponInterface[] | $coupons | Associated coupons | |
| protected ArrayCollection|UserSpecificPricelist[] | $userSpecificPricelists | Collection of specific pricelist prices for user | |
| protected string | $facebook_id | User's facebook id. Used for logging user via facebook | |
| protected string | $facebook_access_token | User's facebook access token. Used for logging user via facebook | |
| protected string | $google_id | User's google id. Used for logging user via google | |
| protected string | $google_access_token | User's google access token. Used for logging user via google | |
| protected string | $twitter_id | User's twitter id. Used for logging user via twitter | |
| protected string | $twitter_access_token | User's twitter access token. Used for logging user via twitter | |
| protected string | $facebookLink | Url of user's facebook page | |
| protected string | $twitterLink | User's twitter access token | |
| protected string | $gPlusLink | Url of user's google page | |
| protected | $baseImageUrl | Users' profile image url | |
| protected bool | $gdprConfirmed | Indicates if user has confirmed gdpr cookies | |
| protected string | $title | User's title | |
| protected string | $additionalInfo | Additional user's information. Used for my team plugin | |
| protected string | $additionalUserInformation | ||
| protected ShippingProvider | $defaultShippingProvider | Shipping provider which will be preselected on checkout | |
| protected string | $defaultPaymentType | Payment which will be preselected on checkout | |
| protected float | $accountBalance | Account balance | |
| protected float | $accountBalancePlus | Account balance | |
| protected float | $accountBalanceMinus | Account balance | |
| protected array | $pricelistItemsArray | Array that holds information about pricelist order for user and specific pricelist discounts for user. This field is auto-generated |
Methods
Constructor
No description
No description
No description
No description
Set image(if exist) url to user's property
No description
No description
No description
No description
Empty groups array
Gets the groups granted to the user.
No description
No description
No description
No description
No description
Get orders.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Get statistics
{@inheritdoc}
Retrieve all finished orders sorted by created at
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 524
__construct()
Constructor
at line 541
bool
isActiveDefault()
at line 551
User
setIsActiveDefault(bool $isActiveDefault)
at line 563
User
setStatistics(mixed $statistics)
at line 573
string|null
getBaseImageUrl()
at line 583
User
setBaseImage()
Set image(if exist) url to user's property
at line 599
bool
isEqualTo(UserInterface $user)
at line 621
integer
getId()
at line 629
User
reinitializeGroups()
at line 641
setGroups(array $groups)
at line 653
resetGroups()
Empty groups array
at line 667
Collection
getGroups()
Gets the groups granted to the user.
at line 675
array
getRoles()
at line 688
User
loadRoles()
Load roles for user, based on user's groups
at line 710
boolean
hasRole(string $rol)
at line 720
setSalt(string $salt)
at line 730
ArrayCollection
getShippingAddresses()
at line 744
User
setShippingAddresses(ArrayCollection $shippingAddresses)
at line 754
addOrder(OrderInterface $order)
Adds order to user.
at line 763
removeOrder(OrderInterface $order)
Remove order from user.
at line 771
addShippingAddress(Address $address, $setUserOnAddress = true)
{@inheritdoc}
at line 782
removeShippingAddress(Address $address)
{@inheritdoc}
at line 790
Collection|OrderInterface[]
getOrders()
Get orders.
at line 798
setOrders(null|Collection|OrderInterface[] $orders)
Set items.
at line 806
string
getType()
at line 814
setType(string $type)
at line 824
string
getUserSecondaryCode()
at line 834
User
setUserSecondaryCode(string $userSecondaryCode)
at line 844
mixed
getAddress()
at line 852
setAddress(mixed $address)
at line 862
string
getUserCode()
at line 872
User
setUserCode(string $userCode)
at line 882
array
getPhoneNumbers()
at line 893
User
setPhoneNumbers(array $phoneNumbers)
at line 903
mixed
getCompany()
at line 911
setCompany(mixed $company)
at line 921
mixed
getAvatar()
at line 931
setAvatar(mixed $avatar)
at line 941
string
getFirstName()
at line 949
setFirstName(string $firstName)
at line 959
string
getLastName()
at line 967
setLastName(string $lastName)
at line 977
string
getAddressToString()
at line 989
User
addStatistic(Statistics $statistic)
Add statistic
at line 1000
removeStatistic(Statistics $statistic)
Remove statistic
at line 1008
Collection
getStatistics()
Get statistics
at line 1016
getTickets()
{@inheritdoc}
at line 1026
array
getOrdersWithoutAbandonedCarts()
Retrieve all finished orders sorted by created at
at line 1050
array
getOrderSWithIDasKey()
at line 1065
setPropertyValue(string $name, mixed $value)
at line 1075
mixed|null
getPropertyValue(string $property)
at line 1087
addProductToWishList(Product $product)
Adds product to wishlist.