sfForm
in package
Minimal sfForm stub for standalone mode.
Uses __call() to silently handle ANY method call so that form-related code paths don't crash. Provides renderFormTag() for templates that generate form HTML directly.
Table of Contents
Methods
- __call() : mixed
- __construct() : mixed
- __get() : mixed
- __isset() : bool
- getErrorSchema() : mixed
- hasErrors() : bool
- isBound() : bool
- isValid() : bool
- render() : string
- renderFormTag() : string
- renderGlobalErrors() : string
- renderHiddenFields() : string
Methods
__call()
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
- $args : array<string|int, mixed>
__construct()
public
__construct([mixed $defaults = [] ][, mixed $options = [] ][, mixed $CSRFSecret = null ]) : mixed
Parameters
- $defaults : mixed = []
- $options : mixed = []
- $CSRFSecret : mixed = null
__get()
public
__get(string $name) : mixed
Parameters
- $name : string
__isset()
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
boolgetErrorSchema()
public
getErrorSchema() : mixed
hasErrors()
public
hasErrors() : bool
Return values
boolisBound()
public
isBound() : bool
Return values
boolisValid()
public
isValid() : bool
Return values
boolrender()
public
render() : string
Return values
stringrenderFormTag()
public
renderFormTag(string $url[, array<string|int, mixed> $attributes = [] ]) : string
Parameters
- $url : string
- $attributes : array<string|int, mixed> = []
Return values
stringrenderGlobalErrors()
public
renderGlobalErrors() : string
Return values
stringrenderHiddenFields()
public
renderHiddenFields() : string