3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
19 * This class provides the functionality to map the address for group of contacts.
21 class CRM_Contact_Form_Task_Map_Event
extends CRM_Contact_Form_Task_Map
{
24 * Build all the data structures needed to build the form.
26 public function preProcess() {
27 $ids = CRM_Utils_Request
::retrieve('eid', 'Positive',
30 $lid = CRM_Utils_Request
::retrieve('lid', 'Positive',
34 self
::createMapXML($ids, $lid, $this, TRUE, $type);
35 $this->assign('single', FALSE);
36 $this->assign('skipLocationType', TRUE);
37 $is_public = CRM_Core_DAO
::getFieldValue('CRM_Event_DAO_Event', $ids, 'is_public');
38 if ($is_public == 0) {
39 CRM_Utils_System
::addHTMLHead('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
44 * Use the form name to create the tpl file name.
48 public function getTemplateFileName() {
49 return 'CRM/Contact/Form/Task/Map.tpl';