VisibilityAspect implements AspectInterface

Read onlyYes
FinalYes

The aspect contains whether to show hidden pages, records (content) or even deleted records.

Allowed properties:

  • includeHiddenPages
  • includeHiddenContent
  • includeDeletedRecords
  • includeScheduledRecords

Table of Contents

Interfaces

AspectInterface
Interface AspectInterface Think of an aspect like a property bag

Methods

__construct()  : mixed
create()  : VisibilityAspect
Creates an empty VisibilityAspect with all values set to false.
get()  : mixed
Fetch the values
includeDeletedRecords()  : bool
includeHidden()  : bool
includeHiddenContent()  : bool
includeHiddenPages()  : bool
includeScheduledRecords()  : bool
withIncludeDeletedRecords()  : VisibilityAspect
withIncludeHiddenContent()  : VisibilityAspect
withIncludeHiddenPages()  : VisibilityAspect
withIncludeScheduledRecords()  : VisibilityAspect

Methods

__construct()

public __construct([bool $includeHiddenPages = false ][, bool $includeHiddenContent = false ][, bool $includeDeletedRecords = false ][, bool $includeScheduledRecords = false ]) : mixed
Parameters
$includeHiddenPages : bool = false

whether to include hidden=1 in pages tables

$includeHiddenContent : bool = false

whether to include hidden=1 in tables except for pages

$includeDeletedRecords : bool = false

whether to include deleted=1 records (only for use in recycler)

$includeScheduledRecords : bool = false

whether to ignore access time in tables

create()

Creates an empty VisibilityAspect with all values set to false.

public static create() : VisibilityAspect

you should consider using the existing instance of VisibilityAspect from the Context instead of creating a new instance. only if you want to reset the VisibilityAspect you should use this method to create a new instance.

Return values
VisibilityAspect

includeDeletedRecords()

public includeDeletedRecords() : bool
Return values
bool

includeHidden()

public includeHidden() : bool
Return values
bool

includeHiddenContent()

public includeHiddenContent() : bool
Return values
bool

includeHiddenPages()

public includeHiddenPages() : bool
Return values
bool

includeScheduledRecords()

public includeScheduledRecords() : bool
Return values
bool
On this page

Search results