PacketFence - BTS - PacketFence
View Issue Details
0001059PacketFencerefactoringpublic2010-09-02 11:172015-02-13 15:35
obilodeau 
 
normaltrivialN/A
closedopen 
 
 
0001059: move 'static' methods out of pf::SNMP into a util module
when they have no state or side effects with the object, they just take up memory into each objects and our switch objects are probably already big enough

among good candidates are:
- getBitAtPosition
- modifyBitmask
- createPortListWithOneItem
- reverseBitmask
- ...

Sending those of to pf::util would clutter this module I think, so may I suggest a new pf::SNMP::util ?
No tags attached.
Issue History
2010-09-02 11:17obilodeauNew Issue
2010-09-02 11:17obilodeauStatusnew => assigned
2010-09-02 11:17obilodeauAssigned To => obilodeau
2010-11-19 14:25obilodeauTarget Version1.10.0 => 2.0.0
2011-01-18 09:47obilodeauTarget Version2.0.0 => 2.1.0
2011-03-03 15:15obilodeauTarget Version2.1.0 => +1
2011-03-03 15:18obilodeauTarget Version+1 => +2
2011-03-18 10:22obilodeauNote Added: 0001947
2012-10-19 14:29fgaudreaultAssigned Toobilodeau =>
2012-10-19 14:29fgaudreaultTarget Versionlong-term => general
2015-02-13 15:35lmunroNote Added: 0003759
2015-02-13 15:35lmunroStatusassigned => closed

Notes
(0001947)
obilodeau   
2011-03-18 10:22   
thinking about it, it might be better to have them be class methods instead of a separate module
(0003759)
lmunro   
2015-02-13 15:35   
No longer relevant.