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

  • AbstractValidator
  • Callback
  • Equals
  • InArray
  • IsArray
  • IsBankAccountNumber
  • IsBirthNumber
  • IsCompanyId
  • IsCountryCode
  • IsDate
  • IsDateTime
  • IsEmail
  • IsIban
  • IsInt
  • IsIpV4
  • IsIpV6
  • IsNumeric
  • IsPhone
  • IsTaxId
  • IsUrl
  • IsZipCode
  • LessThan
  • NotEmpty
  • Regex
  • StringLengthBetween
  • StringLengthGreaterThan
  • StringLengthLessThan
  • Upload

Interfaces

  • ErrorMessage

Exceptions

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

Class LessThan

Validator for numbers; checks if its value is less than...

Jyxo\Input\Validator\AbstractValidator implements Jyxo\Input\ValidatorInterface
Extended by Jyxo\Input\Validator\LessThan
Namespace: Jyxo\Input\Validator
Category: Jyxo
Package: Jyxo\Input
Subpackage: Validator
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Jan Pěček
Located at Input/Validator/LessThan.php
Methods summary
public
# __construct( integer $max )

Constructor.

Constructor.

Sets maximum value.

Parameters

$max
integer
Maximum value (value must be less)
public Jyxo\Input\Validator\StringLengthLessThan
# setMax( integer $max )

Sets the maximum value.

Sets the maximum value.

Parameters

$max
integer
New maximum value

Returns

Jyxo\Input\Validator\StringLengthLessThan
public integer
# getMax( )

Returns the maximum value.

Returns the maximum value.

Returns

integer
public boolean
# isValid( mixed $value )

Validates a value.

Validates a value.

Parameters

$value
mixed
Input value

Returns

boolean

Implementation of

Jyxo\Input\ValidatorInterface::isValid
Methods inherited from Jyxo\Input\Validator\AbstractValidator
validate()
Properties summary
protected integer $max 0
#

Desired maximum value

Desired maximum value

Jyxo PHP Library API documentation generated by ApiGen 2.3.0