Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

PHP DOM Builder API 2.0

BOOS Core is unveiled in second revision

BOOS Core Revision 2 has been successfully unveiled within the framework of Baigudin Software project. In comparison with the first revision, the second has gotten considerable improvements. It saves the best features of previous realization and gets the new logical continuation.

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