Overview

Namespaces

  • Affilinet
    • ProductData
      • Exceptions
      • HttpClient
      • Requests
        • Helper
        • Traits
      • Responses
        • ResponseElements

Classes

  • Expression
  • Query

Interfaces

  • ExpressionInterface
  • QueryInterface
  • Overview
  • Namespace
  • Class

Class Query

Class QueryBuilderTrait

The keyword(s) you want the products to match. Can be any length. The following search operators are supported: - AND (both query tokens must be contained in the product, but not necessarily next to one another) - OR (any of the query tokens must be contained in the product) - NOT (e.g. with “ipod AND NOT nano”, you will get products, which match the query “ipod”, but at the same time don’t match “nano”) - "(phrase match: all query tokens inclosed with double quotes must be contained in the found products in that order) - () Parentheses, to group expressions So you can formulate a query like this: "apple ipod" ((touch OR classic) NOT nano) AND "32 GB"

SearchProducts supports the wildcard ‘’ for suffix matching, that is: a query ‘bott’ will match for products, which contain the word “bottle” or the word “bottom”. Search operators “AND”, “OR” and “NOT” must be in capital letters.

Affilinet\ProductData\Requests\Helper\Query implements Affilinet\ProductData\Requests\Helper\QueryInterface
Namespace: Affilinet\ProductData\Requests\Helper
Located at Affilinet/ProductData/Requests/Helper/Query.php
Methods summary
public string
# getQuery( )

Returns

string

Implementation of

Affilinet\ProductData\Requests\Helper\QueryInterface::getQuery()
public Affilinet\ProductData\Requests\Helper\QueryInterface
# where( Affilinet\ProductData\Requests\Helper\Expression $expression, $operator = 'AND' )

Parameters

$expression
$operator

Returns

Affilinet\ProductData\Requests\Helper\QueryInterface

Implementation of

Affilinet\ProductData\Requests\Helper\QueryInterface::where()
public Affilinet\ProductData\Requests\Helper\QueryInterface
# andWhere( Affilinet\ProductData\Requests\Helper\Expression $expression )

Parameters

$expression

Returns

Affilinet\ProductData\Requests\Helper\QueryInterface

Implementation of

Affilinet\ProductData\Requests\Helper\QueryInterface::andWhere()
public Affilinet\ProductData\Requests\Helper\QueryInterface
# orWhere( Affilinet\ProductData\Requests\Helper\Expression $expression )

Parameters

$expression

Returns

Affilinet\ProductData\Requests\Helper\QueryInterface

Implementation of

Affilinet\ProductData\Requests\Helper\QueryInterface::orWhere()
public
# expr( )
API documentation generated by ApiGen