function &createChild()
 {
     $commentObject = new XoopsComment();
     $commentObject->setNew();
     $commentObject->set('com_pid', $this->get('com_id'));
     $commentObject->set('com_rootid', $this->get('com_rootid'));
     $commentObject->set('com_modid', $this->get('com_modid'));
     $commentObject->set('com_itemid', $this->get('com_itemid'));
     $commentObject->set('com_exparams', $this->get('com_exparams'));
     $title = $this->get('com_title');
     if (preg_match("/^Re:(.+)\$/", $title, $matches)) {
         $commentObject->set('com_title', "Re[2]: " . $matches[1]);
     } elseif (preg_match("/^Re\\[(\\d+)\\]:(.+)\$/", $title, $matches)) {
         $commentObject->set('com_title', "Re[" . ($matches[1] + 1) . "]: " . $matches[2]);
     }
     return $commentObject;
 }
 /**
  * Create a {@link XoopsComment} 
  * 
  * @param	bool    $isNew  Flag the object as "new"?
  * 
  * @return	object
  */
 function &create($isNew = true)
 {
     $comment = new XoopsComment();
     if ($isNew) {
         $comment->setNew();
     }
     return $comment;
 }