Overview

Namespaces

  • Jyxo
    • Beholder
      • TestCase
    • Gettext
      • Parser
    • Input
      • Chain
      • Filter
      • Validator
    • Mail
      • Email
        • Attachment
      • Parser
      • Sender
    • Rpc
      • Json
      • Xml
    • Shell
    • Spl
    • Svn
    • Time
    • Webdav
  • PHP

Classes

  • Chain
  • Factory
  • Filter
  • Fluent
  • Upload
  • Validator

Interfaces

  • FilterInterface
  • ValidatorInterface

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Factory

\Jyxo\Input objects factory.

Namespace: Jyxo\Input
Category: Jyxo
Package: Jyxo\Input
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jakub Tománek
Located at Input/Factory.php
Methods summary
public Jyxo\Input\ValidatorInterface
# getValidatorByName( string $name, mixed|array $param = null )

Returns a particular validator by its name.

Returns a particular validator by its name.

Parameters

$name
string
Validator name
$param
mixed|array
Validator constructor parameters. In case of a single parameter it can be its value, an array of values otherwise. NULL in case of no parameter.

Returns

Jyxo\Input\ValidatorInterface

Throws

Jyxo\Input\Exception
No validator of the given name could be found
public Jyxo\Input\FilterInterface
# getFilterByName( string $name, mixed|array $param = null )

Returns a particular filter by its name.

Returns a particular filter by its name.

Parameters

$name
string
Filter name
$param
mixed|array
Filter constructor parameters. In case of a single parameter it can be its value, an array of values otherwise. NULL in case of no parameter.

Returns

Jyxo\Input\FilterInterface

Throws

Jyxo\Input\Exception
No filter of the given name could be found
public static
# addValidatorPrefix( string $prefix )

Registers a new validator prefix.

Registers a new validator prefix.

The backslash at the end is required; e.g. for class "\Api\IsInt" the prefix would be "\Api\" and validator name "IsInt".

Parameters

$prefix
string
Validator class prefix
public static
# addFilterPrefix( string $prefix )

Registers a new filter prefix.

Registers a new filter prefix.

The backslash at the end is required; e.g. for class "\Api\ToInt" the prefix would be "\Api\" a filter name "ToInt".

Parameters

$prefix
string
Jyxo PHP Library API documentation generated by ApiGen 2.3.0