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));
return $this->label;
}
+ /**
+ * Get name.
+ *
+ * @return string
+ */
public function getName() {
return $this->name;
}
return $tables;
}
+ /**
+ * Move IDs.
+ *
+ * @param string $fromTable
+ * @param string $toTable
+ * @param int $limit
+ */
public function moveIDs($fromTable, $toTable, $limit) {
$sql = "
INSERT INTO {$toTable}
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;
}
return TRUE;
}
+ /**
+ * Set enabled components.
+ *
+ * @param array $enabledComponents
+ */
public static function setEnabledComponents($enabledComponents) {
$config = CRM_Core_Config::singleton();
$components = CRM_Core_Component::getComponents();
/**
* Builds the quickform for this search
* @param $form
- * @return
*/
public function buildForm(&$form);
$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();
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());
CRM_Utils_System::civiExit();
}
+ /**
+ * Return smarty-generated API Documentation.
+ *
+ * @return string
+ */
public static function APIDoc() {
CRM_Utils_System::setTitle("API Parameters");
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;