Form
extends Facade
in package
Facade base class Adds the ability to define a fallback instance.
Tags
Table of Contents
- $app : Application
- The application instance being facaded.
- $resolvedInstance : array<string|int, mixed>
- The resolved object instances.
- __callStatic() : mixed
- Handle dynamic, static calls to the object.
- ajax() :
- bool() :
- button() :
- checkbox() :
- clearResolvedInstance() : void
- Clear a resolved facade instance.
- clearResolvedInstances() : void
- Clear all of the resolved instances.
- close() :
- email() :
- file() :
- getFacadeApplication() : Application
- Get the application instance behind the facade.
- getFacadeRoot() : mixed
- Get the root object behind the facade.
- getIdAttribute() :
- getSelectOption() :
- getSessionKey() :
- getSessionStore() :
- getValueAttribute() :
- hidden() :
- image() :
- input() :
- label() :
- model() :
- old() :
- open() :
- password() :
- radio() :
- reset() :
- select() :
- selectMonth() :
- selectRange() :
- selectYear() :
- sessionKey() :
- setFacadeApplication() : void
- Set the application instance.
- setModel() :
- setSessionStore() :
- shouldReceive() : Expectation
- Initiate a mock expectation on the facade.
- spy() : void
- Convert the facade into a Mockery spy.
- swap() : void
- Hotswap the underlying instance behind the facade.
- text() :
- textarea() :
- token() :
- url() :
- value() :
- createFreshMockInstance() : Expectation
- Create a fresh mock instance for the given class.
- createMock() : MockInterface
- Create a fresh mock instance for the given class.
- getFacadeAccessor() : string
- Get the registered name of the component.
- getFacadeInstance() : mixed
- If the accessor is not found via getFacadeAccessor, use this instance as a fallback.
- getMockableClass() : string|null
- Get the mockable class for the bound instance.
- isMock() : bool
- Determines whether a mock is set as the instance of the facade.
- resolveFacadeInstance() : mixed
- Resolve the facade root instance from the container.
Properties
$app
The application instance being facaded.
protected
static Application
$app
$resolvedInstance
The resolved object instances.
protected
static array<string|int, mixed>
$resolvedInstance
Methods
__callStatic()
Handle dynamic, static calls to the object.
public
static __callStatic(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
- $args : array<string|int, mixed>
Tags
Return values
mixed —ajax()
public
static ajax(string $handler, array<string|int, mixed> $options = []) :
Parameters
- $handler : string
- $options = [] : array<string|int, mixed>
Return values
—bool()
public
static bool() :
oldInputIsEmpty()
Return values
—button()
public
static button(string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—checkbox()
public
static checkbox(string $name, mixed $value, bool $checked = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value : mixed
- $checked = null : bool
- $options = [] : array<string|int, mixed>
Return values
—clearResolvedInstance()
Clear a resolved facade instance.
public
static clearResolvedInstance(string $name) : void
Parameters
- $name : string
Return values
void —clearResolvedInstances()
Clear all of the resolved instances.
public
static clearResolvedInstances() : void
Return values
void —close()
public
static close() :
Return values
—email()
public
static email(string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—file()
public
static file(string $name, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $options = [] : array<string|int, mixed>
Return values
—getFacadeApplication()
Get the application instance behind the facade.
public
static getFacadeApplication() : Application
Return values
Application —getFacadeRoot()
Get the root object behind the facade.
public
static getFacadeRoot() : mixed
Return values
mixed —getIdAttribute()
public
static getIdAttribute(string $name, array<string|int, mixed> $attributes) :
Parameters
- $name : string
- $attributes : array<string|int, mixed>
Return values
—getSelectOption()
public
static getSelectOption(string|array<string|int, mixed> $display, string $value, string $selected) :
Parameters
- $display : string|array<string|int, mixed>
- $value : string
- $selected : string
Return values
—getSessionKey()
public
static getSessionKey() :
Return values
—getSessionStore()
public
static getSessionStore() :
Return values
—getValueAttribute()
public
static getValueAttribute(string $name, string $value = null) :
Parameters
- $name : string
- $value = null : string
Return values
—hidden()
public
static hidden(string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—image()
public
static image(string $url, string $name = null, array<string|int, mixed> $attributes = []) :
Parameters
- $url : string
- $name = null : string
- $attributes = [] : array<string|int, mixed>
Return values
—input()
public
static input(string $type, string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $type : string
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—label()
public
static label(string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—model()
public
static model(mixed $model, array<string|int, mixed> $options = []) :
Parameters
- $model : mixed
- $options = [] : array<string|int, mixed>
Return values
—old()
public
static old(string $name) :
Parameters
- $name : string
Return values
—open()
public
static open(array<string|int, mixed> $options = []) :
Parameters
- $options = [] : array<string|int, mixed>
Return values
—password()
public
static password(string $name, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $options = [] : array<string|int, mixed>
Return values
—radio()
public
static radio(string $name, mixed $value, bool $checked = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value : mixed
- $checked = null : bool
- $options = [] : array<string|int, mixed>
Return values
—reset()
public
static reset(string $value, array<string|int, mixed> $attributes = []) :
Parameters
- $value : string
- $attributes = [] : array<string|int, mixed>
Return values
—select()
public
static select(string $name, array<string|int, mixed> $list = [], string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $list = [] : array<string|int, mixed>
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—selectMonth()
public
static selectMonth(string $name, string $selected = null, array<string|int, mixed> $options = [], string $format = '%B') :
Parameters
- $name : string
- $selected = null : string
- $options = [] : array<string|int, mixed>
- $format = '%B' : string
Return values
—selectRange()
public
static selectRange(string $name, string $begin, string $end, string $selected = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $begin : string
- $end : string
- $selected = null : string
- $options = [] : array<string|int, mixed>
Return values
—selectYear()
public
static selectYear() :
Return values
—sessionKey()
public
static sessionKey(string $sessionKey = null) :
Parameters
- $sessionKey = null : string
Return values
—setFacadeApplication()
Set the application instance.
public
static setFacadeApplication(Application $app) : void
Parameters
- $app : Application
Return values
void —setModel()
public
static setModel(mixed $model) :
Parameters
- $model : mixed
Return values
—setSessionStore()
public
static setSessionStore(Store $session) :
Parameters
- $session : Store
Return values
—shouldReceive()
Initiate a mock expectation on the facade.
public
static shouldReceive() : Expectation
Return values
Expectation —spy()
Convert the facade into a Mockery spy.
public
static spy() : void
Return values
void —swap()
Hotswap the underlying instance behind the facade.
public
static swap(mixed $instance) : void
Parameters
- $instance : mixed
Return values
void —text()
public
static text(string $name, string $value, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value : string
- $options = [] : array<string|int, mixed>
Return values
—textarea()
public
static textarea(string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—token()
public
static token() :
Return values
—url()
public
static url(string $name, string $value = null, array<string|int, mixed> $options = []) :
Parameters
- $name : string
- $value = null : string
- $options = [] : array<string|int, mixed>
Return values
—value()
public
static value(string $name, string $value = null) :
Parameters
- $name : string
- $value = null : string
Return values
—createFreshMockInstance()
Create a fresh mock instance for the given class.
protected
static createFreshMockInstance() : Expectation
Return values
Expectation —createMock()
Create a fresh mock instance for the given class.
protected
static createMock() : MockInterface
Return values
MockInterface —getFacadeAccessor()
Get the registered name of the component.
protected
static getFacadeAccessor() : string
Return values
string —getFacadeInstance()
If the accessor is not found via getFacadeAccessor, use this instance as a fallback.
protected
static getFacadeInstance() : mixed
Return values
mixed —getMockableClass()
Get the mockable class for the bound instance.
protected
static getMockableClass() : string|null
Return values
string|null —isMock()
Determines whether a mock is set as the instance of the facade.
protected
static isMock() : bool
Return values
bool —resolveFacadeInstance()
Resolve the facade root instance from the container.
protected
static resolveFacadeInstance(string|object $name) : mixed
Parameters
- $name : string|object