PHP 8.2.30
Preview: FormConfigInterface.php Size: 6.29 KB
/opt/cloudlinux/alt-php54/root/usr/share/pear/Symfony/Component/Form/FormConfigInterface.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\Form;

/**
 * The configuration of a {@link Form} object.
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
interface FormConfigInterface
{
    /**
     * Returns the event dispatcher used to dispatch form events.
     *
     * @return \Symfony\Component\EventDispatcher\EventDispatcherInterface The dispatcher.
     */
    public function getEventDispatcher();

    /**
     * Returns the name of the form used as HTTP parameter.
     *
     * @return string The form name.
     */
    public function getName();

    /**
     * Returns the property path that the form should be mapped to.
     *
     * @return null|\Symfony\Component\PropertyAccess\PropertyPathInterface The property path.
     */
    public function getPropertyPath();

    /**
     * Returns whether the form should be mapped to an element of its
     * parent's data.
     *
     * @return Boolean Whether the form is mapped.
     */
    public function getMapped();

    /**
     * Returns whether the form's data should be modified by reference.
     *
     * @return Boolean Whether to modify the form's data by reference.
     */
    public function getByReference();

    /**
     * Returns whether the form should read and write the data of its parent.
     *
     * @return Boolean Whether the form should inherit its parent's data.
     */
    public function getInheritData();

    /**
     * Returns whether the form is compound.
     *
     * This property is independent of whether the form actually has
     * children. A form can be compound and have no children at all, like
     * for example an empty collection form.
     *
     * @return Boolean Whether the form is compound.
     */
    public function getCompound();

    /**
     * Returns the form types used to construct the form.
     *
     * @return ResolvedFormTypeInterface The form's type.
     */
    public function getType();

    /**
     * Returns the view transformers of the form.
     *
     * @return DataTransformerInterface[] An array of {@link DataTransformerInterface} instances.
     */
    public function getViewTransformers();

    /**
     * Returns the model transformers of the form.
     *
     * @return DataTransformerInterface[] An array of {@link DataTransformerInterface} instances.
     */
    public function getModelTransformers();

    /**
     * Returns the data mapper of the form.
     *
     * @return DataMapperInterface The data mapper.
     */
    public function getDataMapper();

    /**
     * Returns whether the form is required.
     *
     * @return Boolean Whether the form is required.
     */
    public function getRequired();

    /**
     * Returns whether the form is disabled.
     *
     * @return Boolean Whether the form is disabled.
     */
    public function getDisabled();

    /**
     * Returns whether errors attached to the form will bubble to its parent.
     *
     * @return Boolean Whether errors will bubble up.
     */
    public function getErrorBubbling();

    /**
     * Returns the data that should be returned when the form is empty.
     *
     * @return mixed The data returned if the form is empty.
     */
    public function getEmptyData();

    /**
     * Returns additional attributes of the form.
     *
     * @return array An array of key-value combinations.
     */
    public function getAttributes();

    /**
     * Returns whether the attribute with the given name exists.
     *
     * @param  string $name The attribute name.
     *
     * @return Boolean Whether the attribute exists.
     */
    public function hasAttribute($name);

    /**
     * Returns the value of the given attribute.
     *
     * @param  string $name    The attribute name.
     * @param  mixed  $default The value returned if the attribute does not exist.
     *
     * @return mixed The attribute value.
     */
    public function getAttribute($name, $default = null);

    /**
     * Returns the initial data of the form.
     *
     * @return mixed The initial form data.
     */
    public function getData();

    /**
     * Returns the class of the form data or null if the data is scalar or an array.
     *
     * @return string The data class or null.
     */
    public function getDataClass();

    /**
     * Returns whether the form's data is locked.
     *
     * A form with locked data is restricted to the data passed in
     * this configuration. The data can only be modified then by
     * submitting the form.
     *
     * @return Boolean Whether the data is locked.
     */
    public function getDataLocked();

    /**
     * Returns the form factory used for creating new forms.
     *
     * @return FormFactoryInterface The form factory.
     */
    public function getFormFactory();

    /**
     * Returns the target URL of the form.
     *
     * @return string The target URL of the form.
     */
    public function getAction();

    /**
     * Returns the HTTP method used by the form.
     *
     * @return string The HTTP method of the form.
     */
    public function getMethod();

    /**
     * Returns the request handler used by the form.
     *
     * @return RequestHandlerInterface The request handler.
     */
    public function getRequestHandler();

    /**
     * Returns whether the form should be initialized upon creation.
     *
     * @return Boolean Returns true if the form should be initialized
     *                 when created, false otherwise.
     */
    public function getAutoInitialize();

    /**
     * Returns all options passed during the construction of the form.
     *
     * @return array The passed options.
     */
    public function getOptions();

    /**
     * Returns whether a specific option exists.
     *
     * @param  string $name The option name,
     *
     * @return Boolean Whether the option exists.
     */
    public function hasOption($name);

    /**
     * Returns the value of a specific option.
     *
     * @param  string $name    The option name.
     * @param  mixed  $default The value returned if the option does not exist.
     *
     * @return mixed The option value.
     */
    public function getOption($name, $default = null);
}

Directory Contents

Dirs: 6 × Files: 49

Name Size Perms Modified Actions
Exception DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Extension DIR
- drwxr-xr-x 2024-03-03 22:54:50
Edit Download
Guess DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Resources DIR
- drwxr-xr-x 2024-03-03 22:54:50
Edit Download
Test DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
Util DIR
- drwxr-xr-x 2024-03-03 22:54:51
Edit Download
4.77 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
7.46 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.05 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
993 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
334 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
8.62 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
18.09 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
462 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.09 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
559 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.10 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.08 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
34.05 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
7.69 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.28 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
21.17 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
8.46 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
6.29 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.50 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.22 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.11 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.63 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
5.10 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.52 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.99 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
4.14 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
8.13 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
4.64 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.41 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
11.67 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
6.90 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.20 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
5.76 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.08 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.81 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.12 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.15 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.44 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
5.48 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
2.26 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
668 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
7.48 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
658 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.27 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
3.23 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.23 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
1.11 KB lrw-r--r-- 2019-12-18 11:22:56
Edit Download
624 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download
474 B lrw-r--r-- 2019-12-18 11:22:56
Edit Download

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