Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • BaseControl
  • Button
  • Checkbox
  • CheckboxList
  • ChoiceControl
  • CsrfProtection
  • HiddenField
  • ImageButton
  • MultiChoiceControl
  • MultiSelectBox
  • RadioList
  • SelectBox
  • SubmitButton
  • TextArea
  • TextBase
  • TextInput
  • UploadControl
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class CsrfProtection

CSRF protection field.

Nette\ComponentModel\Component implements Nette\ComponentModel\IComponent uses Nette\SmartObject
Extended by Nette\Forms\Controls\BaseControl implements Nette\Forms\IControl
Extended by Nette\Forms\Controls\HiddenField
Extended by Nette\Forms\Controls\CsrfProtection
Namespace: Nette\Forms\Controls
Located at Forms/Controls/CsrfProtection.php
Methods summary
public
# __construct( string|object $errorMessage )

Parameters

$errorMessage

Overrides

Nette\Forms\Controls\HiddenField::__construct()
protected
# attached( Nette\ComponentModel\IComponent $parent )

This method will be called when the component becomes attached to Form.

This method will be called when the component becomes attached to Form.

Parameters

$parent

Overrides

Nette\Forms\Controls\BaseControl::attached()
public Nette\Forms\Controls\CsrfProtection
# setValue( string $value )

Parameters

$value

Returns

Nette\Forms\Controls\CsrfProtection
static

Internal

Overrides

Nette\Forms\Controls\HiddenField::setValue()
public
# loadHttpData( )

Loads HTTP data.

Loads HTTP data.

Overrides

Nette\Forms\Controls\BaseControl::loadHttpData()
public string
# getToken( )

Returns

string
string
public Nette\Utils\Html
# getControl( )

Generates control's HTML element.

Generates control's HTML element.

Returns

Nette\Utils\Html
Nette\Utils\Html

Overrides

Nette\Forms\Controls\HiddenField::getControl()
public static boolean
# validateCsrf( Nette\Forms\Controls\CsrfProtection $control )

Returns

boolean
bool

Internal

Methods inherited from Nette\Forms\Controls\HiddenField
addError(), getLabel()
Methods inherited from Nette\Forms\Controls\BaseControl
__call(), addCondition(), addConditionOn(), addRule(), cleanErrors(), enableAutoOptionalMode(), extensionMethod(), getControlPart(), getControlPrototype(), getError(), getErrors(), getForm(), getHtmlId(), getHtmlName(), getHttpData(), getLabelPart(), getLabelPrototype(), getOption(), getOptions(), getRules(), getTranslator(), getValue(), hasErrors(), isDisabled(), isFilled(), isOmitted(), isRequired(), setAttribute(), setDefaultValue(), setDisabled(), setHtmlAttribute(), setHtmlId(), setOmitted(), setOption(), setRequired(), setTranslator(), translate(), validate()
Methods inherited from Nette\ComponentModel\Component
__clone(), __sleep(), __wakeup(), detached(), getName(), getParent(), lookup(), lookupPath(), monitor(), setParent(), unmonitor(), validateParent()
Methods used from Nette\SmartObject
__callStatic(), __get(), __isset(), __set(), __unset(), getReflection()
Constants summary
string PROTECTION
#'Nette\Forms\Controls\CsrfProtection::validateCsrf'
Constants inherited from Nette\ComponentModel\IComponent
NAME_SEPARATOR
Properties summary
public Nette\Http\Session $session
#
Properties inherited from Nette\Forms\Controls\BaseControl
$caption, $control, $disabled, $idMask, $label, $value
Magic properties inherited from Nette\Forms\Controls\BaseControl
$control, $controlPrototype, $disabled, $error, $errors, $filled, $form, $htmlId, $htmlName, $label, $labelPrototype, $omitted, $options, $required, $value
Magic properties inherited from Nette\ComponentModel\Component
$name, $parent
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0