public function getUnreadPosts($target = '') {
		// this little cache bit has absolutely no effect because SS will re-create (And requery) the database
		// on EVERY call to currentMember
		if (!$this->unreadPosts) {
			$filter = array(
				'Created:GreaterThan'		=> $this->owner->LastPostView, 
			);

			if (strlen($target)) {
				$filter['Target'] = $target;
			}
			
			$this->unreadPosts = $this->microBlogService->globalFeed($filter, $orderBy = 'ID DESC', $since = null, $number = 20, $markViewed = false);
		}
		
		return $this->unreadPosts;
	}
public function getUnreadPosts($target = '') {
		// this little cache bit has absolutely no effect because SS will re-create (And requery) the database
		// on EVERY call to currentMember
		if (!$this->unreadPosts) {
			$filter = array(
				'Created:GreaterThan'		=> $this->owner->LastPostView, 
			);

			if (strlen($target)) {
				$filter['Target'] = $target;
			}
			
			$this->unreadPosts = $this->microBlogService->globalFeed($filter, $orderBy = 'ID DESC', $since = null, $number = 20, $markViewed = false);
		}
		
		return $this->unreadPosts;
	}
public function getUnreadPosts ( $ target = '' ) { // this little cache bit has absolutely no effect because SS will re-create (And requery) the database // on EVERY call to currentMember if ( ! $ this -> unreadPosts ) { $ filter = array ( 'Created:GreaterThan' => $ this -> owner -> LastPostView , ) ; if ( strlen ( $ target ) ) { $ filter [ 'Target' ] = $ target ; } $ this -> unreadPosts = $ this -> microBlogService -> globalFeed ( $ filter , $ orderBy = 'ID DESC' , $ since = null , $ number = 20 , $ markViewed = false ) ; } return $ this -> unreadPosts ; }
Gets the latest posts that _this_ member can view
Gets the latest posts that _this_ member can view