<?php
-
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
class CRM_Mailing_Page_Browse extends CRM_Core_Page {
/**
- * all the fields that are listings related
+ * All the fields that are listings related
*
* @var array
- * @access protected
*/
protected $_fields;
/**
- * the mailing id of the mailing we're operating on
+ * The mailing id of the mailing we're operating on
*
* @int
- * @access protected
*/
protected $_mailingId;
/**
- * the action that we are performing (in CRM_Core_Action terms)
+ * The action that we are performing (in CRM_Core_Action terms)
*
* @int
- * @access protected
*/
protected $_action;
public $_archived;
/**
- * scheduled mailing
+ * Scheduled mailing
*
* @boolean
- * @access public
*/
public $_scheduled;
* the contact and calls the appropriate type of page to view.
*
* @return void
- * @access public
- *
*/
- function preProcess() {
+ public function preProcess() {
$this->_unscheduled = $this->_archived = $archiveLinks = FALSE;
- $this->_mailingId = CRM_Utils_Request::retrieve('mid', 'Positive', $this);
- $this->_sms = CRM_Utils_Request::retrieve('sms', 'Positive', $this);
+ $this->_mailingId = CRM_Utils_Request::retrieve('mid', 'Positive', $this);
+ $this->_sms = CRM_Utils_Request::retrieve('sms', 'Positive', $this);
$this->assign('sms', $this->_sms);
// check that the user has permission to access mailing id
CRM_Mailing_BAO_Mailing::checkPermission($this->_mailingId);
}
/**
- * run this page (figure out the action needed and perform it).
+ * Run this page (figure out the action needed and perform it).
*
* @return void
*/
- function run() {
+ public function run() {
$this->preProcess();
$newArgs = func_get_args();
CRM_Mailing_BAO_MailingJob::runJobs_post();
}
- $this->_sortByCharacter =
- CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this);
-
+ $this->_sortByCharacter
+ = CRM_Utils_Request::retrieve('sortByCharacter', 'String', $this);
// CRM-11920 all should set sortByCharacter to null, not empty string
if (strtolower($this->_sortByCharacter) == 'all' || !empty($_POST)) {
- $this->_sortByCharacter = null;
- $this->set('sortByCharacter', null);
+ $this->_sortByCharacter = NULL;
+ $this->set('sortByCharacter', NULL);
}
if (CRM_Utils_Array::value(3, $newArgs) == 'unscheduled') {
CRM_Core_Selector_Controller::TEMPLATE
);
-
$controller->setEmbedded(TRUE);
$controller->run();
return parent::run();
}
- function search() {
- if ($this->_action &
- (CRM_Core_Action::ADD |
+ public function search() {
+ if ($this->_action & (CRM_Core_Action::ADD |
CRM_Core_Action::UPDATE
)
) {
*
* @return string
*/
- function whereClause(&$params, $sortBy = TRUE) {
+ public function whereClause(&$params, $sortBy = TRUE) {
$values = array();
$clauses = array();
return implode(' AND ', $clauses);
}
-}
+}