Commit f0711d63 authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #1887 Added functions in template for csv import plugin

parent a9afaa06
......@@ -61,6 +61,23 @@ class template
return dn2base($this->dn, 'ou=templates,'.$infos['ou']);
}
function getNeeded()
{
return $this->attributes;
}
function listAttributesByClass()
{
$attributes = array();
foreach ($this->tabObject->by_object as $class => &$plugin) {
foreach ($this->attributes[$class] as $attr) {
$attributes[$class.':'.$attr] = $this->tabObject->by_name[$class].' > '.$plugin->attributesAccess[$attr]->getLabel();
}
}
return $attributes;
}
function save_object()
{
$this->tabObject->save_object();
......
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