<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
$this->_customSearchID,
$this->_customSearchClass,
$formValues
- ) = CRM_Contact_BAO_SearchCustom::details($csID, $ssID, $gID);
+ ) = CRM_Contact_BAO_SearchCustom::details($csID, $ssID, $gID);
if (!$this->_customSearchID) {
CRM_Core_Error::fatal('Could not get details for custom search.');
}
// set breadcrumb to return to Custom Search listings page
- $breadCrumb = array(array('title' => ts('Custom Searches'),
+ $breadCrumb = array(
+ array(
+ 'title' => ts('Custom Searches'),
'url' => CRM_Utils_System::url('civicrm/contact/search/custom/list',
'reset=1'
),
- ));
+ ),
+ );
CRM_Utils_System::appendBreadCrumb($breadCrumb);
// use the custom selector
parent::preProcess();
// instantiate the new class
- $this->_customClass = new $this->_customSearchClass( $this->_formValues );
+ $this->_customClass = new $this->_customSearchClass($this->_formValues);
// CRM-12747
if (isset($this->_customClass->_permissionedComponent) &&
- !self::isPermissioned($this->_customClass->_permissionedComponent)) {
+ !self::isPermissioned($this->_customClass->_permissionedComponent)
+ ) {
CRM_Utils_System::permissionDenied();
}
}
*
* access public
*
- * @return array reference to the array of default values
- *
+ * @return array
+ * reference to the array of default values
*/
/**
* @return array
*/
- function setDefaultValues() {
+ public function setDefaultValues() {
if (method_exists($this->_customSearchClass, 'setDefaultValues')) {
return $this->_customClass->setDefaultValues();
}
return $this->_formValues;
}
- function buildQuickForm() {
+ public function buildQuickForm() {
$this->_customClass->buildForm($this);
parent::buildQuickForm();
* Use the form name to create the tpl file name
*
* @return string
- * @access public
*/
/**
* @return string
*/
- function getTemplateFileName() {
+ public function getTemplateFileName() {
$ext = CRM_Extension_System::singleton()->getMapper();
return $fileName ? $fileName : parent::getTemplateFileName();
}
- function postProcess() {
+ public function postProcess() {
$this->set('isAdvanced', '3');
$this->set('isCustom', '1');
* Return a descriptive name for the page, used in wizard header
*
* @return string
- * @access public
*/
/**
* @return string
*
* @return bool
*/
- function isPermissioned($components) {
+ public function isPermissioned($components) {
if (empty($components)) {
return TRUE;
}