$84 GRAYBYTE WORDPRESS FILE MANAGER $28

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/Symfony/Component/Templating/

HOME
Current File : /opt/alt/php54/usr/share/pear/Symfony/Component/Templating//TemplateReference.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\Templating;

/**
 * Internal representation of a template.
 *
 * @author Victor Berchet <[email protected]>
 *
 * @api
 */
class TemplateReference implements TemplateReferenceInterface
{
    protected $parameters;

    public function __construct($name = null, $engine = null)
    {
        $this->parameters = array(
            'name'   => $name,
            'engine' => $engine,
        );
    }

    /**
     * {@inheritdoc}
     */
    public function __toString()
    {
        return $this->getLogicalName();
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function set($name, $value)
    {
        if (array_key_exists($name, $this->parameters)) {
            $this->parameters[$name] = $value;
        } else {
            throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name));
        }

        return $this;
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function get($name)
    {
        if (array_key_exists($name, $this->parameters)) {
            return $this->parameters[$name];
        }

        throw new \InvalidArgumentException(sprintf('The template does not support the "%s" parameter.', $name));
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function all()
    {
        return $this->parameters;
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function getPath()
    {
        return $this->parameters['name'];
    }

    /**
     * {@inheritdoc}
     *
     * @api
     */
    public function getLogicalName()
    {
        return $this->parameters['name'];
    }
}


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
Asset
--
3 Mar 2024 10.54 PM
root / root
0755
Helper
--
3 Mar 2024 10.54 PM
root / root
0755
Loader
--
3 Mar 2024 10.54 PM
root / root
0755
Storage
--
3 Mar 2024 10.54 PM
root / root
0755
DebuggerInterface.php
0.678 KB
18 Dec 2019 11.22 AM
root / root
0644
DelegatingEngine.php
2.769 KB
18 Dec 2019 11.22 AM
root / root
0644
EngineInterface.php
2.177 KB
18 Dec 2019 11.22 AM
root / root
0644
PhpEngine.php
15.368 KB
18 Dec 2019 11.22 AM
root / root
0644
StreamingEngineInterface.php
1.001 KB
18 Dec 2019 11.22 AM
root / root
0644
TemplateNameParser.php
0.965 KB
18 Dec 2019 11.22 AM
root / root
0644
TemplateNameParserInterface.php
0.792 KB
18 Dec 2019 11.22 AM
root / root
0644
TemplateReference.php
1.872 KB
18 Dec 2019 11.22 AM
root / root
0644
TemplateReferenceInterface.php
1.933 KB
18 Dec 2019 11.22 AM
root / root
0644
autoloader.php
0.332 KB
18 Dec 2019 11.22 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF