liquid_feedback_frontend

view model/unit.lua @ 241:6725c13b6ce0

Add initial unit support
author bsw
date Fri Dec 30 02:59:43 2011 +0100 (2011-12-30)
parents
children b77e6a17ca77
line source
1 Unit = mondelefant.new_class()
2 Unit.table = 'unit'
4 Unit:add_reference{
5 mode = '1m',
6 to = "Area",
7 this_key = 'id',
8 that_key = 'unit_id',
9 ref = 'areas',
10 back_ref = 'unit'
11 }
13 function Unit:get_flattened_tree()
14 -- TODO implement
16 return Unit:new_selector():exec()
17 end

Impressum / About Us