original_string: public function Bookmarked($Page = '0') {
        $this->Permission('Garden.SignIn.Allow');
        Gdn_Theme::Section('DiscussionList');
  
        // Figure out which discussions layout to choose (Defined on "Homepage" settings page).
        $Layout = C('Vanilla.Discussions.Layout');
        switch($Layout) {
           case 'table':
              if ($this->SyndicationMethod == SYNDICATION_NONE)
                 $this->View = 'table';
              break;
           default:
              $this->View = 'index';
              break;
        }
        
        // Determine offset from $Page
        list($Page, $Limit) = OffsetLimit($Page, C('Vanilla.Discussions.PerPage', 30));
        $this->CanonicalUrl(Url(ConcatSep('/', 'discussions', 'bookmarked', PageNumber($Page, $Limit, TRUE, FALSE)), TRUE));
        
        // Validate $Page
        if (!is_numeric($Page) || $Page < 0)
           $Page = 0;
        
        $DiscussionModel = new DiscussionModel();
        $Wheres = array(
           'w.Bookmarked' => '1', 
           'w.UserID' => Gdn::Session()->UserID
        );
        
        $this->DiscussionData = $DiscussionModel->Get($Page, $Limit, $Wheres);
        $this->SetData('Discussions', $this->DiscussionData);
        $CountDiscussions = $DiscussionModel->GetCount($Wheres);
        $this->SetData('CountDiscussions', $CountDiscussions);
        $this->Category = FALSE;
        
        $this->SetJson('Loading', $Page . ' to ' . $Limit);
        
        // Build a pager
        $PagerFactory = new Gdn_PagerFactory();
  		$this->EventArguments['PagerType'] = 'Pager';
  		$this->FireEvent('BeforeBuildBookmarkedPager');
        $this->Pager = $PagerFactory->GetPager($this->EventArguments['PagerType'], $this);
        $this->Pager->ClientID = 'Pager';
        $this->Pager->Configure(
           $Page,
           $Limit,
           $CountDiscussions,
           'discussions/bookmarked/%1$s'
        );
        
        if (!$this->Data('_PagerUrl'))
           $this->SetData('_PagerUrl', 'discussions/bookmarked/{Page}');
        $this->SetData('_Page', $Page);
        $this->SetData('_Limit', $Limit);
  		$this->FireEvent('AfterBuildBookmarkedPager');
        
        // Deliver JSON data if necessary
        if ($this->_DeliveryType != DELIVERY_TYPE_ALL) {
           $this->SetJson('LessRow', $this->Pager->ToString('less'));
           $this->SetJson('MoreRow', $this->Pager->ToString('more'));
           $this->View = 'discussions';
        }
        
        // Add modules
        $this->AddModule('DiscussionFilterModule');
        $this->AddModule('NewDiscussionModule');
        $this->AddModule('CategoriesModule');
        
        // Render default view (discussions/bookmarked.php)
        $this->SetData('Title', T('My Bookmarks'));
  		$this->SetData('Breadcrumbs', array(array('Name' => T('My Bookmarks'), 'Url' => '/discussions/bookmarked')));
        $this->Render();
     }
code: public function Bookmarked($Page = '0') {
        $this->Permission('Garden.SignIn.Allow');
        Gdn_Theme::Section('DiscussionList');
  
        // Figure out which discussions layout to choose (Defined on "Homepage" settings page).
        $Layout = C('Vanilla.Discussions.Layout');
        switch($Layout) {
           case 'table':
              if ($this->SyndicationMethod == SYNDICATION_NONE)
                 $this->View = 'table';
              break;
           default:
              $this->View = 'index';
              break;
        }
        
        // Determine offset from $Page
        list($Page, $Limit) = OffsetLimit($Page, C('Vanilla.Discussions.PerPage', 30));
        $this->CanonicalUrl(Url(ConcatSep('/', 'discussions', 'bookmarked', PageNumber($Page, $Limit, TRUE, FALSE)), TRUE));
        
        // Validate $Page
        if (!is_numeric($Page) || $Page < 0)
           $Page = 0;
        
        $DiscussionModel = new DiscussionModel();
        $Wheres = array(
           'w.Bookmarked' => '1', 
           'w.UserID' => Gdn::Session()->UserID
        );
        
        $this->DiscussionData = $DiscussionModel->Get($Page, $Limit, $Wheres);
        $this->SetData('Discussions', $this->DiscussionData);
        $CountDiscussions = $DiscussionModel->GetCount($Wheres);
        $this->SetData('CountDiscussions', $CountDiscussions);
        $this->Category = FALSE;
        
        $this->SetJson('Loading', $Page . ' to ' . $Limit);
        
        // Build a pager
        $PagerFactory = new Gdn_PagerFactory();
  		$this->EventArguments['PagerType'] = 'Pager';
  		$this->FireEvent('BeforeBuildBookmarkedPager');
        $this->Pager = $PagerFactory->GetPager($this->EventArguments['PagerType'], $this);
        $this->Pager->ClientID = 'Pager';
        $this->Pager->Configure(
           $Page,
           $Limit,
           $CountDiscussions,
           'discussions/bookmarked/%1$s'
        );
        
        if (!$this->Data('_PagerUrl'))
           $this->SetData('_PagerUrl', 'discussions/bookmarked/{Page}');
        $this->SetData('_Page', $Page);
        $this->SetData('_Limit', $Limit);
  		$this->FireEvent('AfterBuildBookmarkedPager');
        
        // Deliver JSON data if necessary
        if ($this->_DeliveryType != DELIVERY_TYPE_ALL) {
           $this->SetJson('LessRow', $this->Pager->ToString('less'));
           $this->SetJson('MoreRow', $this->Pager->ToString('more'));
           $this->View = 'discussions';
        }
        
        // Add modules
        $this->AddModule('DiscussionFilterModule');
        $this->AddModule('NewDiscussionModule');
        $this->AddModule('CategoriesModule');
        
        // Render default view (discussions/bookmarked.php)
        $this->SetData('Title', T('My Bookmarks'));
  		$this->SetData('Breadcrumbs', array(array('Name' => T('My Bookmarks'), 'Url' => '/discussions/bookmarked')));
        $this->Render();
     }
code_tokens: public function Bookmarked ( $ Page = '0' ) { $ this -> Permission ( 'Garden.SignIn.Allow' ) ; Gdn_Theme :: Section ( 'DiscussionList' ) ; // Figure out which discussions layout to choose (Defined on "Homepage" settings page). $ Layout = C ( 'Vanilla.Discussions.Layout' ) ; switch ( $ Layout ) { case 'table' : if ( $ this -> SyndicationMethod == SYNDICATION_NONE ) $ this -> View = 'table' ; break ; default : $ this -> View = 'index' ; break ; } // Determine offset from $Page list ( $ Page , $ Limit ) = OffsetLimit ( $ Page , C ( 'Vanilla.Discussions.PerPage' , 30 ) ) ; $ this -> CanonicalUrl ( Url ( ConcatSep ( '/' , 'discussions' , 'bookmarked' , PageNumber ( $ Page , $ Limit , TRUE , FALSE ) ) , TRUE ) ) ; // Validate $Page if ( ! is_numeric ( $ Page ) || $ Page < 0 ) $ Page = 0 ; $ DiscussionModel = new DiscussionModel ( ) ; $ Wheres = array ( 'w.Bookmarked' => '1' , 'w.UserID' => Gdn :: Session ( ) -> UserID ) ; $ this -> DiscussionData = $ DiscussionModel -> Get ( $ Page , $ Limit , $ Wheres ) ; $ this -> SetData ( 'Discussions' , $ this -> DiscussionData ) ; $ CountDiscussions = $ DiscussionModel -> GetCount ( $ Wheres ) ; $ this -> SetData ( 'CountDiscussions' , $ CountDiscussions ) ; $ this -> Category = FALSE ; $ this -> SetJson ( 'Loading' , $ Page . ' to ' . $ Limit ) ; // Build a pager $ PagerFactory = new Gdn_PagerFactory ( ) ; $ this -> EventArguments [ 'PagerType' ] = 'Pager' ; $ this -> FireEvent ( 'BeforeBuildBookmarkedPager' ) ; $ this -> Pager = $ PagerFactory -> GetPager ( $ this -> EventArguments [ 'PagerType' ] , $ this ) ; $ this -> Pager -> ClientID = 'Pager' ; $ this -> Pager -> Configure ( $ Page , $ Limit , $ CountDiscussions , 'discussions/bookmarked/%1$s' ) ; if ( ! $ this -> Data ( '_PagerUrl' ) ) $ this -> SetData ( '_PagerUrl' , 'discussions/bookmarked/{Page}' ) ; $ this -> SetData ( '_Page' , $ Page ) ; $ this -> SetData ( '_Limit' , $ Limit ) ; $ this -> FireEvent ( 'AfterBuildBookmarkedPager' ) ; // Deliver JSON data if necessary if ( $ this -> _DeliveryType != DELIVERY_TYPE_ALL ) { $ this -> SetJson ( 'LessRow' , $ this -> Pager -> ToString ( 'less' ) ) ; $ this -> SetJson ( 'MoreRow' , $ this -> Pager -> ToString ( 'more' ) ) ; $ this -> View = 'discussions' ; } // Add modules $ this -> AddModule ( 'DiscussionFilterModule' ) ; $ this -> AddModule ( 'NewDiscussionModule' ) ; $ this -> AddModule ( 'CategoriesModule' ) ; // Render default view (discussions/bookmarked.php) $ this -> SetData ( 'Title' , T ( 'My Bookmarks' ) ) ; $ this -> SetData ( 'Breadcrumbs' , array ( array ( 'Name' => T ( 'My Bookmarks' ) , 'Url' => '/discussions/bookmarked' ) ) ) ; $ this -> Render ( ) ; }
docstring: Display discussions the user has bookmarked.
  
  @since 2.0.0
  @access public
  
  @param int $Offset Number of discussions to skip.
docstring_tokens: Display discussions the user has bookmarked .