class DeprecatedPageListGenerator extends PageListGenerator (View source)

deprecated Don't use! Create your own PageListGenerator class instead

Properties

protected Application $app from  PageListGenerator
private Site|null|false $site from  PageListGenerator
private Section[]|null $multilingualSections from  PageListGenerator
private bool|null $isMultilingualEnabled from  PageListGenerator
private Connection|null $connection from  PageListGenerator
private Dashboard|null $dashboardHelper from  PageListGenerator
private DateTime|null $now from  PageListGenerator
private PageKey|null|false $excludeFromSiteMapAttributeKey from  PageListGenerator
private PageKey|null|false $viewPagePermissionKey from  PageListGenerator
private Group|null|false $visitorsUserGroup from  PageListGenerator
private GroupEntity|null|false $visitorsUserGroupAccessEntity from  PageListGenerator
private callable|null $deprecatedChecker
private array|null $instances

Methods

__construct(Application $app)

Initialize the instance.

int
getApproximatePageCount()

Get the approximage numnber of pages that will be included in the sitemap (the actual value can be lower than it).

generatePageList()

Generate the list of pages that should be included in the sitemap.

bool
isMultilingualEnabled()

Check if the current site has more than one multilingual section.

Section|null
getMultilingualSectionForPage(Page $page)

Get the multilingual section where a page resides (if any).

getMultilingualSections()

Get the list of multilingual sections defined for the current site.

bool
canIncludePageInSitemap(Page $page)

Should a page be included in the sitemap?

Site|null
getSite()

Get the currently used site.

$this
setSite(Site $site)

Set the currently used site.

getNow()

No description

Group|null
getVisitorsUserGroup()

No description

int[]
getSiteTreesIDList()

No description

bool
isPageStandard(Page $page)

No description

bool
isPagePublished(Page $page)

No description

bool
isPageExcludedFromSitemap(Page $page)

No description

bool
isPageAccessible(Page $page)

No description

setDeprecatedChecker(callable $deprecatedChecker)

No description

array
getInstances()

No description

Details

__construct(Application $app)

Initialize the instance.

Parameters

Application $app

int getApproximatePageCount()

Get the approximage numnber of pages that will be included in the sitemap (the actual value can be lower than it).

Return Value

int

Page|Generator generatePageList()

Generate the list of pages that should be included in the sitemap.

Return Value

Page|Generator

bool isMultilingualEnabled()

Check if the current site has more than one multilingual section.

Return Value

bool

Section|null getMultilingualSectionForPage(Page $page)

Get the multilingual section where a page resides (if any).

Parameters

Page $page

Return Value

Section|null

Section[] getMultilingualSections()

Get the list of multilingual sections defined for the current site.

Return Value

Section[]

bool canIncludePageInSitemap(Page $page)

Should a page be included in the sitemap?

Parameters

Page $page

Return Value

bool

See also

PageListGenerator::canIncludePageInSitemap

Site|null getSite()

Get the currently used site.

Return Value

Site|null

$this setSite(Site $site)

Set the currently used site.

Parameters

Site $site

Return Value

$this

protected DateTime getNow()

No description

Return Value

DateTime

protected PageKey|null getExcludeFromSiteMapAttributeKey()

No description

Return Value

PageKey|null

protected PageKey|null getViewPagePermissionKey()

No description

Return Value

PageKey|null

protected Group|null getVisitorsUserGroup()

No description

Return Value

Group|null

protected GroupEntity|null getVisitorsUserGroupAccessEntity()

No description

Return Value

GroupEntity|null

protected Connection getConnection()

No description

Return Value

Connection

protected Dashboard getDashboardHelper()

No description

Return Value

Dashboard

protected int[] getSiteTreesIDList()

No description

Return Value

int[]

protected bool isPageStandard(Page $page)

No description

Parameters

Page $page

Return Value

bool

protected bool isPagePublished(Page $page)

No description

Parameters

Page $page

Return Value

bool

protected bool isPageExcludedFromSitemap(Page $page)

No description

Parameters

Page $page

Return Value

bool

protected bool isPageAccessible(Page $page)

No description

Parameters

Page $page

Return Value

bool

setDeprecatedChecker(callable $deprecatedChecker)

No description

Parameters

callable $deprecatedChecker

private array getInstances()

No description

Return Value

array