<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
* @param null
*
* @return void
- * @access public
*/
public function buildQuickForm() {
$session = CRM_Core_Session::singleton();
$buttons = array(
array(
'type' => 'upload',
- 'name' => ts('Continue >>'),
+ 'name' => ts('Continue'),
'spacing' => ' ',
'isDefault' => TRUE,
),
$session->replaceUserContext($url);
}
- function endPostProcess() {
+ public function endPostProcess() {
// make submit buttons keep the current working tab opened.
if ($this->_action & (CRM_Core_Action::UPDATE | CRM_Core_Action::ADD)) {
$tabTitle = $className = CRM_Utils_String::getClassName($this->_name);
if ($this->controller->getButtonName('submit') == "_qf_{$className}_upload_done") {
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=survey'));
}
- else if ($this->controller->getButtonName('submit') == "_qf_{$className}_upload_next") {
+ elseif ($this->controller->getButtonName('submit') == "_qf_{$className}_upload_next") {
$subPage = CRM_Campaign_Form_Survey_TabHeader::getNextTab($this);
CRM_Utils_System::redirect(CRM_Utils_System::url("civicrm/survey/configure/{$subPage}",
"action=update&reset=1&id={$this->_surveyId}"));
/**
* @return string
*/
- function getTemplateFileName() {
- if ($this->controller->getPrint() || $this->getVar('_surveyId') <= 0 ) {
+ public function getTemplateFileName() {
+ if ($this->controller->getPrint() || $this->getVar('_surveyId') <= 0) {
return parent::getTemplateFileName();
}
else {
}
}
}
-