Kohinos
2.1.5
Logiciel de gestion d'une MLC (Monnaie Locale Complémentaire)
|
Fonctions membres publiques | |
getId () | |
getApiKey () | |
isUser (?UserInterface $user=null) | |
createApiKey () | |
getEtat () | |
setEtat (?string $etat) | |
getMobile () | |
setMobile (?string $mobile) | |
isGranted ($role) | |
isAdmin () | |
isSuperAdmin () | |
getSuperAdmin () | |
getAdherent () | |
setAdherent ($adherent) | |
getPrestataires () | |
addPrestataire (Prestataire $prestataire) | |
removePrestataire (Prestataire $prestataire) | |
setPrestataires ($prestataires) | |
getCaissiers () | |
addCaissier (Prestataire $caissier) | |
removeCaissier (Prestataire $caissier) | |
setCaissiers ($caissiers) | |
getFlux () | |
addFlux (Flux $flux) | |
removeFlux (Flux $flux) | |
getGroupesgeres () | |
setGroupesgeres ($groupesgeres) | |
addGroupesgere (Groupe $groupesgere) | |
removeGroupesgere (Groupe $groupesgere) | |
getComptoirsgeres () | |
setComptoirsgeres ($comptoirsgeres) | |
addComptoirsgere (Comptoir $comptoirsgere) | |
removeComptoirsgere (Comptoir $comptoirsgere) | |
createEmailToken () | |
getFirstValidEmailToken () | |
getEmailTokens () | |
getEmailToken ($token) | |
__toString () | |
getName () | |
getNews () | |
addNews (News $news) | |
removeNews (News $news) | |
getPages () | |
addPage (Page $page) | |
removePage (Page $page) | |
getPossiblegroups () | |
setPossiblegroups ($possiblegroups) | |
addPossibleGroup (GroupInterface $possiblegroups) | |
removePossibleGroup (GroupInterface $possiblegroups) | |
getAlertemailflux () | |
setAlertemailflux (bool $alertemailflux) | |
getCanValidateAchat () | |
setCanValidateAchat (bool $canValidateAchat) | |
setGroups ($groups) | |
Attributs publics | |
$canValidateAchat | |
Attributs protégés | |
$id | |
$plainPassword | |
$username | |
$etat | |
$mobile | |
$flux | |
$adherent | |
$prestataires | |
$caissiers | |
$groups | |
$possiblegroups | |
$alertemailflux = true | |
ApiResource( attributes={"security"="is_granted('ROLE_SONATA_USER_GERER_VIEW')"}, collectionOperations={ "get"={"security"="is_granted('ROLE_SONATA_USER_GERER_LIST')"}, "post"={"security"="is_granted('ROLE_SONATA_USER_GERER_EDIT')"} }, itemOperations={ "get"={"security"="is_granted('ROLE_SONATA_USER_GERER_VIEW')"}, "put"={"security"="is_granted('ROLE_SONATA_USER_GERER_EDIT')"}, }, normalizationContext={"groups"={"read"}}, denormalizationContext={"groups"={"write"}} ).
@ORM\Entity(repositoryClass="App\Repository\UserRepository") @ORM\Table(name="user") @UniqueEntity( fields = "email", message = "Cet email est déjà utilisé !" )
App\Entity\User::addCaissier | ( | Prestataire | $caissier | ) |
Prestataire | $caissier |
App\Entity\User::addComptoirsgere | ( | Comptoir | $comptoirsgere | ) |
Comptoirsgere | $comptoirsgere |
App\Entity\User::addGroupesgere | ( | Groupe | $groupesgere | ) |
Groupesgere | $groupesgere |
App\Entity\User::addPossibleGroup | ( | GroupInterface | $possiblegroups | ) |
addPossibleGroup.
GroupInterface | $possiblegroups | [description] |
App\Entity\User::addPrestataire | ( | Prestataire | $prestataire | ) |
Prestataire | $prestataire |
App\Entity\User::getAdherent | ( | ) |
Get adherent.
App\Entity\User::getAlertemailflux | ( | ) |
Get alertemailflux.
App\Entity\User::getApiKey | ( | ) |
Get apiKey.
App\Entity\User::getCaissiers | ( | ) |
Get caissiers.
App\Entity\User::getCanValidateAchat | ( | ) |
Get canValidateAchat.
App\Entity\User::getComptoirsgeres | ( | ) |
App\Entity\User::getEtat | ( | ) |
App\Entity\User::getFlux | ( | ) |
App\Entity\User::getGroupesgeres | ( | ) |
App\Entity\User::getMobile | ( | ) |
Get mobile number.
App\Entity\User::getNews | ( | ) |
App\Entity\User::getPages | ( | ) |
App\Entity\User::getPossiblegroups | ( | ) |
Get possiblegroups.
App\Entity\User::getPrestataires | ( | ) |
Get prestataires.
App\Entity\User::removeCaissier | ( | Prestataire | $caissier | ) |
Prestataire | $caissier |
App\Entity\User::removeComptoirsgere | ( | Comptoir | $comptoirsgere | ) |
Comptoirsgere | $comptoirsgere |
App\Entity\User::removeGroupesgere | ( | Groupe | $groupesgere | ) |
Groupesgere | $groupesgere |
App\Entity\User::removePossibleGroup | ( | GroupInterface | $possiblegroups | ) |
removePossibleGroup.
GroupInterface | $possiblegroups | [description] |
App\Entity\User::removePrestataire | ( | Prestataire | $prestataire | ) |
Prestataire | $prestataire |
App\Entity\User::setAdherent | ( | $adherent | ) |
Set adherent.
App\Entity\User::setAlertemailflux | ( | bool | $alertemailflux | ) |
Set alertemailflux.
App\Entity\User::setCaissiers | ( | $caissiers | ) |
Set caissier.
App\Entity\User::setCanValidateAchat | ( | bool | $canValidateAchat | ) |
Set canValidateAchat.
App\Entity\User::setComptoirsgeres | ( | $comptoirsgeres | ) |
Comptoirsgere[]|ArrayCollection |
App\Entity\User::setEtat | ( | ?string | $etat | ) |
string | null | $etat |
App\Entity\User::setGroupesgeres | ( | $groupesgeres | ) |
Groupesgere[]|ArrayCollection |
App\Entity\User::setGroups | ( | $groups | ) |
Quand on appelle setGroups sur le user, on réinitialise ses groupes avant ! Pour pouvoir se connecter sur un seul groupe, les groupes possibles sont dans possiblegroups ! {}
App\Entity\User::setMobile | ( | ?string | $mobile | ) |
Set mobile number.
string | $mobile | [description] |
App\Entity\User::setPossiblegroups | ( | $possiblegroups | ) |
Set possiblegroups.
App\Entity\User::setPrestataires | ( | $prestataires | ) |
Set prestataire.
|
protected |
@ORM\OneToOne(targetEntity="Adherent", inversedBy="user", cascade={"all"}, fetch="EXTRA_LAZY") @ORM\JoinColumn(name="adherent_id", referencedColumnName="id", nullable=true)
|
protected |
@ORM\ManyToMany(targetEntity="App\Entity\Prestataire", mappedBy="caissiers", cascade={"persist"}, fetch="EAGER")
|
protected |
@Groups({"user"})
|
protected |
@ORM\OneToMany(targetEntity="Flux", mappedBy="operateur", cascade={"persist"}) @ORM\OrderBy({"createdAt" = "DESC"})
|
protected |
@ORM\ManyToMany(targetEntity="App\Entity\Usergroup", cascade={"persist"}, fetch="EAGER") @ORM\JoinTable(name="user_usergroup", joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")} )
|
protected |
@ORM\Column(type="string", length=15, nullable=true) @Groups({"user"})
|
protected |
@Groups({"user:write"})
|
protected |
@ORM\ManyToMany(targetEntity="App\Entity\Usergroup", cascade={"persist"}, fetch="EAGER") @ORM\JoinTable(name="user_possiblegroup", joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, inverseJoinColumns={@ORM\JoinColumn(name="group_id", referencedColumnName="id")} )
|
protected |
@ORM\ManyToMany(targetEntity="App\Entity\Prestataire", mappedBy="users", cascade={"persist"}, fetch="EAGER") @ORM\JoinTable(name="user_prestataire", joinColumns={@ORM\JoinColumn(name="user_id", referencedColumnName="id")}, inverseJoinColumns={@ORM\JoinColumn(name="prestataire_id", referencedColumnName="id")} )
|
protected |
@Groups({"user"})