Documentation

Seo_Controller_Google extends Seo_Controller
in package

Seo_Google_Controller.

Tags
subpackage

Seo

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

$instance  : mixed
The singleton instances.
$_oSeo_Site  : Site_Model
Seo site object
$_oSite  : Site_Model
Site object
$_token  : string
Token
addCurrentSite()  : id|null
Add current site
addSite()  : string|null
Add site into Google Search
execute()  : bool
Execute
getColor()  : string
Get color
getHostId()  : id|null
Get host id
getIcon()  : string
Get icon
getRatingName()  : string
Get rating name
getSiteList()  : array<string|int, mixed>
Get user sites list
getSitePopularPages()  : array<string|int, mixed>
Get site popular pages
getSitePopularQueries()  : array<string|int, mixed>
Get site popular queries
getTokenUrl()  : string
Get token url
instance()  : object
Register an existing instance as a singleton.
setQuery()  : array<string|int, mixed>
Query data with filters and parameters.
setSeoSite()  : self
Set seo site
setSite()  : self
Set site
setToken()  : self
Set token
verification()  : true|null
Verification
_getDriverName()  : srting
Get full driver name

Properties

$instance

The singleton instances.

public static mixed $instance = array()

Methods

addCurrentSite()

Add current site

public addCurrentSite() : id|null
Return values
id|null

addSite()

Add site into Google Search

public addSite(string $host_url) : string|null
Parameters
$host_url : string

domain url

Return values
string|null

execute()

Execute

public execute() : bool
Return values
bool

getColor()

Get color

public getColor() : string
Return values
string

getHostId()

Get host id

public getHostId() : id|null
Return values
id|null

getIcon()

Get icon

public getIcon() : string
Return values
string

getRatingName()

Get rating name

public getRatingName() : string
Return values
string

getSiteList()

Get user sites list

public getSiteList() : array<string|int, mixed>
Return values
array<string|int, mixed>

getSitePopularPages()

Get site popular pages

public getSitePopularPages(string $host_id) : array<string|int, mixed>
Parameters
$host_id : string

domain url

Return values
array<string|int, mixed>

getSitePopularQueries()

Get site popular queries

public getSitePopularQueries(string $host_id) : array<string|int, mixed>
Parameters
$host_id : string

domain url

Return values
array<string|int, mixed>

getTokenUrl()

Get token url

public getTokenUrl() : string
Return values
string

instance()

Register an existing instance as a singleton.

public static instance(string $name) : object
Parameters
$name : string

driver's name

Return values
object

setQuery()

Query data with filters and parameters.

public setQuery(string $host_url, string $dimensions, string $start_date, string $end_date[, int $row_limit = 1000 ]) : array<string|int, mixed>
Parameters
$host_url : string

domain url

$dimensions : string

dimensions to group results

$start_date : string

start date of the requested date range

$end_date : string

end date of the requested date range

$row_limit : int = 1000

the maximum number of rows to return

Return values
array<string|int, mixed>

setSite()

Set site

public setSite(string $oSite) : self
Parameters
$oSite : string

Site Model

Return values
self

setToken()

Set token

public setToken(string $token) : self
Parameters
$token : string

token

Return values
self

verification()

Verification

public verification(int $host_url) : true|null
Parameters
$host_url : int

site url

Return values
true|null

_getDriverName()

Get full driver name

protected static _getDriverName(string $driver) : srting
Parameters
$driver : string

driver name

Return values
srting

Search results