Manager
Manage mainpage site and pages
Table of Contents
Methods
- __construct() : mixed
- Manager constructor.
- createDefaultSocialGroupForPublication() : void
- createDemoPage() : int|null
- getConnectedPageId() : int|null
- Return id of Mainpage landing
- getConnectedSiteId() : int|null
- Return ID of special site for Mainpage
- getPageTitle() : string|null
- If page connected - get page title. Else - empty string.
- getPreviewImg() : string|null
- If page connected - get src to preview image. Else - empty string.
- isAvailable() : bool
- isExistDefaultSocialGroupForPublication() : bool
- isReady() : bool
- Check is Mainpage site is fully created, add all pages etc
- isUseDemoData() : bool
- Check is widgets must use demo data instead real data
- markEndCreation() : void
- Mark is Mainpage site is fully created, add all pages etc.
- markStartCreation() : void
- Mark is Mainpage site start creating.
Methods
__construct()
Manager constructor.
public
__construct() : mixed
createDefaultSocialGroupForPublication()
public
createDefaultSocialGroupForPublication() : void
createDemoPage()
public
createDemoPage() : int|null
Return values
int|nullgetConnectedPageId()
Return id of Mainpage landing
public
getConnectedPageId() : int|null
Return values
int|nullgetConnectedSiteId()
Return ID of special site for Mainpage
public
getConnectedSiteId() : int|null
Return values
int|nullgetPageTitle()
If page connected - get page title. Else - empty string.
public
getPageTitle() : string|null
Return values
string|nullgetPreviewImg()
If page connected - get src to preview image. Else - empty string.
public
getPreviewImg() : string|null
Return values
string|nullisAvailable()
public
static isAvailable() : bool
Return values
boolisExistDefaultSocialGroupForPublication()
public
isExistDefaultSocialGroupForPublication() : bool
Return values
boolisReady()
Check is Mainpage site is fully created, add all pages etc
public
isReady() : bool
Return values
boolisUseDemoData()
Check is widgets must use demo data instead real data
public
static isUseDemoData() : bool
Return values
boolmarkEndCreation()
Mark is Mainpage site is fully created, add all pages etc.
public
markEndCreation() : void
Not created or check site or pages, just mark end of creating process.
markStartCreation()
Mark is Mainpage site start creating.
public
markStartCreation() : void
Not created or check site or pages, just mark start of creating process.