public function getOffset($limit = self::LIMIT, $order = 'desc') {
		if ($limit === 0) {
			return 0;
		}
		if ($order == 'asc' || $order == 'time_created::asc') {
			$before = $this->getCommentsBefore(array('count' => true, 'offset' => 0));
		} else {
			$before = $this->getCommentsAfter(array('count' => true, 'offset' => 0));
		}
		
		return floor($before / $limit) * $limit;
	}
public function getOffset($limit = self::LIMIT, $order = 'desc') {
		if ($limit === 0) {
			return 0;
		}
		if ($order == 'asc' || $order == 'time_created::asc') {
			$before = $this->getCommentsBefore(array('count' => true, 'offset' => 0));
		} else {
			$before = $this->getCommentsAfter(array('count' => true, 'offset' => 0));
		}
		
		return floor($before / $limit) * $limit;
	}
public function getOffset ( $ limit = self :: LIMIT , $ order = 'desc' ) { if ( $ limit === 0 ) { return 0 ; } if ( $ order == 'asc' || $ order == 'time_created::asc' ) { $ before = $ this -> getCommentsBefore ( array ( 'count' => true , 'offset' => 0 ) ) ; } else { $ before = $ this -> getCommentsAfter ( array ( 'count' => true , 'offset' => 0 ) ) ; } return floor ( $ before / $ limit ) * $ limit ; }
Calculate a page offset to the given comment

@param int $limit Items per page
@param int $order Ordering
@return int
Calculate a page offset to the given comment