Inital page builder implementation to add paging support to cms_nodes.

This commit is contained in:
jvelilla
2015-05-19 18:40:57 -03:00
parent 50da24d1af
commit 53f3162b4a
4 changed files with 173 additions and 4 deletions

View File

@@ -0,0 +1,37 @@
note
description: "Summary description for {NODE_PAGE_BUILDER}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
NODE_PAGE_BUILDER
inherit
PAGE_BUILDER [CMS_NODE]
rename
make as page_make
end
create
make
feature {NONE} -- Initialization
make (a_api: CMS_API; a_module_api: CMS_NODE_API)
do
page_make (a_api, a_module_api)
limit := 5
offset := 0
end
feature -- Pager
list: LIST[CMS_NODE]
do
create {ARRAYED_LIST[CMS_NODE]}Result.make (0)
Result := node_api.recent_nodes (offset.as_integer_32, limit.as_integer_32)
end
end