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

  • CacheControl
  • HeaderCollection
  • HeaderFactory
  • Link

Interfaces

  • HeaderFactoryInterface
  • HeaderInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class Link

Provides helpful functionality for link headers

Guzzle\Http\Message\Header implements Guzzle\Http\Message\Header\HeaderInterface
Extended by Guzzle\Http\Message\Header\Link
Namespace: Guzzle\Http\Message\Header
Located at src/Guzzle/Http/Message/Header/Link.php
Methods summary
public Guzzle\Http\Message\Header\Link
# addLink( string $url, string $rel, array $params = array() )

Add a link to the header

Add a link to the header

Parameters

$url
Link URL
$rel
Link rel
$params
Other link parameters

Returns

Guzzle\Http\Message\Header\Link
public boolean
# hasLink( string $rel )

Check if a specific link exists for a given rel attribute

Check if a specific link exists for a given rel attribute

Parameters

$rel
rel value

Returns

boolean
public array|null
# getLink( string $rel )

Get a specific link for a given rel attribute

Get a specific link for a given rel attribute

Parameters

$rel
Rel value

Returns

array|null
public array
# getLinks( )

Get an associative array of links

Get an associative array of links

For example: Link: http:/.../front.jpeg; rel=front; type="image/jpeg", http://.../back.jpeg; rel=back; type="image/jpeg"

var_export($response->getLinks());
array(
    array(
        'url' => 'http:/.../front.jpeg',
        'rel' => 'back',
        'type' => 'image/jpeg',
    )
)

Returns

array
Methods inherited from Guzzle\Http\Message\Header
__construct(), __toString(), add(), count(), getGlue(), getIterator(), getName(), hasExactHeader(), hasValue(), normalize(), parseParams(), raw(), removeValue(), setGlue(), setName(), toArray(), trimHeader()
Properties inherited from Guzzle\Http\Message\Header
$glue, $header, $values
Omnipay Viva Payments Gateway Module API Documentation API documentation generated by ApiGen