More actions
Content deleted Content added
condense _main and switch Blurb arg order |
make Blurb be responsible for setting its own fields |
||
Line 339: | Line 339: | ||
local Blurb = class('Blurb') |
local Blurb = class('Blurb') |
||
function Blurb:initialize(protectionObj, cfg) |
function Blurb:initialize(protectionObj, args, cfg) |
||
self._cfg = cfg |
self._cfg = cfg |
||
self._protectionObj = protectionObj |
self._protectionObj = protectionObj |
||
self._bannerConfig = protectionObj.bannerConfig |
self._bannerConfig = protectionObj.bannerConfig |
||
self._title = protectionObj.title |
self._title = protectionObj.title |
||
⚫ | |||
⚫ | |||
⚫ | |||
end |
end |
||
Line 686: | Line 689: | ||
-- Public methods -- |
-- Public methods -- |
||
function Blurb:setDeletionDiscussionPage(page) |
|||
⚫ | |||
end |
|||
function Blurb:setUsername(username) |
|||
⚫ | |||
end |
|||
function Blurb:setSection(section) |
|||
⚫ | |||
end |
|||
function Blurb:makeReasonText() |
function Blurb:makeReasonText() |
||
Line 894: | Line 885: | ||
-- Initialise protection and blurb objects |
-- Initialise protection and blurb objects |
||
local protectionObj = Protection:new(args, cfg) |
local protectionObj = Protection:new(args, cfg) |
||
local blurbObj = Blurb:new(protectionObj, cfg) |
local blurbObj = Blurb:new(protectionObj, args, cfg) |
||
blurbObj:setDeletionDiscussionPage(args.xfd) |
|||
blurbObj:setUsername(args.user) |
|||
blurbObj:setSection(args.section) |
|||
local ret = {} |
local ret = {} |