Esempio n. 1
0
 /**
  * Fill object clone template
  * This method can be called from any object GUI class that wants to offer object cloning. 
  *
  * @access public
  * @param string template variable name that will be filled
  * @param string type of new object
  * 
  */
 protected function fillCloneTemplate($a_tpl_varname, $a_type)
 {
     include_once './Services/Object/classes/class.ilObjectCopyGUI.php';
     $cp = new ilObjectCopyGUI($this);
     $cp->setType($a_type);
     $cp->setTarget($_GET['ref_id']);
     if ($a_tpl_varname) {
         $cp->showSourceSearch($a_tpl_varname);
     } else {
         return $cp->showSourceSearch(null);
     }
 }