/** * clone style sheet (note: styles have no ref ids and return an object id) * * @access public * @return integer new obj id */ function ilClone() { global $log, $lng; $lng->loadLanguageModule("style"); $new_obj = new ilObjStyleSheet(); $new_obj->setTitle($this->getTitle() . " (" . $lng->txt("sty_acopy") . ")"); $new_obj->setType($this->getType()); $new_obj->setDescription($this->getDescription()); $new_obj->create($this->getId()); $new_obj->writeStyleSetting("disable_auto_margins", $this->lookupStyleSetting("disable_auto_margins")); return $new_obj->getId(); }