Page MenuHomePhabricator

Store block options as flags
Open, Needs TriagePublic

Description

Boolean block options such as $allowUsertalk, $blockCreateAccount, etc could be stored as flags in a $blockOptions array. Individual getters could be replaced with a getFlag($flag) method. This would help improve the flexibility of the block classes.

This would also improve the confusing situation of having two different styles, e.g. getHideName() and e.g. isHardblock().

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone