Overview

Packages

  • Jyxo_Beholder
  • Jyxo_Charset
  • Jyxo_Color
  • Jyxo_Css
  • Jyxo_ErrorHandling
  • Jyxo_FirePhp
  • Jyxo_Gettext
    • Parser
  • Jyxo_Html
  • Jyxo_Input
    • Chain
    • Filter
    • Validator
  • Jyxo_Mail
    • Email
    • Parser
    • Sender
  • Jyxo_Rpc
    • Json
    • Xml
  • Jyxo_Shell
  • Jyxo_SpamFilter
  • Jyxo_Spl
  • Jyxo_String
  • Jyxo_Svn
  • Jyxo_Time
  • Jyxo_Timer
  • Jyxo_Webdav
  • Jyxo_XmlReader
  • PHP

Classes

  • Jyxo_Input_Factory
  • Jyxo_Input_Fluent
  • Jyxo_Input_Upload

Exceptions

  • Jyxo_Input_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Jyxo_Input_Factory

Jyxo_Input objects factory.

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 underscore 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 underscore 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