Overview

Packages

  • Pinoco
    • PAL

Classes

  • Pinoco
  • Pinoco_Delegate
  • Pinoco_DynamicVars
  • Pinoco_HttpRequestVars
  • Pinoco_List
  • Pinoco_MIMEType
  • Pinoco_NativeRenderer
  • Pinoco_NothingVars
  • Pinoco_NullRenderer
  • Pinoco_OptionalParam
  • Pinoco_Pagination
  • Pinoco_PDOStatementWrapper
  • Pinoco_PDOWrapper
  • Pinoco_Renderer
  • Pinoco_Router
  • Pinoco_TALRenderer
  • Pinoco_TestEnvironment
  • Pinoco_Validator
  • Pinoco_ValidatorContext
  • Pinoco_Vars

Interfaces

  • Pinoco_ArrayConvertible

Functions

  • __pinoco_autoload_impl
  • Overview
  • Package
  • Class
  • Tree

Class Pinoco_ValidatorContext

Pinoco_Vars implements IteratorAggregate, ArrayAccess, Countable, Pinoco_ArrayConvertible
Extended by Pinoco_DynamicVars
Extended by Pinoco_ValidatorContext
Package: Pinoco
Copyright: Copyright 2010-2012, Hisateru Tanaka <tanakahisateru@gmail.com>
License: License (http://www.opensource.org/licenses/mit-license.php)
Author: Hisateru Tanaka <tanakahisateru@gmail.com>
Located at Pinoco/ValidatorContext.php
Methods summary
public
# __construct( Pinoco_Validator $validator, string $name, string|boolean $label = false )

Constructor

Constructor

Parameters

$validator
Pinoco_Validator
$validator
$name
string
$name
$label
string|boolean
$label

Overrides

Pinoco_Vars::__construct()
public mixed
# get_value( )

Retrieves target value.

Retrieves target value.

Returns

mixed
public string
# get_test( )

Failed test.

Failed test.

Returns

string
public boolean
# get_valid( )

Valid or not.

Valid or not.

Returns

boolean
public boolean
# get_invalid( )

Inverse of valid.

Inverse of valid.

Returns

boolean
public string
# get_message( )

Error message for the first failed check.

Error message for the first failed check.

Returns

string
public Pinoco_ValidatorContext
# is( string $test, string|boolean $message = false )

Check the field by specified test.

Check the field by specified test.

Parameters

$test
string
$test
$message
string|boolean
$message

Returns

Pinoco_ValidatorContext
public Pinoco_ValidatorContext
# all( string $test, string|boolean $message = false )

Check if all elements pass specified test.

Check if all elements pass specified test.

Parameters

$test
string
$test
$message
string|boolean
$message

Returns

Pinoco_ValidatorContext
public Pinoco_ValidatorContext
# any( string $test, string|boolean $message = false )

Check if any element(s) pass(es) specified test.

Check if any element(s) pass(es) specified test.

Parameters

$test
string
$test
$message
string|boolean
$message

Returns

Pinoco_ValidatorContext
public Pinoco_ValidatorContext
# filter( mixed $filter )

Converts value format for trailing statements.

Converts value format for trailing statements.

Parameters

$filter
mixed
$filter

Returns

Pinoco_ValidatorContext
public Pinoco_ValidatorContext
# map( mixed $filter )

Converts value formats in the element for trailing statements.

Converts value formats in the element for trailing statements.

Parameters

$filter
mixed
$filter

Returns

Pinoco_ValidatorContext
Methods inherited from Pinoco_DynamicVars
get(), getIterator(), has(), keys(), set()
Methods inherited from Pinoco_Vars
__call(), __get(), __isset(), __set(), __toString(), __unset(), count(), fromArray(), import(), markAsDirty(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), registerAsDynamic(), registerAsLazy(), registerAsMethod(), remove(), rget(), setDefault(), setLoose(), toArray(), toArrayRecurse(), values(), wrap()
Magic properties summary
public read-only string $value
#

Validated value.

Validated value.

public read-only string $test
#

Reason of failed by test name.

Reason of failed by test name.

public read-only boolean $valid
#

Totally valid.

Totally valid.

public read-only boolean $invalid
#

Totally invalid.

Totally invalid.

public read-only string $message
#

Error message when invalid.

Error message when invalid.

Pinoco 0.8.0 Documentation API documentation generated by ApiGen 2.8.0