3
class mimetabs extends tabs
8
function mimetabs($config, $data, $dn,$category,$hide_refs = FALSE, $hide_acls = FALSE)
10
tabs::tabs($config, $data, $dn,$category,$hide_refs , $hide_acls);
12
/* Add references/acls/snapshots */
13
$this->addSpecialTabs();
16
function set_FAIstate($state)
18
$this->FAIstate = $state;
19
foreach($this->by_name as $name => $desc){
20
$this->by_object[$name]->FAIstate = $state;
24
function save($ignore_account= FALSE)
26
$baseobject= $this->by_object['mimetype'];
27
$cn = preg_replace('/,/', '\,', $baseobject->cn);
28
$cn = preg_replace('/"/', '\"', $cn);
30
/* Check for new 'dn', in order to propagate the
31
'dn' to all plugins */
33
if($this->parent->IsReleaseManagementActivated()){
34
$new_dn= "cn=".$cn.",".$this->parent->mime_release;
36
$new_dn= "cn=".$cn.",".get_ou("mimetype", "mimetypeRDN").$baseobject->base;
39
$new_dn = @LDAP::convert($new_dn);
42
if ($this->dn != $new_dn){
44
/* Write entry on new 'dn' */
45
if ($this->dn != "new"){
46
$baseobject->move($this->dn, $new_dn);
47
$this->by_object['mimetype']= $baseobject;
50
/* Happen to use the new one */
58
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: