MaskBuilder.php 687 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Security\Acl\Permission;
  11. use Symfony\Component\Security\Acl\Permission\MaskBuilder as BaseMaskBuilder;
  12. /**
  13. * {@inheritdoc}
  14. * - LIST: the SID is allowed to view a list of the domain objects / fields.
  15. */
  16. class MaskBuilder extends BaseMaskBuilder
  17. {
  18. const MASK_LIST = 4096; // 1 << 12
  19. const MASK_EXPORT = 8192; // 1 << 13
  20. const CODE_LIST = 'L';
  21. const CODE_EXPORT = 'E';
  22. }