liquid_feedback_frontend
annotate model/member_count.lua @ 1014:e76b2a3cf19d
Corrected wrong usage of initiative list partial view in admin cancel issue
author | bsw |
---|---|
date | Sun Aug 11 22:08:30 2013 +0200 (2013-08-11) |
parents | 6c29e35cbdd3 |
children | a85f7ea61ef6 |
rev | line source |
---|---|
bsw/jbe@0 | 1 MemberCount = mondelefant.new_class() |
bsw/jbe@0 | 2 MemberCount.table = 'member_count' |
bsw/jbe@0 | 3 |
bsw/jbe@0 | 4 function MemberCount:get() |
bsw@350 | 5 if not MemberCount.total_count then |
bsw@350 | 6 MemberCount.total_count = self:new_selector():single_object_mode():exec().total_count |
bsw@350 | 7 end |
bsw@350 | 8 return MemberCount.total_count |
bsw/jbe@0 | 9 end |