Beispiel #1
0
 function generate_thread($no, $inIndex)
 {
     $this->update_cache();
     if ($inIndex && $this->thread_cache[$no]) {
         //Use $this->thread_cache if we want to generate an inIndex thread and it already exists.
         return $this->thread_cache[$no];
     } else {
         require_once CORE_DIR . "/thread/thread.php";
         //Safety.
         $thread->inIndex = $inIndex;
         $thread = new Thread();
         return $thread->format($no, true);
     }
 }
Beispiel #2
0
 private function generateThread($resno)
 {
     $temp = new Thread();
     $temp->inIndex = true;
     return $temp->format($resno);
 }