Commit 203477d3 authored by Côme Chilliet's avatar Côme Chilliet Committed by Mortier Benoit
Browse files

Added HiddenArrayAttribute

parent 9148bd49
......@@ -893,6 +893,21 @@ class HiddenAttribute extends Attribute
}
}
class HiddenArrayAttribute extends HiddenAttribute
{
protected function loadAttrValue ($attrs)
{
if (isset($attrs[$this->getLdapName()]['count'])) {
$this->value = array();
for ($i = 0; $i < $attrs[$this->getLdapName()]['count']; $i++) {
$this->value[] = $attrs[$this->getLdapName()][$i];
}
} else {
$this->resetToDefault();
}
}
}
/* Dummy attribute class in order to give stats information to the template */
class FakeAttribute extends Attribute
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment