Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cValidatorAbstract
  • cValidatorEmail
  • cValidatorFactory
  • cValidatorRegex
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cValidatorAbstract

Abstract validator.

Direct known subclasses

cValidatorEmail, cValidatorRegex
Abstract
Package: Core\Validation
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/validator/class.validator.abstract.php
Methods summary
public
# setOptions( array $options )

Options setter, merges passed options with previous set options.

Options setter, merges passed options with previous set options.

Parameters

$options
array
$options
public
# setOption( string $name, mixed $value )

Single option setter.

Single option setter.

Parameters

$name
string
$name
$value
mixed
$value
public mixed|null
# getOption( string $name )

Option getter.

Option getter.

Parameters

$name
string
$name

Returns

mixed|null
public array
# getErrors( )

Returns list of validations errors

Returns list of validations errors

Returns

array
protected
# addError( string $message, mixed $code )

Adds a error.

Adds a error.

Parameters

$message
string
$message
$code
mixed
$code
public boolean
# isValid( mixed $value )

Validates the passed value.

Validates the passed value.

Parameters

$value
mixed
$value

Returns

boolean
abstract protected boolean
# _isValid( mixed $value )

Abstract isValid method, which has to be implemented by childs

Abstract isValid method, which has to be implemented by childs

Parameters

$value
mixed
$value

Returns

boolean
Properties summary
protected array $_options array()
#

List of options, depends by used validator

List of options, depends by used validator

protected array $_errors array()
#

List of validations errors

List of validations errors

CMS CONTENIDO 4.9.1 API documentation generated by ApiGen 2.8.0