public function globalFeed($filter = array(), $orderBy = 'ID DESC', $since = null, $number = 10, $markViewed = true) {
		$number = (int) $number;
		
		if (!count($filter)) {
			$filter = array('ParentID' => 0);
		}
		$filter['Deleted'] = 0;

		$items = MicroPost::get()->filter($filter)->sort($orderBy);
		
		if ($since) {
			$since = (int) $since;
			$items = $items->filter('ID:GreaterThan', $since);
		}

		if ($markViewed) {
			$this->recordUserAction();
		}
		$items = $this->updatePostList($items);
		return $items->limit($number)->restrict();
	}
public function globalFeed($filter = array(), $orderBy = 'ID DESC', $since = null, $number = 10, $markViewed = true) {
		$number = (int) $number;
		
		if (!count($filter)) {
			$filter = array('ParentID' => 0);
		}
		$filter['Deleted'] = 0;

		$items = MicroPost::get()->filter($filter)->sort($orderBy);
		
		if ($since) {
			$since = (int) $since;
			$items = $items->filter('ID:GreaterThan', $since);
		}

		if ($markViewed) {
			$this->recordUserAction();
		}
		$items = $this->updatePostList($items);
		return $items->limit($number)->restrict();
	}
public function globalFeed ( $ filter = array ( ) , $ orderBy = 'ID DESC' , $ since = null , $ number = 10 , $ markViewed = true ) { $ number = ( int ) $ number ; if ( ! count ( $ filter ) ) { $ filter = array ( 'ParentID' => 0 ) ; } $ filter [ 'Deleted' ] = 0 ; $ items = MicroPost :: get ( ) -> filter ( $ filter ) -> sort ( $ orderBy ) ; if ( $ since ) { $ since = ( int ) $ since ; $ items = $ items -> filter ( 'ID:GreaterThan' , $ since ) ; } if ( $ markViewed ) { $ this -> recordUserAction ( ) ; } $ items = $ this -> updatePostList ( $ items ) ; return $ items -> limit ( $ number ) -> restrict ( ) ; }
Get all posts that the current user has access to

@param type $number
Get all posts that the current user has access to