<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.6 |
+ | 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
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
*/
/**
- * Page for displaying list of Gender
+ * Page for displaying list of Gender.
*/
class CRM_Campaign_Page_SurveyType extends CRM_Core_Page_Basic {
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
*/
protected $_gName;
* The option group name in display format (capitalized, without underscores...etc)
*
* @var array
- * @static
*/
protected $_GName;
/**
- * The option group id
+ * The option group id.
*
* @var array
- * @static
*/
protected $_gid = NULL;
/**
* Obtains the group name from url and sets the title.
- *
- * @return void
- *
*/
public function preProcess() {
$this->_gName = 'activity_type';
}
/**
- * Get BAO Name
+ * Get BAO Name.
*
- * @return string Classname of BAO.
+ * @return string
+ * Classname of BAO.
*/
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
*/
public function &links() {
if (!(self::$_links)) {
/**
* Run the basic page (run essentially starts execution for that page).
- *
- * @return void
*/
public function run() {
$this->preProcess();
}
/**
- * Browse all options
- *
- *
- * @return void
- * @static
+ * Browse all options.
*/
public function browse() {
$campaingCompId = CRM_Core_Component::getComponentID('CiviCampaign');
- $groupParams = array('name' => $this->_gName);
- $optionValues = CRM_Core_OptionValue::getRows($groupParams, $this->links(), 'component_id,weight');
+ $groupParams = array('name' => $this->_gName);
+ $optionValues = CRM_Core_OptionValue::getRows($groupParams, $this->links(), 'component_id,weight');
foreach ($optionValues as $key => $optionValue) {
if (CRM_Utils_Array::value('component_id', $optionValue) != $campaingCompId) {
}
/**
- * Get name of edit form
+ * Get name of edit form.
*
- * @return string Classname of edit form.
+ * @return string
+ * Classname of edit form.
*/
public function editForm() {
return 'CRM_Campaign_Form_SurveyType';
}
/**
- * Get edit form name
+ * Get edit form name.
*
- * @return string name of this page.
+ * @return string
+ * name of this page.
*/
public function editName() {
return $this->_GName;
*
* @param null $mode
*
- * @return string user context.
+ * @return string
+ * user context.
*/
public function userContext($mode = NULL) {
return 'civicrm/admin/campaign/surveyType';
}
/**
- * Get userContext params
+ * Get userContext params.
*
- * @param int $mode mode that we are in
+ * @param int $mode
+ * Mode that we are in.
*
* @return string
*/
public function userContextParams($mode = NULL) {
return 'reset=1';
}
+
}