Version: current

# Class Member_Validator

Member Validator

  Object
  Validator
  RequiredFields
  Member_Validator

Package: sapphire\security
Located at sapphire/security/Member.php

## Methods summary

`public` | # `__construct( )` Constructor Constructor #### Overrides `RequiredFields::__construct`
`public boolean` | # `php( array $data )` Check if the submitted member data is valid (server-side) Check if the submitted member data is valid (server-side) Check if a member with that email doesn't already exist, or if it does that it is this member. #### Parameters $data array $data Submitted data #### Returns `boolean` Returns TRUE if the submitted data is valid, otherwise FALSE. #### Overrides `RequiredFields::php`
`public boolean` | # `javascript( )` Check if the submitted member data is valid (client-side) Check if the submitted member data is valid (client-side) #### Returns `boolean` Returns TRUE if the submitted data is valid, otherwise FALSE. #### Overrides `RequiredFields::javascript`

### Methods inherited from RequiredFields

`addRequiredField()`, `appendRequiredFields()`, `debug()`, `fieldIsRequired()`, `getRequired()`, `removeRequiredField()`, `removeValidation()`, `useLabels()`

### Methods inherited from Validator

`getCombinedError()`, `getError()`, `getErrors()`, `getJavascriptValidationHandler()`, `get_javascript_validator_handler()`, `includeJavascriptValidation()`, `requireField()`, `setForm()`, `setJavascriptValidationHandler()`, `set_javascript_validation_handler()`, `showError()`, `validate()`, `validationError()`

### Methods inherited from Object

`__call()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `defineMethods()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`protected array` | $customRequired | #

### Properties inherited from RequiredFields

`$required`, `$useLabels`

### Properties inherited from Validator

`$errors`, `$form`, `$javascriptValidationHandler`, `$javascript_validation_handler`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -