Class \Prado\Web\UI\WebControls\TValidationSummary
TValidationSummary displays a summary of validation errors inline on a Web page, in a message box, or both. By default, a validation summary will collect \Prado\Web\UI\WebControls\TBaseValidator::getErrorMessage of all failed validators on the page. If \Prado\Web\UI\WebControls\getValidationGroup is not empty, only those validators who belong to the group will show their error messages in the summary.
The summary can be displayed as a list, as a bulleted list, or as a single paragraph based on the \Prado\Web\UI\WebControls\setDisplayMode property. The messages shown can be prefixed with \Prado\Web\UI\WebControls\setHeaderText.
The summary can be displayed on the Web page and in a message box by setting the \Prado\Web\UI\WebControls\setShowSummary and \Prado\Web\UI\WebControls\setShowMessageBox properties, respectively. Note, the latter is only effective when \Prado\Web\UI\WebControls\setEnableClientScript is true.
Class hierarchy
- \Prado\Web\UI\WebControls\TValidationSummary
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
renderContents(mixed $writer) : mixed
Overrides parent implementation by rendering TValidationSummary-specific presentation.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
addAttributesToRender(mixed $writer) : mixed
Adds attribute name-value pairs to renderer.
By default, the method will render 'id', 'accesskey', 'disabled', 'tabindex', 'title' and all custom attributes. The method can be overriden to provide customized attribute rendering. |
protected
|
|
protected
|
getClientScriptOptions() : array<string|int, mixed>
Get a list of options for the client-side javascript validation summary.
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|