Commit 0aa94c78 authored by David Surville's avatar David Surville
Browse files

[Evolution] Ajout des attributs "supannAutreMail" et "mailForwardingAddress"

parent 679e9cf0
......@@ -90,6 +90,7 @@ class People extends Entity
'leoCode',
'loginShell',
'mail',
'mailForwardingAddress',
'mobile',
'ntPassword',
'pager',
......@@ -105,6 +106,7 @@ class People extends Entity
'supannActivite',
'supannAffectation',
'supannAliasLogin',
'supannAutreMail',
'supannAutreTelephone',
'supannCivilite',
'supannCodeINE',
......@@ -604,6 +606,42 @@ class People extends Entity
return $this;
}
/**
* Attribut Ldap "supannAutreMail"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setSupannAutreMail($value = null, $append = false)
{
$value = $this->preFormat($value);
$value = array_filter(filter_var_array($value, FILTER_VALIDATE_EMAIL));
$this->appendOrNot('supannAutreMail', $value, $append);
return $this;
}
/**
* Attribut Ldap "mailForwardingAddress"
*
* @param array|string|null $value
* @param bool $append
* @return self
* @throws Exception
* @throws LdapException
*/
public function setMailForwardingAddress($value = null, $append = false)
{
$value = $this->preFormat($value);
$value = array_filter(filter_var_array($value, FILTER_VALIDATE_EMAIL));
$this->appendOrNot('mailForwardingAddress', $value, $append);
return $this;
}
/**
* Attribut Ldap "mobile"
*
......
......@@ -18,17 +18,6 @@ use Zend\Ldap\Dn;
*/
class People extends BasePeople
{
/**
* Liste des rôles existants
*
* @var string[]
*/
public static $roles_list = [
'DIRECTEUR' => 'D30',
'RESPONSABLE' => 'R00',
'RESP_ADMINISTRATIF' => 'R40',
];
/**
* Détermine si l'individu est actif ou non
*
......@@ -693,7 +682,7 @@ class People extends BasePeople
}
/**
* Retourne le site d'un personne
* Retourne le site d'une personne
*
* @return array|null
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment