/**
  * getLabel
  *
  * If it meets a group start like `{group1`, then it sets an sets a flag,
  * and later, till the end on the last open group, doesn't output
  * anything, but saves the XML element object to $GLOBALS['variablefield'].
  * Only when the last open group is closed, like `group1}`, then the class knows
  * the XML structure - which fields are inside the group.
  * After we have the whole picture of the group structure, we output
  * group once or several times - depending on the values in the
  * strating group field `{group1` value.
  * So we need to get the whole group structure and then to clone it
  * as many times as we need.
  *
  * This function determines either to store current field and sets some flags,
  * or Either outside the group OR at the stage of outputting it shows normal label.
  *
  * @author Gruz <*****@*****.**>
  * @param	type	$name	Description
  * @return	type			Description
  */
 function __construct($form = null)
 {
     parent::__construct($form);
     // Add CSS and JS once, define base global flag - runc only once
     $this->langShortCode = null;
     //is used for building joomfish links
     $this->default_lang = JComponentHelper::getParams('com_languages')->get('site');
     $language = JFactory::getLanguage();
     $language->load('lib_gjfields', __DIR__, 'en-GB', true);
     $language->load('lib_gjfields', __DIR__, $this->default_lang, true);
 }