Documentation

CRM_Core_ShowHideBlocks
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

Table of Contents

Properties

$_hide  : array<string|int, mixed>
The array of ids of blocks that will be hidden.
$_show  : array<string|int, mixed>
The array of ids of blocks that will be shown.

Methods

__construct()  : CRM_Core_ShowHideBlocks
Class constructor.
addHide()  : mixed
Add a value to the hide array.
addShow()  : mixed
Add a value to the show array.
addToTemplate()  : mixed
Add the values from this class to the template.

Properties

$_hide

The array of ids of blocks that will be hidden.

protected array<string|int, mixed> $_hide

$_show

The array of ids of blocks that will be shown.

protected array<string|int, mixed> $_show

Methods

__construct()

Class constructor.

public __construct([array<string|int, mixed>|null $show = NULL ][, array<string|int, mixed>|null $hide = NULL ]) : CRM_Core_ShowHideBlocks
Parameters
$show : array<string|int, mixed>|null = NULL

Initial value of show array.

$hide : array<string|int, mixed>|null = NULL

Initial value of hide array.

Return values
CRM_Core_ShowHideBlocks

the newly created object

addHide()

Add a value to the hide array.

public addHide(string $name) : mixed
Parameters
$name : string

Id to be added.

addShow()

Add a value to the show array.

public addShow(string $name) : mixed
Parameters
$name : string

Id to be added.

addToTemplate()

Add the values from this class to the template.

public addToTemplate() : mixed

        
On this page

Search results