<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$customGroup = $this->get('customProfile');
$this->assign('customProfile', $customGroup);
- $this->assign('primaryParticipantProfile', $this->get('primaryParticipantProfile'));
- $this->assign('addParticipantProfile', $this->get('addParticipantProfile'));
+ CRM_Event_Form_Registration_Confirm::assignProfiles($this);
CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $this->_values['event']));
}
/**
* Function to build the form
*
- * @return None
+ * @return void
* @access public
*/
public function buildQuickForm() {
}
$this->assignToTemplate();
- if ($this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_Set', $this->_priceSetId, 'is_quick_config')) {
+ if ($this->_priceSetId && !CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', $this->_priceSetId, 'is_quick_config')) {
$lineItemForTemplate = array();
foreach ($this->_lineItem as $key => $value) {
if (!empty($value)) {
$this->setDefaults($defaults);
-
$params['entity_id'] = $this->_eventId;
$params['entity_table'] = 'civicrm_event';
$data = array();
CRM_Friend_BAO_Friend::retrieve($params, $data);
- if (CRM_Utils_Array::value('is_active', $data)) {
+ if (!empty($data['is_active'])) {
$friendText = $data['title'];
$this->assign('friendText', $friendText);
if ($this->_action & CRM_Core_Action::PREVIEW) {
$this->assign('isRequireApproval', $isRequireApproval);
// find pcp info
- $eventId = $this->_eventId;
$dao = new CRM_PCP_DAO_PCPBlock();
$dao->entity_table = 'civicrm_event';
- $dao->entity_id = $eventId;
+ $dao->entity_id = $this->_eventId;
$dao->is_active = 1;
$dao->find(TRUE);
if ($dao->id) {
- $this->assign('pcpLink', CRM_Utils_System::url('civicrm/contribute/campaign', 'action=add&reset=1&pageId=' . $eventId . '&component=event'));
+ $this->assign('pcpLink', CRM_Utils_System::url('civicrm/contribute/campaign', 'action=add&reset=1&pageId=' . $this->_eventId . '&component=event'));
$this->assign('pcpLinkText', $dao->link_text);
}
// Assign Participant Count to Lineitem Table
- $this->assign('pricesetFieldsCount', CRM_Price_BAO_Set::getPricesetCount($this->_priceSetId));
+ $this->assign('pricesetFieldsCount', CRM_Price_BAO_PriceSet::getPricesetCount($this->_priceSetId));
// can we blow away the session now to prevent hackery
$this->controller->reset();
*
* @access public
*
- * @return None
+ * @return void
*/
public function postProcess() {}
//end of function