summaryrefslogtreecommitdiffstats
path: root/aconf/model/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'aconf/model/init.lua')
-rw-r--r--aconf/model/init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/aconf/model/init.lua b/aconf/model/init.lua
index 6c78b8f..35dfc7b 100644
--- a/aconf/model/init.lua
+++ b/aconf/model/init.lua
@@ -1,5 +1,5 @@
--[[
-Copyright (c) 2012-2015 Kaarle Ritvanen
+Copyright (c) 2012-2016 Kaarle Ritvanen
See LICENSE file for license details
--]]
@@ -206,6 +206,13 @@ end
M.Model = fld.Model
+--- collection field, inherits @{Field}.
+-- @klass Collection
+-- @param type (<i>@{Field}</i> or <i>[&lt;Model&gt;](#new)</i>)
+-- subclass of @{Field}, instance of such, or
+-- [**&lt;Model&gt;**](#new) specifying the type of the members.
+-- @tparam ?string ui_member user-friendly noun for a member of this
+-- collection
M.Collection = class(fld.TreeNode)
function M.Collection:init(params, itype)
@@ -231,13 +238,6 @@ function M.Collection:auto_ui_name(name)
return super(self, M.Collection):auto_ui_name(name)
end
---- collection field, inherits @{Field}.
--- @klass Collection
--- @param type (<i>@{Field}</i> or <i>[&lt;Model&gt;](#new)</i>)
--- subclass of @{Field}, instance of such, or
--- [**&lt;Model&gt;**](#new) specifying the type of the members.
--- @tparam ?string ui_member user-friendly noun for a member of this
--- collection
function M.Collection:load(context, options)
if not self.iparams.field then
self.iparams.field = to_field(self.type)