PHP Класс Habari\FormControlSubmit

Наследование: extends FormControl
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$caption
$on_success

Открытые методы

Метод Описание
_extend ( ) Called upon construct. Sets control properties
do_success ( FormUI $form ) : boolean | string This control only executes its on_success callbacks when it was clicked
get ( Theme $theme ) : string Produce HTML output for this password control.
set_caption ( string $caption ) : FormControlSubmit Set the caption of this submit button
set_url ( string $url ) : FormControlSubmit Make this submit button go to a URL instead of validating or processing success
validate ( ) : array This control only validates if it's clicked

Описание методов

_extend() публичный Метод

Called upon construct. Sets control properties
public _extend ( )

do_success() публичный Метод

This control only executes its on_success callbacks when it was clicked
public do_success ( FormUI $form ) : boolean | string
$form FormUI The form to which this control belongs
Результат boolean | string A string to replace the rendering of the form with, or false

get() публичный Метод

Produce HTML output for this password control.
public get ( Theme $theme ) : string
$theme Theme The theme to use to render this control
Результат string HTML for this control in the form

set_caption() публичный Метод

Set the caption of this submit button
public set_caption ( string $caption ) : FormControlSubmit
$caption string The caption to set
Результат FormControlSubmit $this

set_url() публичный Метод

Make this submit button go to a URL instead of validating or processing success
public set_url ( string $url ) : FormControlSubmit
$url string The URL to redirect to
Результат FormControlSubmit $this Fluent interface

validate() публичный Метод

This control only validates if it's clicked
public validate ( ) : array
Результат array If empty, no errors. One string element describing each error

Описание свойств

$caption публичное свойство

public $caption

$on_success публичное свойство

public $on_success