CRM_Core_Region
class CRM_Core_Region
Maintain a set of markup/templates to inject inside various regions
Properties
string | $_name | Symbolic name of this region | |
array | $_snippets | List of snippets to inject within region. | |
bool | $_isSorted | Whether the snippets array has been sorted |
Methods
static CRM_Core_Region
instance(string $name, bool $autocreate = TRUE)
Obtain the content for a given region.
__construct(string $name)
No description
array
add(array $snippet)
Add a snippet of content to a region.
update(string $name, $snippet)
No description
mixed
get(string $name)
Get snippet.
string,
render(string $default, bool $allowCmsOverride = TRUE)
Render all the snippets in a region.
static int
_cmpSnippet($a, $b)
No description
Details
at line 17
static CRM_Core_Region
instance(string $name, bool $autocreate = TRUE)
Obtain the content for a given region.
at line 50
__construct(string $name)
at line 107
array
add(array $snippet)
Add a snippet of content to a region.
at line 137
update(string $name, $snippet)
at line 149
mixed
get(string $name)
Get snippet.
at line 162
string,
render(string $default, bool $allowCmsOverride = TRUE)
Render all the snippets in a region.