PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Interface IValidator

IValidator interface

If a control wants to validate user input, it must implement this interface.

Direct known implementers

TBaseValidator

Indirect known implementers

TActiveCustomValidator, TCaptchaValidator, TRequiredFieldValidator, TCompareValidator, TCustomValidator, TDataTypeValidator, TEmailAddressValidator, TListControlValidator, TRangeValidator, TReCaptchaValidator, TRegularExpressionValidator
Package: System\Web\UI
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/TControl.php
Methods summary
public boolean
# validate( )

Validates certain data. The implementation of this function should validate certain data (e.g. data entered into TTextBox control).

Validates certain data. The implementation of this function should validate certain data (e.g. data entered into TTextBox control).

Returns

boolean
whether the data passes the validation
public boolean
# getIsValid( )

Returns

boolean
whether the previous IValidator::validate() is successful.
public
# setIsValid( boolean $value )

Parameters

$value
boolean
whether the validator validates successfully
public string
# getErrorMessage( )

Returns

string
error message during last validate
public
# setErrorMessage( string $value )

Parameters

$value
string
error message for the validation
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO