Overview

Namespaces

  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
    • Tests
      • Batch
      • Cache
      • Common
        • Cache
        • Exception
      • Http
        • Curl
        • Exception
        • Message
          • Header
      • Inflection
      • Iterator
      • Log
      • Message
      • Mock
      • Parser
        • Cookie
        • Message
      • Parsers
        • UriTemplate
      • Plugin
        • Async
        • Backoff
        • Cache
        • Cookie
          • CookieJar
        • CurlAuth
        • ErrorResponse
        • History
        • Log
        • Md5
        • Mock
        • Oauth
        • Redirect
      • Service
        • Builder
        • Command
          • LocationVisitor
            • Request
            • Response
        • Description
        • Exception
        • Mock
          • Command
            • Sub
          • Model
        • Resource
      • Stream
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • VivaPayments
      • Message
  • PHP

Classes

  • AbstractMessage
  • EntityEnclosingRequest
  • Header
  • PostFile
  • Request
  • RequestFactory
  • Response

Interfaces

  • EntityEnclosingRequestInterface
  • MessageInterface
  • PostFileInterface
  • RequestFactoryInterface
  • RequestInterface
  • Overview
  • Namespace
  • Class
  • Tree

Interface PostFileInterface

POST file upload

Direct known implementers

Guzzle\Http\Message\PostFile
Namespace: Guzzle\Http\Message
Located at src/Guzzle/Http/Message/PostFileInterface.php
Methods summary
public Guzzle\Http\Message\PostFileInterface
# setFieldName( string $name )

Set the name of the field

Set the name of the field

Parameters

$name
Field name

Returns

Guzzle\Http\Message\PostFileInterface
public string
# getFieldName( )

Get the name of the field

Get the name of the field

Returns

string
public Guzzle\Http\Message\PostFileInterface
# setFilename( string $path )

Set the path to the file

Set the path to the file

Parameters

$path
Full path to the file

Returns

Guzzle\Http\Message\PostFileInterface

Throws

InvalidArgumentException
if the file cannot be read
public Guzzle\Http\Message\PostFileInterface
# setPostname( string $name )

Set the post name of the file

Set the post name of the file

Parameters

$name
The new name of the file

Returns

Guzzle\Http\Message\PostFileInterface
public string
# getFilename( )

Get the full path to the file

Get the full path to the file

Returns

string
public string
# getPostname( )

Get the post name of the file

Get the post name of the file

Returns

string
public Guzzle\Http\Message\PostFileInterface
# setContentType( string $type )

Set the Content-Type of the file

Set the Content-Type of the file

Parameters

$type
Content type

Returns

Guzzle\Http\Message\PostFileInterface
public string
# getContentType( )

Get the Content-Type of the file

Get the Content-Type of the file

Returns

string
public string
# getCurlValue( )

Get a cURL ready string or CurlFile object for the upload

Get a cURL ready string or CurlFile object for the upload

Returns

string
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen