Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
ldap
Commits
0aa94c78
Commit
0aa94c78
authored
Sep 03, 2020
by
David Surville
Browse files
[Evolution] Ajout des attributs "supannAutreMail" et "mailForwardingAddress"
parent
679e9cf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/UnicaenLdap/Entity/Base/People.php
View file @
0aa94c78
...
...
@@ -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"
*
...
...
src/UnicaenLdap/Entity/People.php
View file @
0aa94c78
...
...
@@ -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'un
e
personne
*
* @return array|null
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment