$47 GRAYBYTE WORDPRESS FILE MANAGER $53

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/php54/usr/share/pear/test/Form/Symfony/Component/Form/Tests/Fixtures/

HOME
Current File : /opt/alt/php54/usr/share/pear/test/Form/Symfony/Component/Form/Tests/Fixtures//TestExtension.php
<?php

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

namespace Symfony\Component\Form\Tests\Fixtures;

use Symfony\Component\Form\FormTypeInterface;
use Symfony\Component\Form\FormTypeExtensionInterface;
use Symfony\Component\Form\FormTypeGuesserInterface;
use Symfony\Component\Form\FormExtensionInterface;

class TestExtension implements FormExtensionInterface
{
    private $types = array();

    private $extensions = array();

    private $guesser;

    public function __construct(FormTypeGuesserInterface $guesser)
    {
        $this->guesser = $guesser;
    }

    public function addType(FormTypeInterface $type)
    {
        $this->types[$type->getName()] = $type;
    }

    public function getType($name)
    {
        return isset($this->types[$name]) ? $this->types[$name] : null;
    }

    public function hasType($name)
    {
        return isset($this->types[$name]);
    }

    public function addTypeExtension(FormTypeExtensionInterface $extension)
    {
        $type = $extension->getExtendedType();

        if (!isset($this->extensions[$type])) {
            $this->extensions[$type] = array();
        }

        $this->extensions[$type][] = $extension;
    }

    public function getTypeExtensions($name)
    {
        return isset($this->extensions[$name]) ? $this->extensions[$name] : array();
    }

    public function hasTypeExtensions($name)
    {
        return isset($this->extensions[$name]);
    }

    public function getTypeGuesser()
    {
        return $this->guesser;
    }
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.54 PM
root / root
0755
AlternatingRowType.php
0.746 KB
18 Dec 2019 11.22 AM
root / root
0644
Author.php
1.233 KB
18 Dec 2019 11.22 AM
root / root
0644
AuthorType.php
0.695 KB
18 Dec 2019 11.22 AM
root / root
0644
CustomArrayObject.php
1.522 KB
18 Dec 2019 11.22 AM
root / root
0644
FixedDataTransformer.php
1.083 KB
18 Dec 2019 11.22 AM
root / root
0644
FixedFilterListener.php
1.646 KB
18 Dec 2019 11.22 AM
root / root
0644
FooSubType.php
0.751 KB
18 Dec 2019 11.22 AM
root / root
0644
FooSubTypeWithParentInstance.php
0.792 KB
18 Dec 2019 11.22 AM
root / root
0644
FooType.php
0.738 KB
18 Dec 2019 11.22 AM
root / root
0644
FooTypeBarExtension.php
0.763 KB
18 Dec 2019 11.22 AM
root / root
0644
FooTypeBazExtension.php
0.639 KB
18 Dec 2019 11.22 AM
root / root
0644
TestExtension.php
1.664 KB
18 Dec 2019 11.22 AM
root / root
0644
foo
0 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF