private function showPointsDirectory($request_data)
 {
     if (!empty($this->fid)) {
         $this->Paging["querystring"] = "fid={$this->fid}&gid={$this->fid}";
     } else {
         if (!empty($this->user_id)) {
             $this->Paging["querystring"] = "uid={$this->user_id}";
         }
     }
     $this->Paging['page'] = $this->page;
     $this->Paging['show'] = $this->limit;
     $this->Paging['count'] = PointsEntity::search($this->criteria, true);
     $pagination = new Pagination();
     $pagination->setPaging($this->Paging);
     $this->page_first = $pagination->getFirstPage();
     $this->page_last = $pagination->getLastPage();
     $this->page_links = $pagination->getPageLinks();
     $items = PointsEntity::search($this->criteria, false, "(SELECT attribute_value FROM entityattributes where attribute_name = 'created' AND id = EA.id) DESC", $this->page, $this->limit);
     $this->items = $this->build_list_of_items($items);
     $this->inner_HTML = $this->generate_inner_html(array('sub_title' => $this->sub_title, 'category' => $this->category, 'categories' => $this->categories, 'items' => $this->items, 'edit_perm' => $this->edit_perm, 'user_id' => $this->user_id, 'page_first' => $this->page_first, 'page_last' => $this->page_last, 'page_links' => $this->page_links, 'url_base' => $this->url_base, 'message' => isset($request_data['message']) ? $request_data['message'] : null, 'fid' => isset($this->fid) ? $this->fid : null, 'fam_members' => isset($this->fam_members) ? $this->fam_members : null));
 }