PHP Класс Habari\FormControlFacet

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

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

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

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

Метод Описание
_extend ( ) Called upon construct. Sets control properties
get ( Theme $theme )
get_visualizer ( ) Provide the HTML id of the visualizer element, which is different from the input element that provides a value
parse ( ) : array Parse the values of this field and return an array of key/value components.
pre_out ( ) : string Return the HTML/script required for this control. Do it only once.
set_ajax ( string $url, boolean $ishtml = false ) : FormControlAutocomplete Set the URL to use for ajax callbacks.

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

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

Called upon construct. Sets control properties
public _extend ( )

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

public get ( Theme $theme )
$theme Theme

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

Provide the HTML id of the visualizer element, which is different from the input element that provides a value
public get_visualizer ( )

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

Example: $f->value = 'tag: "llamas" tag: feline alpaca'; var_dump($f->parsed()); // ['tag' => ['llamas', 'feline'], 'text' => ['alpaca']];
public parse ( ) : array
Результат array The array of parsed values

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

Return the HTML/script required for this control. Do it only once.
public pre_out ( ) : string
Результат string The HTML/javascript required for this control.

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

The callback needs to accept at least the search term as the POSTed parameter "q"
public set_ajax ( string $url, boolean $ishtml = false ) : FormControlAutocomplete
$url string The URL to submit the AJAX request to
$ishtml boolean If true, the display response returned via AJAX is to be rendered as HTML (unescaped)
Результат FormControlAutocomplete $this

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

$outpre статическое публичное свойство

static public $outpre