Add block restriction classes
authorDayllan Maza <dayllan.maza@gmail.com>
Thu, 16 Aug 2018 04:55:55 +0000 (00:55 -0400)
committerMoriel Schottlender <moriel@gmail.com>
Wed, 24 Oct 2018 00:41:50 +0000 (17:41 -0700)
commita562611e5b1a998c09dee0cf3022a1ba3935397a
tree9d2a658cff8b872b83a986bbd273c24ac03bb658
parent6cd66511d209127369ad77c5bc70ab5cf136028c
Add block restriction classes

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
13 files changed:
includes/AutoLoader.php
includes/Block.php
includes/DefaultSettings.php
includes/block/BlockRestriction.php [new file with mode: 0644]
includes/block/Restriction/AbstractRestriction.php [new file with mode: 0644]
includes/block/Restriction/PageRestriction.php [new file with mode: 0644]
includes/block/Restriction/Restriction.php [new file with mode: 0644]
includes/specials/SpecialBlock.php
tests/common/TestsAutoLoader.php
tests/phpunit/includes/BlockTest.php
tests/phpunit/includes/block/BlockRestrictionTest.php [new file with mode: 0644]
tests/phpunit/includes/block/Restriction/PageRestrictionTest.php [new file with mode: 0644]
tests/phpunit/includes/block/Restriction/RestrictionTestCase.php [new file with mode: 0644]