<?php
-
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
public $useLivePageJS = TRUE;
/**
- * The action links that we need to display for the browse screen
+ * The action links that we need to display for the browse screen.
*
* @var array
- * @static
*/
static $_links = NULL;
/**
- * The option group name
+ * The option group name.
*
* @var array
- * @static
*/
static $_gName = NULL;
* The option group name in display format (capitalized, without underscores...etc)
*
* @var array
- * @static
*/
static $_GName = NULL;
/**
- * The option group id
+ * The option group id.
*
* @var array
- * @static
*/
static $_gId = NULL;
* Obtains the group name from url and sets the title.
*
* @return void
- * @access public
- *
*/
- function preProcess() {
+ public function preProcess() {
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
$this->_id = CRM_Utils_Request::retrieve('id', 'String', $this, FALSE);
}
/**
- * Get BAO Name
+ * Get BAO Name.
*
- * @return string Classname of BAO.
+ * @return string
+ * Classname of BAO.
*/
- function getBAOName() {
+ public function getBAOName() {
return 'CRM_Core_BAO_OptionValue';
}
/**
- * Get action Links
+ * Get action Links.
*
- * @return array (reference) of action links
+ * @return array
+ * (reference) of action links
*/
- function &links() {
+ public function &links() {
if (!(self::$_links)) {
self::$_links = array(
CRM_Core_Action::UPDATE => array(
*
* @return void
*/
- function run() {
+ public function run() {
$this->preProcess();
return parent::run();
}
/**
- * Browse all options
+ * Browse all options.
*
*
* @return void
- * @access public
- * @static
*/
- function browse() {
+ public function browse() {
$groupParams = array('name' => self::$_gName);
$optionValue = CRM_Core_OptionValue::getRows($groupParams, $this->links(), 'weight');
- $gName = self::$_gName;
- $returnURL = CRM_Utils_System::url("civicrm/admin/report/options/$gName",
+ $gName = self::$_gName;
+ $returnURL = CRM_Utils_System::url("civicrm/admin/report/options/$gName",
"reset=1"
);
$filter = "option_group_id = " . self::$_gId;
}
/**
- * Get name of edit form
+ * Get name of edit form.
*
- * @return string Classname of edit form.
+ * @return string
+ * Classname of edit form.
*/
- function editForm() {
+ public function editForm() {
return 'CRM_Report_Form_Register';
}
/**
- * Get edit form name
+ * Get edit form name.
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
- function editName() {
+ public function editName() {
return self::$_GName;
}
*
* @param null $mode
*
- * @return string user context.
+ * @return string
+ * user context.
*/
- function userContext($mode = NULL) {
+ public function userContext($mode = NULL) {
return 'civicrm/report/options/' . self::$_gName;
}
/**
- * Get userContext params
+ * Get userContext params.
*
- * @param int $mode mode that we are in
+ * @param int $mode
+ * Mode that we are in.
*
* @return string
- * @access public
*/
- function userContextParams($mode = NULL) {
+ public function userContextParams($mode = NULL) {
return 'reset=1&action=browse';
}
-}
+}