summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 430ccd6)
raw | patch | inline | side by side (parent: 430ccd6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 16:58:05 +0000 (16:58 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 16:58:05 +0000 (16:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15065 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 73652a2db9b26c6a65169a30a12f676a1bb8adb1..3f1f8e433ffe0674c9427e8a34bfcbcbbb60ed9f 100644 (file)
}
+ /*! \brief Object removal was confirmed, now remove the requested entries.
+ *
+ * @param String 'action' The name of the action which was the used as trigger.
+ * @param Array 'target' A list of object dns, which should be affected by this method.
+ * @param Array 'all' A combination of both 'action' and 'target'.
+ */
+ function removeEntryConfirmed($action="",$target=array(),$all=array(),
+ $altTabClass="",$altTabType="",$altAclCategory="")
+ {
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cd($this->config->current['BASE']);
+ foreach($this->dns as $key => $dn){
+ $ldap->cat($dn);
+ if($ldap->count()){
+ $attrs = $ldap->fetch();
+ $type= $this->get_type($attrs);
+ management::removeEntryConfirmed($action,array($dn),$all,$type[0],$type[2],$type[1]);
+
+ // Now save changes
+ FAI::save_release_changes_now();
+ $to_del = FAI::clean_up_releases($dn);
+ foreach($to_del as $dn){
+ $ldap->rmdir_recursive($dn);
+ }
+ }
+ }
+ }
+
+ protected function saveChanges()
+ {
+ management::saveChanges();
+
+ // Now save changes
+ FAI::save_release_changes_now();
+ $to_del = FAI::clean_up_releases($this->last_dn);
+ foreach($to_del as $dn){
+ $ldap->rmdir_recursive($dn);
+ }
+ }
+
+ protected function applyChanges()
+ {
+ management::applyChanges();
+
+ // Now save changes
+ FAI::save_release_changes_now();
+ $to_del = FAI::clean_up_releases($this->last_dn);
+ foreach($to_del as $dn){
+ $ldap->rmdir_recursive($dn);
+ }
+ }
+
function detectPostActions()
{
$action = management::detectPostActions();