Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
ldap
Commits
1b4f8770
Commit
1b4f8770
authored
Nov 22, 2017
by
Bertrand Gauthier
Browse files
Ajout filtre de recherche par bout de nom (puis prénom éventuellement).
parent
90f421d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/UnicaenLdap/Filter/People.php
View file @
1b4f8770
...
...
@@ -55,6 +55,17 @@ class People extends Filter
return
self
::
begins
(
'cn'
,
$text
);
}
/**
* Filtre de recherche par bout de nom (puis prénom éventuellement)
*
* @param string $text Ex: 'authier', 'authier b'
* @return AbstractFilter
*/
public
static
function
nameContains
(
$text
)
{
return
self
::
contains
(
'cn'
,
$text
);
}
/**
* Filtre de recherche par nom d'utilisateur (puis prénom éventuellement) exact ou par login utilisateur exact.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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