CRM_Core_Block
class CRM_Core_Block
Defines a simple implementation of a drupal block.
Blocks definitions and html are in a smarty template file.
Constants
CREATE_NEW |
The following blocks are supported. |
RECENTLY_VIEWED |
The following blocks are supported. |
DASHBOARD |
The following blocks are supported. |
ADD |
The following blocks are supported. |
LANGSWITCH |
The following blocks are supported. |
EVENT |
The following blocks are supported. |
FULLTEXT_SEARCH |
The following blocks are supported. |
Properties
static | $_properties | Template file names for the above blocks. |
Methods
Class constructor.
Initialises the $_properties array
Returns the desired property from the $_properties array
Sets the desired property in the $_properties array
Returns the whole $_properties array.
Creates the info block for drupal.
Given an id creates a subject/content array
Given an id and a template, fetch the contents
Details
at line 63
__construct()
Class constructor.
at line 69
static
initProperties()
Initialises the $_properties array
at line 189
static string
getProperty(int $id, string $property)
Returns the desired property from the $_properties array
at line 206
static
setProperty(int $id, string $property, string $value)
Sets the desired property in the $_properties array
at line 219
static array
properties()
Returns the whole $_properties array.
at line 231
static array
getInfo()
Creates the info block for drupal.
at line 569
static array
getContent(int $id)
Given an id creates a subject/content array
at line 650
static array
fetch(int $id, string $fileName, array $properties)
Given an id and a template, fetch the contents