This begins work on making namespaces a valid restriction type. The CRUD
operations of BlockRestriction can now handle namespaces. Since
NamespaceRestriction implements Restriction, enforcement should start working
immediately, but testing enforcement will come in a subsequent patch since it's
impossible to create them.
Bug: T204991
Change-Id: I7264b452d9ad788c146d6ea25d01d4d7cb5ac4f6
WRT performance, is_null() is a few nanoseconds slower than === null
due to function call overhead. Also, I personally think using the
identical check on null is slightly more readable than using is_null().
Change-Id: I83cd7a6ca49acc548a7f46b2c37dfa189889bd19
- Add @param annotation for $row to newFromRow() method in Restriction
interface declaration.
- Remove @param annotation for $option not used in loadByBlockId() method
signature.
Change-Id: Iec49b9541ea06da9f497e45bd35df26f8124aecf
This unnecessary SELECT causes a performence issue where it takes an
exceedingly long time to perform an update.
Bug: T208526
Change-Id: I0238234146fc838067019351ea97046a7d37d6fc
Partial blocks logic will be used in multiple places. This
classes will group block restriction functionality to avoid
code duplication
Bug: T202036
Change-Id: I675316dddf272fd0d6172ecad3882160752bf780