PHP 8.2.30
Preview: FieldEntry.php Size: 1.91 KB
/opt/cloudlinux/alt-php54/root/usr/share/pear/Symfony/Component/Security/Acl/Domain/FieldEntry.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Security\Acl\Domain;

use Symfony\Component\Security\Acl\Model\AclInterface;
use Symfony\Component\Security\Acl\Model\FieldEntryInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;

/**
 * Field-aware ACE implementation which is auditable
 *
 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 */
class FieldEntry extends Entry implements FieldEntryInterface
{
    private $field;

    /**
     * Constructor
     *
     * @param integer                   $id
     * @param AclInterface              $acl
     * @param string                    $field
     * @param SecurityIdentityInterface $sid
     * @param string                    $strategy
     * @param integer                   $mask
     * @param Boolean                   $granting
     * @param Boolean                   $auditFailure
     * @param Boolean                   $auditSuccess
     */
    public function __construct($id, AclInterface $acl, $field, SecurityIdentityInterface $sid, $strategy, $mask, $granting, $auditFailure, $auditSuccess)
    {
        parent::__construct($id, $acl, $sid, $strategy, $mask, $granting, $auditFailure, $auditSuccess);

        $this->field = $field;
    }

    /**
     * {@inheritDoc}
     */
    public function getField()
    {
        return $this->field;
    }

    /**
     * {@inheritDoc}
     */
    public function serialize()
    {
        return serialize(array(
            $this->field,
            parent::serialize(),
        ));
    }

    /**
     * {@inheritDoc}
     */
    public function unserialize($serialized)
    {
        list($this->field, $parentStr) = unserialize($serialized);
        parent::unserialize($parentStr);
    }
}

Directory Contents

Dirs: 0 × Files: 12

Name Size Perms Modified Actions
19.34 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
2.30 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
1.34 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
6.17 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
4.50 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
1.91 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
3.09 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
958 B lrw-r--r-- 2019-12-18 11:22:57
Edit Download
7.46 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
1.56 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
2.91 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download
3.04 KB lrw-r--r-- 2019-12-18 11:22:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).