Aplus Framework Docs

SearchEngines
in package

Class SearchEngines.

Table of Contents

$current  : string
$engines  : array<string|int, mixed>
__construct()  : mixed
add()  : static
getAll()  : array<string, string>
getCurrent()  : string
getCurrentUrl()  : string
getUrl()  : string
makeLink()  : string
setCurrent()  : static

Properties

$engines

protected array<string|int, mixed> $engines = ['ask' => 'https://www.ask.com/web?q=', 'baidu' => 'https://www.baidu.com/s?wd=', 'bing' => 'https://www.bing.com/search?q=', 'duckduckgo' => 'https://duckduckgo.com/?q=', 'google' => 'https://www.google.com/search?q=', 'yahoo' => 'https://search.yahoo.com/search?p=', 'yandex' => 'https://yandex.com/search/?text=']

Methods

__construct()

public __construct([string|null $current = null ]) : mixed
Parameters
$current : string|null = null
Return values
mixed

add()

public add(string $name, string $url) : static
Parameters
$name : string
$url : string
Return values
static

getAll()

public getAll() : array<string, string>
Return values
array<string, string>

getCurrent()

public getCurrent() : string
Return values
string

getCurrentUrl()

public getCurrentUrl() : string
Return values
string

getUrl()

public getUrl(string $name) : string
Parameters
$name : string
Return values
string
public makeLink(string $query[, string|null $name = null ]) : string
Parameters
$query : string
$name : string|null = null
Return values
string

setCurrent()

public setCurrent(string $name) : static
Parameters
$name : string
Return values
static

Search results