public function getRiverItem() {

		if (isset($this->_river_item)) {
			return $this->_river_item;
		}

		$id = $this->river_id;

		$items = elgg_get_river(array(
			'ids' => $id,
			'limit' => 1,
		));

		$this->_river_item = (is_array($items) && count($items)) ? $items[0] : false;
		return $this->_river_item;
	}
public function getRiverItem() {

		if (isset($this->_river_item)) {
			return $this->_river_item;
		}

		$id = $this->river_id;

		$items = elgg_get_river(array(
			'ids' => $id,
			'limit' => 1,
		));

		$this->_river_item = (is_array($items) && count($items)) ? $items[0] : false;
		return $this->_river_item;
	}
public function getRiverItem ( ) { if ( isset ( $ this -> _river_item ) ) { return $ this -> _river_item ; } $ id = $ this -> river_id ; $ items = elgg_get_river ( array ( 'ids' => $ id , 'limit' => 1 , ) ) ; $ this -> _river_item = ( is_array ( $ items ) && count ( $ items ) ) ? $ items [ 0 ] : false ; return $ this -> _river_item ; }
Get river item
@return ElggRiverItem|false
Get river item