public function flatlist() {
		$replies = (bool) $this->owner->getRequest()->getVar('replies');
		
		$since = $this->owner->getRequest()->getVar('since');
		$before = (int) $this->owner->getRequest()->getVar('before');
		
		if (!$before) {
			$before = false;
		}
		
		$filter = array();
		
		$tags = $this->getFilterTags();
		
		$target = $this->getTargetFilter();
		if ($target) {
			$filter['Target'] = $target;
		}
		
		$sort = $this->request->getVar('sort');
		if (!$sort) {
			$sort = 'ID';
		}

        $mentions = (int) $this->getRequest()->getVar('mentions');
        if ($mentions) {
            $filter['Mentions.ID'] = Member::currentUserID();
        }

		$offset = $this->request->getVar('offset');
		
		$noReplies = $this->getOptions()->Replies;
		if (!$noReplies) {
			$replies = false;
		}
		
		if ($this->request->param('ID')) {
			$filter['ThreadID'] = (int) $this->request->param('ID');
		}

		$timeline = $this->owner->microBlogService->getStatusUpdates($filter, $sort, $since, $before, !$replies, $tags, $offset);

		$props = array(
			'Posts' => $timeline, 
			'Options' => $this->getOptions(),
			'QueryOffset'	=> $timeline->QueryOffset,
			'SortBy'		=> $sort,
			'Target'		=> $target,
			'ForceContent'		=> true
		);
		return trim($this->owner->customise($props)->renderWith('Timeline'));
	}
public function flatlist() {
		$replies = (bool) $this->owner->getRequest()->getVar('replies');
		
		$since = $this->owner->getRequest()->getVar('since');
		$before = (int) $this->owner->getRequest()->getVar('before');
		
		if (!$before) {
			$before = false;
		}
		
		$filter = array();
		
		$tags = $this->getFilterTags();
		
		$target = $this->getTargetFilter();
		if ($target) {
			$filter['Target'] = $target;
		}
		
		$sort = $this->request->getVar('sort');
		if (!$sort) {
			$sort = 'ID';
		}

        $mentions = (int) $this->getRequest()->getVar('mentions');
        if ($mentions) {
            $filter['Mentions.ID'] = Member::currentUserID();
        }

		$offset = $this->request->getVar('offset');
		
		$noReplies = $this->getOptions()->Replies;
		if (!$noReplies) {
			$replies = false;
		}
		
		if ($this->request->param('ID')) {
			$filter['ThreadID'] = (int) $this->request->param('ID');
		}

		$timeline = $this->owner->microBlogService->getStatusUpdates($filter, $sort, $since, $before, !$replies, $tags, $offset);

		$props = array(
			'Posts' => $timeline, 
			'Options' => $this->getOptions(),
			'QueryOffset'	=> $timeline->QueryOffset,
			'SortBy'		=> $sort,
			'Target'		=> $target,
			'ForceContent'		=> true
		);
		return trim($this->owner->customise($props)->renderWith('Timeline'));
	}
public function flatlist ( ) { $ replies = ( bool ) $ this -> owner -> getRequest ( ) -> getVar ( 'replies' ) ; $ since = $ this -> owner -> getRequest ( ) -> getVar ( 'since' ) ; $ before = ( int ) $ this -> owner -> getRequest ( ) -> getVar ( 'before' ) ; if ( ! $ before ) { $ before = false ; } $ filter = array ( ) ; $ tags = $ this -> getFilterTags ( ) ; $ target = $ this -> getTargetFilter ( ) ; if ( $ target ) { $ filter [ 'Target' ] = $ target ; } $ sort = $ this -> request -> getVar ( 'sort' ) ; if ( ! $ sort ) { $ sort = 'ID' ; } $ mentions = ( int ) $ this -> getRequest ( ) -> getVar ( 'mentions' ) ; if ( $ mentions ) { $ filter [ 'Mentions.ID' ] = Member :: currentUserID ( ) ; } $ offset = $ this -> request -> getVar ( 'offset' ) ; $ noReplies = $ this -> getOptions ( ) -> Replies ; if ( ! $ noReplies ) { $ replies = false ; } if ( $ this -> request -> param ( 'ID' ) ) { $ filter [ 'ThreadID' ] = ( int ) $ this -> request -> param ( 'ID' ) ; } $ timeline = $ this -> owner -> microBlogService -> getStatusUpdates ( $ filter , $ sort , $ since , $ before , ! $ replies , $ tags , $ offset ) ; $ props = array ( 'Posts' => $ timeline , 'Options' => $ this -> getOptions ( ) , 'QueryOffset' => $ timeline -> QueryOffset , 'SortBy' => $ sort , 'Target' => $ target , 'ForceContent' => true ) ; return trim ( $ this -> owner -> customise ( $ props ) -> renderWith ( 'Timeline' ) ) ; }
Retrieve a flat list of posts, regardless of specific hierarchy
Retrieve a flat list of posts regardless of specific hierarchy