<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
}
/**
- * set variables up before form is built
+ * Set variables up before form is built
*
* @return void
- * @access public
*/
public function preProcess() {
if (CRM_Mailing_Info::workflowEnabled()) {
$this->redirectToListing();
}
-
// when user come from search context.
$this->_searchBasedMailing = CRM_Contact_Form_Search::isSearchContext($this->get('context'));
/**
* Set default values for the form.
*
- * @access public
*
* @return void
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
$defaults = array();
if ($this->_mailingID) {
$defaults['approval_status_id'] = $this->_mailing->approval_status_id;
* @param
*
* @return void
- * @access public
*/
public function buildQuickform() {
$title = ts('Approve/Reject Mailing') . " - {$this->_mailing->name}";
$this->addRadio('approval_status_id', ts('Approval Status'), $mailApprovalStatus, TRUE, NULL, TRUE);
$buttons = array(
- array('type' => 'next',
+ array(
+ 'type' => 'next',
'name' => ts('Save'),
'spacing' => ' ',
'isDefault' => TRUE,
* @param
*
* @return void
- * @access public
*/
public function postProcess() {
// get the submitted form values.
CRM_Mailing_BAO_Mailing::create($params, $ids);
-
//when user perform mailing from search context
//redirect it to search result CRM-3711
$ssID = $this->get('ssID');
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url('civicrm/mailing/browse/scheduled',
- 'reset=1&scheduled=true'
- ));
+ 'reset=1&scheduled=true'
+ ));
}
/**
* Display Name of the form
*
- * @access public
*
* @return string
*/
return ts('Approve/Reject Mailing');
}
}
-