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
a421d20a
Commit
a421d20a
authored
Nov 25, 2020
by
David Surville
Browse files
Ajout des attributs "unicaenSecuriteCompte" et "unicaenServiceEtat"
parent
8279d1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenLdap/Entity/Base/People.php
View file @
a421d20a
...
...
@@ -158,21 +158,8 @@ class People extends Entity
'ucbnStructureRecherche'
,
'uidNumber'
,
'unicaenMonEtupass'
,
'unicaenServiceAnnuaire'
,
'unicaenServiceControleAcces'
,
'unicaenServiceEmploiDuTemps'
,
'unicaenServiceEspaceStockage'
,
'unicaenServiceImpression'
,
'unicaenServiceIntranet'
,
'unicaenServiceMessageAlerte'
,
'unicaenServiceMessagerie'
,
'unicaenServicePosteTravail'
,
'unicaenServiceReinscription'
,
'unicaenServiceRessourcesDocumentaires'
,
'unicaenServiceRestauration'
,
'unicaenServiceImpression'
,
'unicaenServiceWifiCampus'
,
'unicaenServiceWifiEduroam'
,
'unicaenSecuriteCompte'
,
'unicaenServiceEtat'
,
'unicaenTermsOfUse'
,
'userCertificate'
,
'userPassword'
,
...
...
@@ -311,6 +298,7 @@ class People extends Entity
'\[code=(?<code>[\w\-]+)\]'
.
'\[libelle=(?<libelle>.+)\]$/'
;
static
protected
$role_src_pattern
=
'/^(?<code>\d{4});(?<libelle>.+)$/'
;
static
protected
$service_etat_pattern
=
'/^(?<etiquette>\{[\w\-]+\})(?<value>(A|I|S){1})$/'
;
/**
...
...
@@ -1572,6 +1560,27 @@ class People extends Entity
return
$this
;
}
/**
* Attribut Ldap "unicaenServiceEtat"
*
* @param array|string|null $value
* @param bool $append
* @return $this
* @throws Exception
* @throws LdapException
*/
public
function
setUnicaenServiceEtat
(
$value
=
null
,
$append
=
false
)
{
$value
=
$this
->
preFormat
(
$value
);
$value
=
array_filter
(
$value
,
function
(
$v
)
{
return
preg_match
(
self
::
$service_etat_pattern
,
$v
);
});
$this
->
appendOrNot
(
'unicaenServiceEtat'
,
$value
,
$append
);
return
$this
;
}
/**
* Attribut Ldap "unicaenTermsOfUse"
*
...
...
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