summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 495f405)
raw | patch | inline | side by side (parent: 495f405)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Apr 2008 15:04:10 +0000 (15:04 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Apr 2008 15:04:10 +0000 (15:04 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10176 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_plugin.inc | patch | blob | history | |
gosa-core/include/class_tabs.inc | patch | blob | history |
index c852f48bf4c903b7b28303a4a3a6ce56f80d91eb..580be7939ac143b284262d3860afcc144e22683a 100644 (file)
}
/* Adapt from template, using 'dn' */
- function adapt_from_template($dn)
+ function adapt_from_template($dn, $skip= array())
{
/* Include global link_info */
$ldap= $this->config->get_ldap_link();
/* Walk through attributes */
foreach ($this->attributes as $val){
+ /* Skip the ones in skip list */
+ if (in_array($val, $skip)){
+ continue;
+ }
+
if (isset($this->attrs["$val"][0])){
/* If attribute is set, replace dynamic parts:
index 469a2c0bd042ed28242767952d2673c4fd8e299c..d11d24b42772182cda822e5dec514d851b98f4d5 100644 (file)
return (0);
}
- function adapt_from_template($dn)
+ function adapt_from_template($dn, $skip= array())
{
foreach ($this->by_object as $key => &$obj){
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,
$key, "Adapting");
$obj->parent= &$this;
- $obj->adapt_from_template($dn);
+ $obj->adapt_from_template($dn, $skip);
}
}