<?php

/**
 * Newsentry
 *
 * @author Arkadiusz Rychlik <a.rychlik at eppe.com.pl>
 */
class Main_News_Model_Newsentry extends Rtn_Model {
	
	static public function getLatest($limit=10,$offset=0) {
		return R::findAll('viewnewsentry', 'active = TRUE ORDER BY `order` DESC LIMIT ?,?', [$offset,$limit]);
	}
	
}
