Exemplo n.º 1
0
 function displayFavorites()
 {
     require_once KUNENA_PATH_FUNCS . '/latestx.php';
     $obj = new CKunenaLatestX('favorites', 0);
     $obj->user = $this->user;
     $obj->embedded = 1;
     $obj->getFavorites();
     $obj->displayFlat();
     //echo $obj->getPagination ( $obj->func, $obj->show_list_time, $obj->page, $obj->totalpages, 3 );
 }
Exemplo n.º 2
0
 public function getFavorites($userid, $start = 0, $limit = 10, $search = false)
 {
     require_once KUNENA_PATH_FUNCS . '/latestx.php';
     $obj = new CKunenaLatestX('favorites', 0);
     $obj->user = JUser::getInstance($userid);
     $obj->offset = $start;
     $obj->threads_per_page = $limit;
     $obj->getFavorites();
     $result = new stdClass();
     $result->total = $obj->total;
     $result->messages = $obj->threads;
     return $result;
 }