original_string: public function Mine($Page = 'p1') {
        $this->Permission('Garden.SignIn.Allow');
        Gdn_Theme::Section('DiscussionList');
        
        // Set criteria & get discussions data
        list($Offset, $Limit) = OffsetLimit($Page, C('Vanilla.Discussions.PerPage', 30));
        $Session = Gdn::Session();
        $Wheres = array('d.InsertUserID' => $Session->UserID);
        $DiscussionModel = new DiscussionModel();
        $this->DiscussionData = $DiscussionModel->Get($Offset, $Limit, $Wheres);
        $this->SetData('Discussions', $this->DiscussionData);
        $CountDiscussions = $this->SetData('CountDiscussions', $DiscussionModel->GetCount($Wheres));
        
        // Build a pager
        $PagerFactory = new Gdn_PagerFactory();
  		$this->EventArguments['PagerType'] = 'MorePager';
  		$this->FireEvent('BeforeBuildMinePager');
        $this->Pager = $PagerFactory->GetPager($this->EventArguments['PagerType'], $this);
        $this->Pager->MoreCode = 'More Discussions';
        $this->Pager->LessCode = 'Newer Discussions';
        $this->Pager->ClientID = 'Pager';
        $this->Pager->Configure(
           $Offset,
           $Limit,
           $CountDiscussions,
           'discussions/mine/%1$s'
        );
  
        $this->SetData('_PagerUrl', 'discussions/mine/{Page}');
        $this->SetData('_Page', $Page);
        $this->SetData('_Limit', $Limit);
  
  		$this->FireEvent('AfterBuildMinePager');
        
        // 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');
        $this->AddModule('BookmarkedModule');
        
        // Render default view (discussions/mine.php)
        $this->SetData('Title', T('My Discussions'));
        $this->SetData('Breadcrumbs', array(array('Name' => T('My Discussions'), 'Url' => '/discussions/mine')));
        $this->Render('Index');
     }
code: public function Mine($Page = 'p1') {
        $this->Permission('Garden.SignIn.Allow');
        Gdn_Theme::Section('DiscussionList');
        
        // Set criteria & get discussions data
        list($Offset, $Limit) = OffsetLimit($Page, C('Vanilla.Discussions.PerPage', 30));
        $Session = Gdn::Session();
        $Wheres = array('d.InsertUserID' => $Session->UserID);
        $DiscussionModel = new DiscussionModel();
        $this->DiscussionData = $DiscussionModel->Get($Offset, $Limit, $Wheres);
        $this->SetData('Discussions', $this->DiscussionData);
        $CountDiscussions = $this->SetData('CountDiscussions', $DiscussionModel->GetCount($Wheres));
        
        // Build a pager
        $PagerFactory = new Gdn_PagerFactory();
  		$this->EventArguments['PagerType'] = 'MorePager';
  		$this->FireEvent('BeforeBuildMinePager');
        $this->Pager = $PagerFactory->GetPager($this->EventArguments['PagerType'], $this);
        $this->Pager->MoreCode = 'More Discussions';
        $this->Pager->LessCode = 'Newer Discussions';
        $this->Pager->ClientID = 'Pager';
        $this->Pager->Configure(
           $Offset,
           $Limit,
           $CountDiscussions,
           'discussions/mine/%1$s'
        );
  
        $this->SetData('_PagerUrl', 'discussions/mine/{Page}');
        $this->SetData('_Page', $Page);
        $this->SetData('_Limit', $Limit);
  
  		$this->FireEvent('AfterBuildMinePager');
        
        // 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');
        $this->AddModule('BookmarkedModule');
        
        // Render default view (discussions/mine.php)
        $this->SetData('Title', T('My Discussions'));
        $this->SetData('Breadcrumbs', array(array('Name' => T('My Discussions'), 'Url' => '/discussions/mine')));
        $this->Render('Index');
     }
code_tokens: public function Mine ( $ Page = 'p1' ) { $ this -> Permission ( 'Garden.SignIn.Allow' ) ; Gdn_Theme :: Section ( 'DiscussionList' ) ; // Set criteria & get discussions data list ( $ Offset , $ Limit ) = OffsetLimit ( $ Page , C ( 'Vanilla.Discussions.PerPage' , 30 ) ) ; $ Session = Gdn :: Session ( ) ; $ Wheres = array ( 'd.InsertUserID' => $ Session -> UserID ) ; $ DiscussionModel = new DiscussionModel ( ) ; $ this -> DiscussionData = $ DiscussionModel -> Get ( $ Offset , $ Limit , $ Wheres ) ; $ this -> SetData ( 'Discussions' , $ this -> DiscussionData ) ; $ CountDiscussions = $ this -> SetData ( 'CountDiscussions' , $ DiscussionModel -> GetCount ( $ Wheres ) ) ; // Build a pager $ PagerFactory = new Gdn_PagerFactory ( ) ; $ this -> EventArguments [ 'PagerType' ] = 'MorePager' ; $ this -> FireEvent ( 'BeforeBuildMinePager' ) ; $ this -> Pager = $ PagerFactory -> GetPager ( $ this -> EventArguments [ 'PagerType' ] , $ this ) ; $ this -> Pager -> MoreCode = 'More Discussions' ; $ this -> Pager -> LessCode = 'Newer Discussions' ; $ this -> Pager -> ClientID = 'Pager' ; $ this -> Pager -> Configure ( $ Offset , $ Limit , $ CountDiscussions , 'discussions/mine/%1$s' ) ; $ this -> SetData ( '_PagerUrl' , 'discussions/mine/{Page}' ) ; $ this -> SetData ( '_Page' , $ Page ) ; $ this -> SetData ( '_Limit' , $ Limit ) ; $ this -> FireEvent ( 'AfterBuildMinePager' ) ; // 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' ) ; $ this -> AddModule ( 'BookmarkedModule' ) ; // Render default view (discussions/mine.php) $ this -> SetData ( 'Title' , T ( 'My Discussions' ) ) ; $ this -> SetData ( 'Breadcrumbs' , array ( array ( 'Name' => T ( 'My Discussions' ) , 'Url' => '/discussions/mine' ) ) ) ; $ this -> Render ( 'Index' ) ; }
docstring: Display discussions started by the user.
  
  @since 2.0.0
  @access public
  
  @param int $Offset Number of discussions to skip.
docstring_tokens: Display discussions started by the user .