Commit b896fa44 authored by Eileen McNaughton's avatar Eileen McNaughton

a few comment fixes

parent d1c14698
...@@ -372,6 +372,11 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page { ...@@ -372,6 +372,11 @@ class CRM_Campaign_Page_DashBoard extends CRM_Core_Page {
return $surveysData; return $surveysData;
} }
/**
* Browse petitions.
*
* @return mixed|null
*/
public function browsePetition() { public function browsePetition() {
// ensure valid javascript - this must have a value set // ensure valid javascript - this must have a value set
$this->assign('searchParams', json_encode(NULL)); $this->assign('searchParams', json_encode(NULL));
......
...@@ -64,6 +64,11 @@ abstract class CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery { ...@@ -64,6 +64,11 @@ abstract class CRM_Contact_Form_Search_Custom_FullText_AbstractPartialQuery {
return $this->label; return $this->label;
} }
/**
* Get name.
*
* @return string
*/
public function getName() { public function getName() {
return $this->name; return $this->name;
} }
......
...@@ -112,6 +112,13 @@ WHERE ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n ...@@ -112,6 +112,13 @@ WHERE ({$this->matchText('civicrm_contact c', array('sort_name', 'display_n
return $tables; return $tables;
} }
/**
* Move IDs.
*
* @param string $fromTable
* @param string $toTable
* @param int $limit
*/
public function moveIDs($fromTable, $toTable, $limit) { public function moveIDs($fromTable, $toTable, $limit) {
$sql = " $sql = "
INSERT INTO {$toTable} INSERT INTO {$toTable}
......
...@@ -680,12 +680,19 @@ WHERE option_group_id = ( ...@@ -680,12 +680,19 @@ WHERE option_group_id = (
return TRUE; return TRUE;
} }
/**
* Disable specified component.
*
* @param string $componentName
*
* @return bool
*/
public static function disableComponent($componentName) { public static function disableComponent($componentName) {
$config = CRM_Core_Config::singleton(); $config = CRM_Core_Config::singleton();
if (!in_array($componentName, $config->enableComponents) || if (!in_array($componentName, $config->enableComponents) ||
!array_key_exists($componentName, CRM_Core_Component::getComponents()) !array_key_exists($componentName, CRM_Core_Component::getComponents())
) { ) {
// post-condition satisified // Post-condition is satisfied.
return TRUE; return TRUE;
} }
...@@ -699,6 +706,11 @@ WHERE option_group_id = ( ...@@ -699,6 +706,11 @@ WHERE option_group_id = (
return TRUE; return TRUE;
} }
/**
* Set enabled components.
*
* @param array $enabledComponents
*/
public static function setEnabledComponents($enabledComponents) { public static function setEnabledComponents($enabledComponents) {
$config = CRM_Core_Config::singleton(); $config = CRM_Core_Config::singleton();
$components = CRM_Core_Component::getComponents(); $components = CRM_Core_Component::getComponents();
......
...@@ -44,7 +44,6 @@ interface CRM_Report_Interface { ...@@ -44,7 +44,6 @@ interface CRM_Report_Interface {
/** /**
* Builds the quickform for this search * Builds the quickform for this search
* @param $form * @param $form
* @return
*/ */
public function buildForm(&$form); public function buildForm(&$form);
......
...@@ -379,6 +379,15 @@ ALTER TABLE civicrm_dashboard ...@@ -379,6 +379,15 @@ ALTER TABLE civicrm_dashboard
$this->addTask(ts('Update saved search information'), 'changeSavedSearch'); $this->addTask(ts('Update saved search information'), 'changeSavedSearch');
} }
/**
* Upgrade image URLs.
*
* @param \CRM_Queue_TaskContext $ctx
* @param $startId
* @param $endId
*
* @return bool
*/
public static function upgradeImageUrls(CRM_Queue_TaskContext $ctx, $startId, $endId) { public static function upgradeImageUrls(CRM_Queue_TaskContext $ctx, $startId, $endId) {
$dao = self::findContactImageUrls($startId, $endId); $dao = self::findContactImageUrls($startId, $endId);
$failures = array(); $failures = array();
...@@ -408,6 +417,13 @@ ALTER TABLE civicrm_dashboard ...@@ -408,6 +417,13 @@ ALTER TABLE civicrm_dashboard
return TRUE; return TRUE;
} }
/**
* Change saved search.
*
* @param \CRM_Queue_TaskContext $ctx
*
* @return bool
*/
public static function changeSavedSearch(CRM_Queue_TaskContext $ctx) { public static function changeSavedSearch(CRM_Queue_TaskContext $ctx) {
$membershipStatuses = array_flip(CRM_Member_PseudoConstant::membershipStatus()); $membershipStatuses = array_flip(CRM_Member_PseudoConstant::membershipStatus());
......
...@@ -455,6 +455,11 @@ class CRM_Utils_REST { ...@@ -455,6 +455,11 @@ class CRM_Utils_REST {
CRM_Utils_System::civiExit(); CRM_Utils_System::civiExit();
} }
/**
* Return smarty-generated API Documentation.
*
* @return string
*/
public static function APIDoc() { public static function APIDoc() {
CRM_Utils_System::setTitle("API Parameters"); CRM_Utils_System::setTitle("API Parameters");
...@@ -583,6 +588,11 @@ class CRM_Utils_REST { ...@@ -583,6 +588,11 @@ class CRM_Utils_REST {
CRM_Utils_System::civiExit(); CRM_Utils_System::civiExit();
} }
/**
* Run ajax request.
*
* @return array
*/
public static function ajax() { public static function ajax() {
$requestParams = CRM_Utils_Request::exportValues(); $requestParams = CRM_Utils_Request::exportValues();
......
<?php <?php
namespace Civi\CiUtil\Command; namespace Civi\CiUtil\Command;
/**
* Class LsCommand
*
* @package Civi\CiUtil\Command
*/
class LsCommand { class LsCommand {
public static function main($argv) { public static function main($argv) {
$paths = $argv; $paths = $argv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment