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 Upload

File upload processing.

Jyxo\Input\Validator\AbstractValidator implements Jyxo\Input\ValidatorInterface
Extended by Jyxo\Input\Validator\Upload implements Jyxo\Input\FilterInterface, Jyxo\Input\Validator\ErrorMessage
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: Jakub Tománek
Located at Input/Validator/Upload.php
Methods summary
public Jyxo\Input\Validator\Upload
# requireUpload( boolean $flag = true )

Sets if a file is required to be uploaded.

Sets if a file is required to be uploaded.

Parameters

$flag
boolean
Does the file have to be uploaded

Returns

Jyxo\Input\Validator\Upload
public boolean
# isValid( Jyxo\Input\Upload|string $file )

Checks if the file was successfully uploaded.

Checks if the file was successfully uploaded.

Parameters

$file
Jyxo\Input\Upload|string
File index in the $_FILES array

Returns

boolean

Implementation of

Jyxo\Input\ValidatorInterface::isValid
protected boolean
# isUploaded( string $file )

Checks if the file was uploaded.

Checks if the file was uploaded.

Parameters

$file
string
File index in the $_FILES array

Returns

boolean
public Jyxo\Input\Upload
# filter( Jyxo\Input\Upload $in )

Sets that the file fas successfully uploaded.

Sets that the file fas successfully uploaded.

Parameters

$in
Jyxo\Input\Upload
Uploaded file

Returns

Jyxo\Input\Upload

Implementation of

Jyxo\Input\FilterInterface::filter
public string
# getError( )

Returns error message in case of upload error.

Returns error message in case of upload error.

Returns

string

Implementation of

Jyxo\Input\Validator\ErrorMessage::getError
Methods inherited from Jyxo\Input\Validator\AbstractValidator
__construct(), validate()
Jyxo PHP Library API documentation generated by ApiGen 2.3.0