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 array | $_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 64
__construct()
Class constructor.
at line 70
static
initProperties()
Initialises the $_properties array
at line 190
static string
getProperty(int $id, string $property)
Returns the desired property from the $_properties array
at line 207
static
setProperty(int $id, string $property, string $value)
Sets the desired property in the $_properties array
at line 220
static array
properties()
Returns the whole $_properties array.
at line 232
static array
getInfo()
Creates the info block for drupal.
at line 564
static array
getContent(int $id)
Given an id creates a subject/content array
at line 645
static array
fetch(int $id, string $fileName, array $properties)
Given an id and a template, fetch the contents