param['access_rights'][$path][$property]) && $this->param['access_rights'][$path][$property] == "1") {
$checked = true;
} elseif(!$this->id && ($property == 'initialization' || $property == 'keep_specific_rights')) {
$checked = true;
}
return "
";
}
//formulaire spécifique au type de tâche
public function show_form ($param=array()) {
global $charset;
$form_task = "";
$ac = new acces();
$t_cat= $ac->getCatalog();
foreach($t_cat as $cat) {
$form_task .= "
".$this->get_checkbox_form($cat['path'], 'delete_calculated_rights')."
".$this->get_checkbox_form($cat['path'], 'initialization')."
".$this->get_checkbox_form($cat['path'], 'keep_specific_rights')."
";
}
return $form_task;
}
public function make_serialized_task_params() {
global $access_rights;
$t = parent::make_serialized_task_params();
$t["access_rights"] = $access_rights;
return serialize($t);
}
}