CRM_Core_ShowHideBlocks
class CRM_Core_ShowHideBlocks
Properties
static string | $_showIcon | The icons prefixed to block show and hide links. | |
static | $_hideIcon | ||
protected array | $_show | The array of ids of blocks that will be shown. | |
protected array | $_hide | The array of ids of blocks that will be hidden. |
Methods
__construct(array $show = NULL, array $hide = NULL)
Class constructor.
static
setIcons()
Load icon vars used in hide and show links.
addToTemplate()
Add the values from this class to the template.
addShow(string $name)
Add a value to the show array.
addHide(string $name)
Add a value to the hide array.
static string
linkHtml(string $name, string $href, string $text, string $js)
Create a well formatted html link from the smaller pieces.
static array
links(CRM_Core_Form $form, string $prefix, string $showLinkText, string $hideLinkText, bool $assign = TRUE)
Create links that we can use in the form.
linksForArray(CRM_Core_Form $form, int $index, int $maxIndex, string $prefix, string $showLinkText, string $hideLinkText, string $elementType = NULL, string $hideLink = NULL)
Create html link elements that we can use in the form.
Details
at line 67
CRM_Core_ShowHideBlocks
__construct(array $show = NULL, array $hide = NULL)
Class constructor.
at line 86
static
setIcons()
Load icon vars used in hide and show links.
at line 97
addToTemplate()
Add the values from this class to the template.
at line 129
addShow(string $name)
Add a value to the show array.
at line 142
addHide(string $name)
Add a value to the hide array.
at line 161
static string
linkHtml(string $name, string $href, string $text, string $js)
Create a well formatted html link from the smaller pieces.
at line 181
static array
links(CRM_Core_Form $form, string $prefix, string $showLinkText, string $hideLinkText, bool $assign = TRUE)
Create links that we can use in the form.
at line 218
linksForArray(CRM_Core_Form $form, int $index, int $maxIndex, string $prefix, string $showLinkText, string $hideLinkText, string $elementType = NULL, string $hideLink = NULL)
Create html link elements that we can use in the form.