Service implements IService, IInternalService
Class Service
Table of Contents
Interfaces
Constants
- GROUP = 'leadads'
- TYPE_FACEBOOK = 'facebook'
- TYPE_VKONTAKTE = 'vkontakte'
Methods
- canUseAsInternal() : bool
- check if service can use as internal
- getAccount() : Account
- Get Account by type.
- getAuthAdapter() : AuthAdapter
- Get auth adapter.
- getAuthUrl() : string
- getEngineCode() : string
- Get engine code by type.
- getForm() : Form
- Get Form by type.
- getGroupAuth() : AuthAdapter
- Get group auth object.
- getInstance() : static
- Get instance.
- getMethodPrefix() : string
- get seoproxy method prefix
- getTypeByEngine() : string|null
- get type by engineCode
- getTypes() : array<string|int, mixed>
- Get type list.
- registerGroup() : bool
- Register group.
- unRegisterGroup() : bool
- UnRegister group.
Constants
GROUP
public
mixed
GROUP
= 'leadads'
TYPE_FACEBOOK
public
mixed
TYPE_FACEBOOK
= 'facebook'
TYPE_VKONTAKTE
public
mixed
TYPE_VKONTAKTE
= 'vkontakte'
Methods
canUseAsInternal()
check if service can use as internal
public
static canUseAsInternal() : bool
Tags
Return values
boolgetAccount()
Get Account by type.
public
getAccount(string $type) : Account
Parameters
- $type : string
-
Type
Return values
AccountgetAuthAdapter()
Get auth adapter.
public
static getAuthAdapter(string $type) : AuthAdapter
Parameters
- $type : string
-
Type
Return values
AuthAdaptergetAuthUrl()
public
getAuthUrl(mixed $type) : string
Parameters
- $type : mixed
Return values
stringgetEngineCode()
Get engine code by type.
public
static getEngineCode(string $type) : string
Parameters
- $type : string
-
Type
Return values
stringgetForm()
Get Form by type.
public
getForm(string $type) : Form
Parameters
- $type : string
-
Type
Return values
FormgetGroupAuth()
Get group auth object.
public
getGroupAuth(string $type) : AuthAdapter
Parameters
- $type : string
-
Type
Return values
AuthAdaptergetInstance()
Get instance.
public
static getInstance() : static
Return values
staticgetMethodPrefix()
get seoproxy method prefix
public
static getMethodPrefix() : string
Tags
Return values
stringgetTypeByEngine()
get type by engineCode
public
static getTypeByEngine(string $engineCode) : string|null
Parameters
- $engineCode : string
Tags
Return values
string|nullgetTypes()
Get type list.
public
static getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>registerGroup()
Register group.
public
static registerGroup(string $type, string $groupId) : bool
Parameters
- $type : string
-
Type.
- $groupId : string
-
Group ID.
Return values
boolunRegisterGroup()
UnRegister group.
public
static unRegisterGroup(string $type, string $groupId) : bool
Parameters
- $type : string
-
Type.
- $groupId : string
-
Group ID.