/** * Copy object * * @param void * @return boolean */ function copy(&$source) { if ($source->isTaggable()) { //$this->copyTags($source); } // if if ($source->isSearchable()) { //$this->clearSearchIndex(); } // if if ($this->isCommentable()) { //$this->copyComments($source); } // if if ($this->isFileContainer($source)) { //$this->copyAttachedFiles($source); } // if return parent::copy($source); }
function copy() { /* @var $copy ContentDataObject */ $copy = parent::copy(); $copy->setObject($this->object->copy()); $copy->save(); $members = $this->getMembers(); $copy->addToMembers($members); $copy->copy_custom_properties($this); return $copy; }