Seo_Controller_Google
extends Seo_Controller
in package
Seo_Google_Controller.
Tags
Table of Contents
Properties
- $instance : mixed
- The singleton instances.
- $_oSeo_Site : Site_Model
- Seo site object
- $_oSite : Site_Model
- Site object
- $_token : string
- Token
Methods
- 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()
$_oSeo_Site
Seo site object
protected
Site_Model
$_oSeo_Site
= \NULL
$_oSite
Site object
protected
Site_Model
$_oSite
= \NULL
$_token
Token
protected
string
$_token
= \NULL
Methods
addCurrentSite()
Add current site
public
addCurrentSite() : id|null
Return values
id|nulladdSite()
Add site into Google Search
public
addSite(string $host_url) : string|null
Parameters
- $host_url : string
-
domain url
Return values
string|nullexecute()
Execute
public
execute() : bool
Return values
boolgetColor()
Get color
public
getColor() : string
Return values
stringgetHostId()
Get host id
public
getHostId() : id|null
Return values
id|nullgetIcon()
Get icon
public
getIcon() : string
Return values
stringgetRatingName()
Get rating name
public
getRatingName() : string
Return values
stringgetSiteList()
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
stringinstance()
Register an existing instance as a singleton.
public
static instance(string $name) : object
Parameters
- $name : string
-
driver's name
Return values
objectsetQuery()
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>setSeoSite()
Set seo site
public
setSeoSite(Seo_Site_Model $oSeo_Site) : self
Parameters
- $oSeo_Site : Seo_Site_Model
Return values
selfsetSite()
Set site
public
setSite(string $oSite) : self
Parameters
- $oSite : string
-
Site Model
Return values
selfsetToken()
Set token
public
setToken(string $token) : self
Parameters
- $token : string
-
token
Return values
selfverification()
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