class CRM_Core_Form_Tag

This class generates form element for free tag widget.

Properties

$_entityTagValues

Methods

static 
buildQuickForm(CRM_Core_Form $form, string $parentNames, string $entityTable, int $entityId = NULL, bool $skipTagCreate = FALSE, bool $skipEntityAction = FALSE, string $tagsetElementName = NULL)

Build tag widget if correct parent is passed

static 
postProcess(array $params, int $entityId, string $entityTable = 'civicrm_contact', CRM_Core_Form $form = NULL)

Save entity tags when it is not save used AJAX.

Details

at line 58
static buildQuickForm(CRM_Core_Form $form, string $parentNames, string $entityTable, int $entityId = NULL, bool $skipTagCreate = FALSE, bool $skipEntityAction = FALSE, string $tagsetElementName = NULL)

Build tag widget if correct parent is passed

Parameters

CRM_Core_Form $form Form object.
string $parentNames Parent name ( tag name).
string $entityTable Entitytable 'eg: civicrm_contact'.
int $entityId Entityid 'eg: contact id'.
bool $skipTagCreate True if tag need be created using ajax.
bool $skipEntityAction True if need to add entry in entry table via ajax.
string $tagsetElementName If you need to create tagsetlist with specific name.

at line 130
static postProcess(array $params, int $entityId, string $entityTable = 'civicrm_contact', CRM_Core_Form $form = NULL)

Save entity tags when it is not save used AJAX.

Parameters

array $params
int $entityId Entity id, eg: contact id, activity id, case id, file id.
string $entityTable Entity table.
CRM_Core_Form $form Form object.