mojavi
[ class tree: mojavi ] [ index: mojavi ] [ all elements ]

Class: ValidatorManager

Source Location: /validator/ValidatorManager.class.php

Class Overview

MojaviObject
   |
   --ValidatorManager

ValidatorManager provides management for request parameters and their associated validators.


Author(s):

  • Sean Kerr (skerr@mojavi.org)

Version:

  • $Id: ValidatorManager.class.php 656 2004-12-14 20:39:21Z seank $

Copyright:

Variables

Methods


Inherited Methods

Class: MojaviObject

MojaviObject::toString()
Retrieve a string representation of this object.

Class Details

[line 24]
ValidatorManager provides management for request parameters and their associated validators.



Tags:

version:  $Id: ValidatorManager.class.php 656 2004-12-14 20:39:21Z seank $
since:  1.0.0
copyright:  (c) Sean Kerr, http://www.mojavi.org
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]


Class Variables

$names = array()

[line 33]


Type:   mixed


[ Top ]

$request =

[line 34]


Type:   mixed


[ Top ]



Class Methods


method clear [line 48]

void clear( )

Clear this validator manager so it can be reused.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method execute [line 68]

bool execute( )

Execute all validators and determine the validation status.



Tags:

return:  true, if validation completed successfully, otherwise false.
access:  public
since:  1.0.0
author:  Sean Kerr (skerr@mojavi.org)


[ Top ]

method initialize [line 154]

void initialize( Context $context)

Initialize this validator manager.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

Context   $context   A context instance.

[ Top ]

method registerName [line 175]

void registerName( string $name, [bool $required = true], [string $message = 'Required'], [string $parent = null], [string $group = null], [mixed $isFile = false])

Register a file or parameter.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   A file or parameter name.
bool   $required   The required status.
string   $message   A required error message.
string   $parent   A group name.
string   $group   A parent array.

[ Top ]

method registerValidator [line 250]

void registerValidator( string $name, Validator $validator, [string $parent = null])

Register a validator for a file or parameter.



Tags:

access:  public
since:  3.0.0
author:  Sean Kerr (skerr@mojavi.org)


Parameters:

string   $name   A file or parameter name.
Validator   $validator   A validator implementation instance.
string   $parent   A parent array name.

[ Top ]


Documentation generated on Tue, 21 Feb 2006 01:45:30 +0900 by phpDocumentor 1.3.0RC5