59                 $this->content_object =& $a_content_obj;
 
   72                 if (is_array($a_actions))
 
   74                         foreach ($a_actions as $name => 
$lng)
 
   76                                 $this->actions[$name] = array(
"name" => $name, 
"lng" => 
$lng);
 
   95                 if ($this->target_frame[$a_cmd] != 
"")
 
   97                         return $this->target_frame[$a_cmd];
 
   99                 elseif (!empty($a_target_frame))
 
  101                         return "target=\"".$a_target_frame.
"\"";
 
  121                         $a_type = 
$_GET[
"type"];
 
  124                 $template = 
"tpl.".$a_type.
"_".$a_cmd.
".html";
 
  126                 if (!$this->tpl->fileExists($template))
 
  128                         $template = 
"tpl.obj_".$a_cmd.
".html";
 
  131                 $this->tpl->addBlockFile(
"ADM_CONTENT", 
"adm_content", $template);
 
  146                 $data[
"fields"] = array();
 
  147                 $data[
"fields"][
"title"] = 
$_SESSION[
"error_post_vars"][
"Fobject"][
"title"];
 
  148                 $data[
"fields"][
"desc"] = 
$_SESSION[
"error_post_vars"][
"Fobject"][
"desc"];
 
  152                 foreach (
$data[
"fields"] as $key => $val)
 
  154                         $this->tpl->setVariable(
"TXT_".strtoupper($key), $this->lng->txt($key));
 
  155                         $this->tpl->setVariable(strtoupper($key), $val);
 
  157                         if ($this->prepare_output)
 
  159                                 $this->tpl->parseCurrentBlock();
 
  162                 $this->ctrl->setParameter($this, 
"new_type", $new_type);
 
  165                 $this->tpl->setVariable(
"FORMACTION",
 
  166                         $this->ctrl->getFormAction($this, 
"save"));
 
  167                 $this->tpl->setVariable(
"TXT_HEADER", $this->lng->txt($new_type.
"_new"));
 
  168                 $this->tpl->setVariable(
"TXT_CANCEL", $this->lng->txt(
"cancel"));
 
  169                 $this->tpl->setVariable(
"TXT_SUBMIT", $this->lng->txt($new_type.
"_add"));
 
  170                 $this->tpl->setVariable(
"CMD_SUBMIT", 
"save");
 
  172                 $this->tpl->setVariable(
"TXT_REQUIRED_FLD", $this->lng->txt(
"required_field"));
 
  182                 $tree = 
new ilTree($this->content_object->getId());
 
  184                 $tree->setTreeTablePK(
"lm_id");
 
  186                 $parent_id = (!empty(
$_GET[
"obj_id"]))
 
  188                         : $tree->getRootId();
 
  190                 if (!empty(
$_GET[
"target"]))
 
  192                         $target = 
$_GET[
"target"];
 
  197                         $childs =& $tree->getChildsByType($parent_id, $this->obj->getType());
 
  198                         if (count($childs) == 0)
 
  204                                 $target = $childs[count($childs) - 1][
"obj_id"];
 
  207                 if (!$tree->isInTree($this->obj->getId()))
 
  209                         $tree->insertNode($this->obj->getId(), $parent_id, $target);
 
  223                 $cont_obj_gui->
delete($this->obj->getId());
 
  232                 session_unregister(
"saved_post");
 
  233                 $this->ctrl->redirect($this, 
$_GET[
"backcmd"]);
 
  245                 $this->ctrl->redirect($this, 
$_GET[
"backcmd"]);
 
  256                         $this->tpl->setCurrentBlock(
"begin_link");
 
  257                         $this->tpl->setVariable(
"LINK_TARGET", $link);
 
  258                         $this->tpl->parseCurrentBlock();
 
  259                         $this->tpl->touchBlock(
"end_link");
 
  262                 $this->tpl->setCurrentBlock(
"text");
 
  263                 $this->tpl->setVariable(
"TEXT_CONTENT", $val);
 
  264                 $this->tpl->parseCurrentBlock();
 
  265                 $this->tpl->setCurrentBlock(
"table_cell");
 
  266                 $this->tpl->parseCurrentBlock();
 
  277                 foreach ($a_actions as $name => 
$lng)
 
  279                         $d[$name] = array(
"name" => $name, 
"lng" => 
$lng);
 
  282                 $notoperations = array();
 
  283                 $operations = array();
 
  287                 if (count($operations) > 0)
 
  289                         foreach ($operations as $val)
 
  291                                 $this->tpl->setCurrentBlock(
"operation_btn");
 
  292                                 $this->tpl->setVariable(
"BTN_NAME", $val[
"name"]);
 
  293                                 $this->tpl->setVariable(
"BTN_VALUE", $this->lng->txt($val[
"lng"]));
 
  294                                 $this->tpl->parseCurrentBlock();
 
  297                         $this->tpl->setCurrentBlock(
"operation");
 
  299                         $this->tpl->parseCurrentBlock();
 
  308                 $this->content_object->checkTree();