/**
  * Class constructor.
  *
  * @param string $title
  *   Title of the page.
  * @param int $mode
  *   Mode of the page.
  *
  */
 public function __construct($title = NULL, $mode = NULL)
 {
     parent::__construct($title, $mode);
     $this->account_id = CRM_Utils_Request::retrieve('account_id', 'Integer', CRM_Core_DAO::$_nullObject, true);
     $this->assign('account_id', $this->account_id);
     $this->assign('civicrm_fields', CRM_Myemma_Utils::buildCiviCRMFieldList());
     $this->assign('location_types', CRM_Myemma_Utils::locationTypes());
     $this->assign('my_emma_fields', CRM_Myemma_Utils::buildMyEmmaFieldList($this->account_id));
 }
 public function locationTypes()
 {
     return CRM_Myemma_Utils::locationTypes();
 }