addSpecialTabs(); } function set_release($newRelease) { $this->Release= preg_replace('/,'.get_ou('mimetypeou').'.*$/', '', $newRelease); if ($this->Release != ""){ $this->Release= ",".$this->Release; } } function save($ignore_account= FALSE) { $baseobject= $this->by_object['mimetype']; /* Check for new 'dn', in order to propagate the 'dn' to all plugins */ $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs')); $mimefilter = session::get('mimefilter'); if((!empty($tmp)) && (isset($mimefilter['release']))){ if(!$baseobject->isReleaseMimeType){ $new_dn= "cn=".$baseobject->cn.",".get_ou('mimetypeou').$baseobject->base; }else{ $new_dn ="cn=".$baseobject->cn.",".$mimefilter['release']; } }else{ $new_dn= "cn=".$baseobject->cn.",".get_ou('mimetypeou').$baseobject->base; } /* Move group? */ if ($this->dn != $new_dn){ /* Write entry on new 'dn' */ if ($this->dn != "new"){ $baseobject->move($this->dn, $new_dn); $this->by_object['mimetype']= $baseobject; } /* Happen to use the new one */ $this->dn= $new_dn; } tabs::save(); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>