Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API

Baigudin Software has successfully started in Kaspersky Start program

Baigudin Software has been successfully started in Kaspersky Start program by Kaspersky Lab and performs the BOOS Core operating kernel to it.

Interface «DomBuilder\Api\Field»

Form field elements access declaration.

  • interface Api\Field

All superinterfaces:

Object

public Element check();

Checks this field for errors.

Returns:
Element — this element.

public bool|Element error(bool $value=NULL);

Returns or sets a error flag.

Parameters:
bool $value — error flag.

Returns:
bool|Element — a current error flag or this element.

public string|Element errorStr(string $value=NULL, string $lang=NULL);

Returns or sets a error string.

Parameters:
string $value — error string.
string $lang — language key for given string.

Returns:
string|Element — a current error string or this element.

public bool|Element fill(bool $value=NULL);

Returns or sets a flag of necessarily filling field.

Parameters:
bool $value — filling flag.

Returns:
bool|Element — a current filling flag or this element.

public string|Element name(string $value=NULL, string $lang=NULL);

Returns or sets a field name.

Parameters:
string $value — field name.
string $lang — language key for given html string.

Returns:
string|Element — a current field name or this element.

public string|Element reg(string $value=NULL);

Returns or sets a regular expression for checking.

Parameters:
string $value — regular expression.

Returns:
string|Element — a current expression or this element.

public Element setRequest(string $value=NULL);

Sets a new request value.

Parameters:
string $value — new request value.

Returns:
Element — this element.

public string|Element value(string $value=NULL, string $lang=NULL);

Sets a default value or returns request value.

Parameters:
string $value — default field value.
string $lang — language key for given default field value.

Returns:
string|Element — a gotten value from request or this element.

Back to class list