Beispiel #1
0
 /**
  * 답글을 삭제한다.
  * @param int $parent_uid
  */
 public function deleteReply($parent_uid)
 {
     $list = new KBContentList();
     $list->getReplyList($parent_uid);
     while ($content = $list->hasNextReply()) {
         $content->remove();
         $this->deleteReply($content->uid);
     }
 }
 /**
  * 답글 리스트를 생성한다.
  * @param int $parent_uid
  */
 public function builderReply($parent_uid, $depth = 0)
 {
     $url = new KBUrl();
     $list = new KBContentList();
     $list->getReplyList($parent_uid);
     $skin_path = KBOARD_URL_PATH . "/skin/{$this->skin}";
     $board = $this->board;
     $boardBuilder = $this;
     include KBOARD_DIR_PATH . "/skin/{$this->skin}/reply-template.php";
 }