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