Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
9f755a64
Commit
9f755a64
authored
Oct 04, 2018
by
Côme Chilliet
Browse files
✨
feat(template) Add a parameter to set values in LDAP format
issue
#5903
parent
8ee684b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_template.inc
View file @
9f755a64
...
...
@@ -222,10 +222,13 @@ class template
/*! \brief Set values
*/
function
setValues
(
$values
)
function
setValues
(
$values
,
$ldapFormat
=
FALSE
)
{
foreach
(
$values
as
$class
=>
$class_values
)
{
foreach
(
$class_values
as
$name
=>
$value
)
{
if
(
$ldapFormat
)
{
$value
=
$this
->
tabObject
->
by_object
[
$class
]
->
attributesAccess
[
$name
]
->
inputValue
(
$value
);
}
$this
->
tabObject
->
by_object
[
$class
]
->
attributesAccess
[
$name
]
->
setValue
(
$value
);
}
}
...
...
Write
Preview
Supports
Markdown
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