fix(activeuser): user isactive & adress niveau & route all
This commit is contained in:
@@ -32,6 +32,26 @@ class Niveau01
|
||||
*/
|
||||
private $label;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $postaladress;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $telephonenumber;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*/
|
||||
@@ -285,4 +305,52 @@ class Niveau01
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setCode(?string $code): self
|
||||
{
|
||||
$this->code = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPostaladress(): ?string
|
||||
{
|
||||
return $this->postaladress;
|
||||
}
|
||||
|
||||
public function setPostaladress(?string $postaladress): self
|
||||
{
|
||||
$this->postaladress = $postaladress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTelephonenumber(): ?string
|
||||
{
|
||||
return $this->telephonenumber;
|
||||
}
|
||||
|
||||
public function setTelephonenumber(?string $telephonenumber): self
|
||||
{
|
||||
$this->telephonenumber = $telephonenumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(?string $email): self
|
||||
{
|
||||
$this->email = $email;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@@ -32,6 +32,26 @@ class Niveau02
|
||||
*/
|
||||
private $label;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $postaladress;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $telephonenumber;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*/
|
||||
@@ -204,4 +224,52 @@ class Niveau02
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setCode(?string $code): self
|
||||
{
|
||||
$this->code = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPostaladress(): ?string
|
||||
{
|
||||
return $this->postaladress;
|
||||
}
|
||||
|
||||
public function setPostaladress(?string $postaladress): self
|
||||
{
|
||||
$this->postaladress = $postaladress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTelephonenumber(): ?string
|
||||
{
|
||||
return $this->telephonenumber;
|
||||
}
|
||||
|
||||
public function setTelephonenumber(?string $telephonenumber): self
|
||||
{
|
||||
$this->telephonenumber = $telephonenumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(?string $email): self
|
||||
{
|
||||
$this->email = $email;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@@ -32,6 +32,26 @@ class Niveau03
|
||||
*/
|
||||
private $label;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $postaladress;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $telephonenumber;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*/
|
||||
@@ -220,4 +240,52 @@ class Niveau03
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setCode(?string $code): self
|
||||
{
|
||||
$this->code = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPostaladress(): ?string
|
||||
{
|
||||
return $this->postaladress;
|
||||
}
|
||||
|
||||
public function setPostaladress(?string $postaladress): self
|
||||
{
|
||||
$this->postaladress = $postaladress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTelephonenumber(): ?string
|
||||
{
|
||||
return $this->telephonenumber;
|
||||
}
|
||||
|
||||
public function setTelephonenumber(?string $telephonenumber): self
|
||||
{
|
||||
$this->telephonenumber = $telephonenumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(?string $email): self
|
||||
{
|
||||
$this->email = $email;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@@ -32,6 +32,26 @@ class Niveau04
|
||||
*/
|
||||
private $label;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
*/
|
||||
private $postaladress;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $telephonenumber;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=60, nullable=true)
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string")
|
||||
*/
|
||||
@@ -196,4 +216,52 @@ class Niveau04
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setCode(?string $code): self
|
||||
{
|
||||
$this->code = $code;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getPostaladress(): ?string
|
||||
{
|
||||
return $this->postaladress;
|
||||
}
|
||||
|
||||
public function setPostaladress(?string $postaladress): self
|
||||
{
|
||||
$this->postaladress = $postaladress;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTelephonenumber(): ?string
|
||||
{
|
||||
return $this->telephonenumber;
|
||||
}
|
||||
|
||||
public function setTelephonenumber(?string $telephonenumber): self
|
||||
{
|
||||
$this->telephonenumber = $telephonenumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getEmail(): ?string
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
public function setEmail(?string $email): self
|
||||
{
|
||||
$this->email = $email;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
@@ -283,7 +283,12 @@ class User implements UserInterface, LegacyPasswordAuthenticatedUserInterface
|
||||
|
||||
public function getDisplayname()
|
||||
{
|
||||
return $this->firstname.' '.$this->lastname;
|
||||
return $this->firstname.' '.$this->lastname.(!$this->isactive ? ' (inactif)' : '');
|
||||
}
|
||||
|
||||
public function getFullname()
|
||||
{
|
||||
return $this->username.' = '.$this->firstname.' '.$this->lastname.(!$this->isactive ? ' (inactif)' : '');
|
||||
}
|
||||
|
||||
// == FIN DU CODE A NE PAS REGENERER
|
||||
|
Reference in New Issue
Block a user