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
28a77d7d
Commit
28a77d7d
authored
Dec 10, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Dec 10, 2014
Browse files
Added a method to remove a value by searching for it in dialog attributes
parent
e41577f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_dialogAttributes.inc
View file @
28a77d7d
...
...
@@ -168,6 +168,14 @@ class DialogAttribute extends SetAttribute
trigger_error
(
"abstract method"
);
}
function
searchAndRemove
(
$value
)
{
$row
=
array_search
(
$value
,
$this
->
value
);
if
(
$row
!==
FALSE
)
{
$this
->
removeValue
(
$row
);
}
}
protected
function
removeValue
(
$row
)
{
unset
(
$this
->
value
[
$row
]);
...
...
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