return in_array($groupID, $groups) ? TRUE : FALSE;
}
+
}
$acl->id = $aclId;
$acl->delete();
}
+
}
CRM_Core_DAO::singleValueQuery("TRUNCATE TABLE civicrm_acl_contact_cache");
}
}
+
}
$entityDAO->find(TRUE);
$entityDAO->delete();
}
+
}
CRM_ACL_BAO_EntityRole::create($params);
}
}
+
}
return $perms_array;
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/acl';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/acl/basic';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/acl/entityrole';
}
+
}
}
return $assigneeNames;
}
+
}
$link = array('activity_id' => 'civicrm_activity:id');
return $link;
}
+
}
return $targetNames;
}
+
}
return $properties;
}
+
}
public function selectorName() {
return $this->get('selectorName');
}
+
}
$className::endPostProcess($this, $params, $activity);
}
}
+
}
}
return $defaults;
}
+
}
$self->assign('suppressForm', TRUE);
}
+
}
public function getTitle() {
return ts('Find Activities');
}
+
}
CRM_Core_Session::setStatus("", ts("No Updates Saved"), "info");
}
}
+
}
CRM_Core_Session::setStatus($deletedActivities, ts('Deleted Activities'), "success");
CRM_Core_Session::setStatus("", ts('Total Selected Activities: %1', array(1 => count($this->_activityHolderIds))), "info");
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_EmailCommon::postProcess($this);
}
+
}
CRM_Core_Session::setStatus($filedActivities, ts("Filed Activities"), "success");
CRM_Core_Session::setStatus("", ts('Total Selected Activities: %1', array(1 => count($this->_activityHolderIds))), "info");
}
+
}
$this->set('contacts', $this->_contacts);
}
+
}
// also reset the batch page so it gets new values from the db
$this->controller->resetPage('Batch');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
CRM_Core_Session::setStatus($status, ts("Removed Tag <em>%1</em>", array(1 => $this->_tags[$key])), 'success', array('expires' => 0));
}
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_SMSCommon::postProcess($this);
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
public function getTitle() {
return ts('Upload Data');
}
+
}
// add all the necessary variables to the form
$parser->set($this);
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
echo CRM_Utils_JSON::encodeDataTableSelector($activities, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}
+
}
return parent::run();
}
+
}
parent::preProcess();
$this->listActivities();
}
+
}
return self::$_columnHeaders;
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Activity Search');
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
public function postProcess() {
CRM_Core_BAO_CMSUser::synchronize();
}
+
}
}
CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
}
+
}
array(1 => $navigation->label)
), ts('Saved'), 'success');
}
+
}
CRM_Core_Session::setStatus(ts('The Option Group \'%1\' has been saved.', array(1 => $optionGroup->name)), ts('Saved'), 'success');
}
}
+
}
CRM_Core_Session::setStatus(ts('The changes have not been saved.'), ts('Saved'), 'success');
}
}
+
}
);
CRM_Financial_BAO_FinancialTypeAccount::add($params);
}
+
}
}
CRM_Core_Session::setStatus($status);
}
+
}
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/tplstrings', "reset=1"));
}
+
}
$this->postProcessCommon();
}
+
}
parent::preProcess();
}
+
}
CRM_Core_BAO_Setting::setItem($settingName, 'CiviCRM Preferences', 'user_dashboard_options');
}
}
+
}
$this->postProcessCommon();
}
+
}
parent::preProcess();
}
+
}
parent::postProcess();
}
+
}
public function buildQuickForm() {
parent::buildQuickForm();
}
+
}
parent::preProcess();
}
+
}
array(1 => $params['name'])
), ts('Saved'), 'success');
}
+
}
}
CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
}
+
}
$configFile = $config->uploadDir . 'Config.IDS.ini';
@unlink($configFile);
}
+
}
parent::buildQuickForm();
}
+
}
parent::buildQuickForm();
}
+
}
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/setting/localization', 'reset=1'));
}
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
public function addRules() {
$this->addFormRule(array('CRM_Admin_Form_Setting_Mapping', 'formRule'));
}
+
}
parent::rebuildMenu();
}
+
}
parent::buildQuickForm();
}
+
}
}
return $this->_defaults;
}
+
}
parent::buildQuickForm();
}
+
}
parent::rebuildMenu();
}
+
}
parent::rebuildMenu();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/api/doc';
}
+
}
public function userContext() {
return 'civicrm/api/explorer';
}
+
}
}
return parent::run();
}
+
}
$this->_showHide->addToTemplate();
return parent::run();
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/options/subtype';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/eventTemplate';
}
+
}
}
return $extensionRow;
}
+
}
public static function onEnd(CRM_Queue_TaskContext $ctx) {
CRM_Core_Error::debug_log_message('CRM_Admin_Page_ExtensionsUpgrade: Finish upgrades');
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/job';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/job';
}
+
}
$this->assign('rows', $labelFormatList);
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/locationType';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/mailSettings';
}
+
}
$sort = 'mapping_type asc';
return parent::run($sort);
}
+
}
$this->assign('rows', $rows);
}
+
}
->addScriptFile('civicrm', 'packages/jquery/plugins/jstree/jquery.jstree.js', 0, 'html-header', FALSE)
->addStyleFile('civicrm', 'packages/jquery/plugins/jstree/themes/default/style.css', 0, 'html-header');
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/options' . (self::$_gName ? '/' . self::$_gName : '');
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/participant_status';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/paymentProcessor';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/paymentProcessorType';
}
+
}
$this->assign('rows', $pdfFormatList);
}
+
}
);
$this->assign('rows', $rows);
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/setting/preferences/date';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/reltype';
}
+
}
$this->assign('rows', $reminderList);
}
+
}
return parent::run();
}
+
}
$this->assign('rows', $values);
}
+
}
$eventBadgeClass = new CRM_Badge_BAO_Badge();
$eventBadgeClass->createLabels($rows, $layoutInfo);
}
+
}
static public function getDecodedData($jsonData) {
return json_decode($jsonData, TRUE);
}
+
}
CRM_Badge_BAO_Badge::buildBadges($params, $this);
}
+
}
list($w, $h) = CRM_Badge_BAO_Badge::getImageProperties($img);
CRM_Utils_JSON::output(array('width' => $w, 'height' => $h));
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/badgelayout';
}
+
}
$session->replaceUserContext(CRM_Utils_System::url('civicrm/batch/entry', "id={$batch->id}&reset=1"));
}
}
+
}
public function testProcessContribution($params) {
return $this->processContribution($params);
}
+
}
parent::buildQuickForm();
$this->assign('suppressForm', TRUE);
}
+
}
echo CRM_Utils_JSON::encodeDataTableSelector($batches, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}
+
}
$form->process();
$form->run();
}
+
}
}
$form->assign('campaignInfo', $campaignInfo);
}
+
}
);
$query->_tables[$tableName] = $query->_whereTables[$tableName] = 1;
}
+
}
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
$session->replaceUserContext(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=campaign'));
}
}
+
}
$this->assign('errorMessages', empty($errorMessages) ? FALSE : $errorMessages);
}
+
}
$session->replaceUserContext(CRM_Utils_System::url('civicrm/campaign', 'reset=1&subPage=petition'));
}
}
+
}
public function getTitle() {
return ts('Find Respondents');
}
+
}
$this->set('searchParams', $this->_searchParams);
$this->assign('searchParams', json_encode($this->_searchParams));
}
+
}
$this->set('searchParams', $this->_searchParams);
$this->assign('searchParams', json_encode($this->_searchParams));
}
+
}
$this->set('searchParams', $this->_searchParams);
$this->assign('searchParams', json_encode($this->_searchParams));
}
+
}
return 'CRM/Campaign/Form/Survey/Tab.tpl';
}
}
+
}
CRM_Core_Error::fatal(ts('Delete action is missing expected survey ID.'));
}
}
+
}
parent::endPostProcess();
}
+
}
parent::endPostProcess();
}
+
}
parent::endPostProcess();
}
+
}
$next = $next ? $next : 'main';
return $next;
}
+
}
CRM_Core_Session::setStatus(ts('The Survey type \'%1\' has been saved.', array(1 => $optionValue->label)), ts('Saved'), 'success');
}
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
CRM_Core_Session::setStatus(implode(' ', $status), '', 'info');
}
}
+
}
return $groupAdditions;
}
+
}
echo CRM_Utils_JSON::encodeDataTableSelector($searchRows, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}
+
}
return parent::run();
}
+
}
$allTabs['campaign']['class'] = 'livePage';
$this->assign('tabHeader', $allTabs);
}
+
}
return parent::run();
}
+
}
$bao = new CRM_Campaign_BAO_Petition();
$bao->confirmSignature($activity_id, $contact_id, $petition_id);
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
public function userContextParams($mode = NULL) {
return 'reset=1';
}
+
}
$this->assign('tabHeader', empty($allTabs) ? FALSE : $allTabs);
}
+
}
self::$$name = NULL;
}
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Respondent Search');
}
+
}
public function getTaskFormName() {
return CRM_Utils_String::getClassName($this->_task);
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
}
return $contents;
}
+
}
}
return CRM_Core_PseudoConstant::get($className, $fieldName, $params, $context);
}
+
}
*/
public static function searchAction(&$row, $id) {
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
// 3.status msg
$params['statusMsg'] = ts('Case Start Date changed successfully.');
}
+
}
// FIXME: does this do anything ?
$params['statusMsg'] = ts('Case Status changed successfully.');
}
+
}
// status msg
$params['statusMsg'] = ts('Case Type changed successfully.');
}
+
}
CRM_Case_BAO_Case::processCaseActivity($caseParams);
}
}
+
}
$activityStatus = CRM_Core_PseudoConstant::activityStatus();
$this->add('select', 'activity_change_status', ts('New Status'), $activityStatus);
}
+
}
$this->addEntityRef('file_on_case_target_contact_id', ts('With Contact(s)'), array('multiple' => TRUE));
$this->add('text', 'file_on_case_activity_subject', ts('Subject'), array('size' => 50));
}
+
}
// 6. set status
CRM_Core_Session::setStatus($params['statusMsg'], ts('Saved'), 'success');
}
+
}
$form->add('checkbox', 'activity_deleted', ts('Deleted Activities'), '', FALSE, array('id' => 'activity_deleted_' . $form->_caseID));
}
}
+
}
$transaction->commit();
}
+
}
);
CRM_Core_Session::singleton()->pushUserContext($url);
}
+
}
);
$this->set('report', $contents);
}
+
}
public function getTitle() {
return ts('Find Cases');
}
+
}
CRM_Core_Session::setStatus($deletedCases, ts('Deleted Cases'), 'success');
CRM_Core_Session::setStatus('', ts('Total Selected Case(s): %1', array(1 => count($this->_caseIds))), 'info');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
CRM_Core_Session::setStatus($restoredCases, ts('Restored Cases'), 'success');
CRM_Core_Session::setStatus('', ts('Total Selected Case(s): %1', array(1 => count($this->_caseIds))), 'info');
}
+
}
CRM_Utils_System::civiExit();
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
$session->pushUserContext($url);
}
}
+
}
self::$$name = NULL;
}
}
+
}
public function getExportFileName($output = 'csv') {
return ts('Case Search');
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
self::$activityTypes = NULL;
self::$relationshipTypes = NULL;
}
+
}
$xml = $this->retrieve("Settings");
return ( string ) $xml->NaturalActivityTypeSort ? 1 : 0;
}
+
}
echo $printReport;
CRM_Utils_System::civiExit();
}
+
}
}
return $this->_settings;
}
+
}
$obj->free();
return TRUE;
}
+
}
}
return $locations;
}
+
}
// we can skip saving new and return
unset($newValues['email']);
}
+
}
$smarty = CRM_Core_Smarty::singleton();
$templateString = $smarty->fetch("string:$templateString");
}
+
}
$query = "DELETE FROM {$customTable} WHERE entity_id = %1";
return CRM_Core_DAO::singleValueQuery($query, array(1 => array($entityID, 'Integer')));
}
+
}
return CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
}
+
}
return $containingGroups;
}
+
}
return CRM_Core_DAO::executeQuery($queryString, $params);
}
+
}
return array(CRM_Utils_Array::value($op, $qillOperators, $op), $fieldValue);
}
+
}
$obj->setAdvancedSearchPaneTemplatePath($paneTemplatePathArray, $type);
}
}
+
}
*/
public function alterSearchBuilderOptions(&$apiEntities, &$fieldOptions) {
}
+
}
$relationshipType->id = $relationshipTypeId;
return $relationshipType->delete();
}
+
}
return $savedSearch;
}
+
}
return array($from, $where);
}
+
}
$history->contact_id = $id;
$history->delete();
}
+
}
return $updateMembershipMsg;
}
+
}
// reset the group contact cache for this group
CRM_Contact_BAO_GroupContactCache::remove();
}
+
}
CRM_Utils_System::redirect($url);
}
+
}
CRM_Core_Session::setStatus(ts("The rule '%1' has been saved.", array(1 => $rgDao->title)), ts('Saved'), 'success');
}
+
}
$session = CRM_Core_Session::singleton();
$session->replaceUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));
}
+
}
$form->_addressRequireOmission = rtrim($requireOmission, ',');
}
}
+
}
return self::$greetings[$contactType];
}
+
}
public static function setDefaultValues(&$form, &$defaults) {
$defaults += CRM_Custom_Form_CustomData::setDefaultValues($form);
}
+
}
*/
public static function setDefaultValues(&$form, &$defaults) {
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
$form->addElement('radio', "im[$blockId][is_primary]", '', '', '1', $js);
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
$form->add('text', 'subject', ts('Subject'), array('size' => 60, 'maxlength' => 254));
$form->add('textarea', 'note', ts('Notes'), array('cols' => '60', 'rows' => '3'));
}
+
}
$form->addElement('radio', "openid[$blockId][is_primary]", '', '', '1', $js);
}
+
}
// add code to make sure that the uniqueness criteria is satisfied
return empty($errors) ? TRUE : $errors;
}
+
}
// TODO: set this up as a group, we need a valid phone_type_id if we have a phone number
// $form->addRule( "location[$locationId][phone][$locationId][phone]", ts('Phone number is not valid.'), 'phone' );
}
+
}
$form->addRule("website[$blockId][url]", ts('Enter a valid web location beginning with \'http://\' or \'https://\'. EXAMPLE: http://www.mysite.org/'), 'url');
}
+
}
CRM_Core_Session::setStatus(ts("Contact has been added to '%1'.", array(1 => $groups[$groupId])), ts('Added to Group'), 'success');
}
}
+
}
);
// Note: Post hooks will be called by CRM_Core_Form::mainProcess
}
+
}
$this->ajaxResponse['addressId'] = $address[0]->id;
$this->response();
}
+
}
$this->log();
$this->response();
}
+
}
$this->log();
$this->response();
}
+
}
$timestamps = CRM_Contact_BAO_Contact::getTimestamps($contactID);
return array('oplock_ts' => $timestamps['modified_date']);
}
+
}
$this->log();
$this->response();
}
+
}
$this->log();
$this->response();
}
+
}
$this->log();
$this->response();
}
+
}
$form->assign('generateAjaxRequest', $generateAjaxRequest);
$form->assign('ajaxRequestBlocks', $ajaxRequestBlocks);
}
+
}
CRM_Utils_System::redirect($url);
}
+
}
}
CRM_Core_Session::setStatus($message, ts('Contact Saved'), 'success');
}
+
}
public function getTitle() {
return ts('Search');
}
+
}
}
return $defaults;
}
+
}
public function getTitle() {
return ts('Find Contacts');
}
+
}
$form->add('hidden', 'hidden_CiviCase', 1);
CRM_Case_BAO_Query::buildSearchForm($form);
}
+
}
public function summary() {
return NULL;
}
+
}
public function getQueryObj() {
return NULL;
}
+
}
public function getQueryObj() {
return $this->_query;
}
+
}
CRM_Utils_System::setTitle(ts('Search'));
}
}
+
}
public function summary() {
return NULL;
}
+
}
CRM_Core_DAO::executeQuery($sql, CRM_Core_DAO::$_nullArray);
}
}
+
}
public function summary() {
return NULL;
}
+
}
CRM_Utils_System::setTitle(ts('Search'));
}
}
+
}
* $Id$
*
*/
-class CRM_Contact_Form_Search_Custom_Group
- extends CRM_Contact_Form_Search_Custom_Base
- implements CRM_Contact_Form_Search_Interface {
+class CRM_Contact_Form_Search_Custom_Group extends CRM_Contact_Form_Search_Custom_Base implements CRM_Contact_Form_Search_Interface {
protected $_formValues;
public function buildACLClause($tableAlias = 'contact') {
list($this->_aclFrom, $this->_aclWhere) = CRM_Contact_BAO_Contact_Permission::cacheClause($tableAlias);
}
+
}
public function setTitle($title) {
CRM_Utils_System::setTitle($title);
}
+
}
public function templateFile() {
return 'CRM/Contact/Form/Search/Custom.tpl';
}
+
}
CRM_Utils_System::setTitle(ts('Export Price Set Info for an Event'));
}
}
+
}
CRM_Utils_System::setTitle(ts('Search'));
}
}
+
}
// but let mysql clean up
return NULL;
}
+
}
CRM_Utils_System::setTitle(ts('Search'));
}
}
+
}
public function summary() {
return NULL;
}
+
}
CRM_Utils_System::setTitle(ts('Search'));
}
}
+
}
* Returns an array of column headers and field names and sort options
*/
public function &columns();
+
}
$householdsDAO->free();
}
}
+
}
->pushUserContext(CRM_Utils_System::url('civicrm/group/search', "reset=1&force=1&context=smog&gid=$groupID"));
}
}
+
}
$form->set('duplicateRelationship', NULL);
}
}
+
}
CRM_Core_Session::setStatus($status, $title, 'success');
}
}
+
}
$contactValues += $allParseValues;
}
}
+
}
$session->replaceUserContext(CRM_Utils_System::url($urlString, $urlParams));
}
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_EmailCommon::postProcess($this);
}
+
}
*/
public function postProcess() {
}
+
}
$pdf->Output($fileName, 'D');
}
-
}
$rows = array_merge($individuals, $households);
return $rows;
}
+
}
$page->assign_by_ref('center', $center);
$page->assign_by_ref('span', $span);
}
+
}
public function getTemplateFileName() {
return 'CRM/Contact/Form/Task/Map.tpl';
}
+
}
// redirect to merge page.
CRM_Utils_System::redirect($url);
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_PDFLetterCommon::postProcess($this);
}
+
}
}
$message = implode($newLineOperators['p']['oper'], $htmlMsg);
}
+
}
// also reset the batch page so it gets new values from the db
$this->controller->resetPage('Batch');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
$form->setDefaults($defaults);
return $defaults;
}
+
}
'count' => $removed,
)), 'success', array('expires' => 0));
}
+
}
CRM_Core_Session::setStatus($status, ts("Removed Tag <em>%1</em>", array(1 => $this->_tags[$key])), 'success', array('expires' => 0));
}
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_SMSCommon::postProcess($this);
}
+
}
CRM_Contact_BAO_GroupNestingCache::update();
}
}
+
}
CRM_Core_Session::setStatus(ts('Please select one or more contact for this action'), ts('No Contacts Selected'), 'error');
}
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
return CRM_Utils_Rule::email($this->_value);
}
}
+
}
public function getTitle() {
return ts('Choose Data Source');
}
+
}
return $formattedFieldNames;
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
}
return $incompleteImportTables;
}
+
}
}
CRM_Utils_System::civiExit();
}
+
}
return $allowToCreate;
}
+
}
echo CRM_Utils_JSON::encodeDataTableSelector($relationships, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}
+
}
$this->assign('action', $action);
return $this->browse();
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
$this->preProcess();
return parent::run();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/contact/dedupefind';
}
+
}
$rgDao->id = $id;
$rgDao->delete();
}
+
}
CRM_Core_Error::fatal('Photo does not exist');
}
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
// finally call parent
parent::run();
}
+
}
}
return self::$_links;
}
+
}
public function getTitle() {
return "Task Results";
}
+
}
$obj->assign('hookLinks', $hookLinks);
}
}
+
}
$this->browse();
return parent::run();
}
+
}
}
return parent::run();
}
+
}
CRM_Contact_BAO_GroupContact::removeContactsFromGroup($ids, $groupId, $method, $groupStatus);
}
+
}
return parent::run();
}
+
}
}
return self::$_commentLinks;
}
+
}
return parent::view();
}
+
}
}
return self::$_links;
}
+
}
}
return parent::getTemplateFileName();
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
);
return self::$_links;
}
+
}
$this->edit();
$this->browse();
}
+
}
return parent::run();
}
+
}
$vcard->send($filename . '.vcf', 'attachment', 'utf-8');
CRM_Utils_System::civiExit();
}
+
}
}
return $properties;
}
+
}
public function getQill() {
return $this->_object->getQILL();
}
+
}
unset($rValue['action']);
}
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
CRM_Utils_Array::value('result', self::$_tasks[$value]),
);
}
+
}
}
return $membershipBlocks['values'][0]['is_separate_payment'];
}
+
}
$form->assign('honorName', $honorName);
}
}
+
}
$premium->id = $productID;
$premium->delete();
}
+
}
}
return self::$productInfo;
}
+
}
'contribution_recur_failure_retry_date' => ts('Failed Recurring Contribution Retry Date'),
);
}
+
}
$this->addPages($this->_stateMachine, $action);
$this->addActions();
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
public function getID() {
return $this->id;
}
+
}
CRM_Core_Error::fatal($e->getMessage());
}
}
+
}
list($mailSent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
return $mailSent;
}
+
}
CRM_Contribute_BAO_ContributionRecur::deleteRecurContribution($paymentParams['contributionRecurID']);
}
}
+
}
}
$form->assign('paymentProcessorID', $form->_paymentProcessorID);
}
+
}
$form->assign('onBehalfOfFields', $profileFields);
$form->addElement('hidden', 'hidden_onbehalf_profile', 1);
}
+
}
// CRM-9491
$this->controller->reset();
}
+
}
$this->assign('hasOpenFlashChart', empty($chartData) ? FALSE : TRUE);
$this->assign('openFlashChartData', json_encode($chartData));
}
+
}
return 'CRM/Contribute/Form/ContributionPage/Tab.tpl';
}
}
+
}
public function getTitle() {
return ts('Add Premium to Contribution Page');
}
+
}
public function getTitle() {
return ts('Amounts');
}
+
}
}
return empty($errors) ? TRUE : $errors;
}
+
}
CRM_Core_Session::setStatus(ts("The contribution page '%1' has been deleted.", array(1 => $this->_title)), ts('Deleted'), 'success');
}
+
}
public function getTitle() {
return ts('Premiums');
}
+
}
public function getTitle() {
return ts('Title and Settings');
}
+
}
$current = $current ? $current : 'settings';
return $current;
}
+
}
public function getTitle() {
return ts('Thanks and Receipt');
}
+
}
public function getTitle() {
return ts('Widget Settings');
}
+
}
public function getTitle() {
return ts('Find Contributions');
}
+
}
CRM_Core_Session::setStatus(ts("No updates have been saved."), ts('Not Saved'), 'alert');
}
}
+
}
));
CRM_Core_Session::setStatus($status, '', 'info');
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_EmailCommon::postProcess($this);
}
+
}
$params = array('output' => 'pdf_invoice');
CRM_Contribute_Form_Task_Invoice::printPDF($contributionIDs, $params, $contactId, CRM_Core_DAO::$_nullObject);
}
+
}
return $pdfElements;
}
+
}
public function postProcess() {
CRM_Contribute_Form_Task_PDFLetterCommon::postProcess($this);
}
+
}
// also reset the batch page so it gets new values from the db
$this->controller->resetPage('Batch');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
"reset=1&task=billing&result={$result}"));
}
}
+
}
"reset=1&task=update&result=1"));
}
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
public function getTitle() {
return ts('Upload Data');
}
+
}
// add all the necessary variables to the form
$parser->set($this);
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
*/
public function fini() {
}
+
}
$shortCuts = array_merge($shortCuts, $shortCut);
}
}
+
}
return $formattedConfLinks;
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/contribute/managePremiums';
}
+
}
return parent::run();
}
+
}
public function userContext($mode = NULL) {
return CRM_Utils_System::currentPath();
}
+
}
return parent::run();
}
+
}
$session = CRM_Core_Session::singleton();
$session->pushUserContext($url);
}
+
}
parent::preProcess();
$this->listContribution();
}
+
}
}
return self::$batch;
}
+
}
public function getSummary() {
return $this->_query->summaryContribution($this->_context);
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
+
}
}
return ($l1 < $l2) ? -1 : 1;
}
+
}
$db_uf->query('/*!40101 SET NAMES utf8 */');
return $db_uf;
}
+
}
CRM_Core_DAO::executeQuery($sql);
}
}
+
}
'checksumTimeout',
);
}
+
}
// FIXME: Currently the only way to know if data is serialized is by looking at the html_type. It would be cleaner to decouple this.
return ($field['html_type'] == 'CheckBox' || strpos($field['html_type'], 'Multi') !== FALSE);
}
+
}
}
return $multipleGroup;
}
+
}
$this->_qill[$grouping][] = $label . ' - ' . implode(' ' . ts('and') . ' ', $qill);
}
}
+
}
$dashlet->delete();
return TRUE;
}
+
}
}
return $siteContacts;
}
+
}
public static function del($id) {
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Email', $id);
}
+
}
public static function del($id) {
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('IM', $id);
}
+
}
}
CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
}
+
}
}
return $elements;
}
+
}
$locationType->id = $locationTypeId;
$locationType->delete();
}
+
}
return array($sent, $subject, $text, $html);
}
+
}
self::del($contactNoteId->id, FALSE);
}
}
+
}
public static function del($id) {
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('OpenID', $id);
}
+
}
$optionGroup->find(TRUE);
return $optionGroup->name;
}
+
}
}
CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
}
+
}
}
CRM_Core_Error::fatal(ts('Invalid value passed to delete function.'));
}
+
}
return CRM_Utils_Array::value($name, $contextNameData[$context]);
}
}
+
}
CRM_Core_DAO::checkSqlFunctionsExist();
return CRM_Contact_BAO_Contact::deleteObjectWithPrimary('Phone', $id);
}
+
}
public static function del($id) {
CRM_Core_Error::fatal();
}
+
}
$params['rowCount1'] = $rowCount;
return $params;
}
+
}
}
return self::$_memberBatchEntryFields;
}
+
}
}
return array($first, $second, $firstActive, $secondActive);
}
+
}
}
return $ufValues[$ufID];
}
+
}
}
return $websites;
}
+
}
));
CRM_Core_BAO_WordReplacement::rebuild();
}
+
}
*/
public function __construct() {
}
+
}
return $template->fetch('CRM/Block/' . $fileName);
}
+
}
$this->config = $config;
$this->tables = $this->config->tables;
}
+
}
$template->run('schema_structure.tpl', $this->config->phpCodePath . "/CRM/Core/I18n/SchemaStructure.php");
}
+
}
* Perform the task.
*/
public function run();
+
}
$template->run('listAll.tpl', $this->config->CoreDAOCodePath . "AllCoreTables.php");
}
+
}
}
return 'CRM_Utils_Type::HUGE';
}
+
}
file_put_contents($this->config->sqlCodePath . "../tests/phpunit/CiviTest/truncate.xml", $truncate);
unset($truncate);
}
+
}
}
return $this->smarty;
}
+
}
$this->smarty->clear_all_assign();
$this->smarty->clear_all_cache();
}
+
}
$xml = simplexml_import_dom($dom);
return $xml;
}
+
}
return $components;
}
+
}
require_once str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
return new $className();
}
+
}
public static function isEnabledBackOfficeCreditCardPayments() {
return CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting(array('BackOffice'));
}
+
}
}
return $cachedProvinceLimit;
}
+
}
// end CRM_Core_Config
CRM_Utils_Hook::alterTemplateFile(get_class($this), $this, 'page', $pageTemplateFile);
return $pageTemplateFile;
}
+
}
public function __construct($message = NULL, $code = 0, Exception $previous = NULL) {
parent::__construct($message, $code, $previous);
}
+
}
/**
}
return FALSE;
}
+
}
$e = new PEAR_ErrorStack('CRM');
public function getErrorData() {
return $this->errorData;
}
+
}
* - xparent_id: int - business-entity to which file is attached (directly or indirectly)
*/
public function search($query, $limit = self::DEFAULT_SEARCH_LIMIT, $offset = self::DEFAULT_SEARCH_OFFSET);
+
}
$display = $field->getValue() !== NULL ? '' : ' style="visibility:hidden;"';
$el['html'] .= ' <a href="#" class="crm-hover-button crm-clear-link"' . $display . ' title="' . ts('Clear') . '"><span class="icon ui-icon-close"></span></a>';
}
+
}
$this->assign('ts_all_id', $allRowsRadio->_attributes['id']);
}
}
+
}
return $locales[$tsLocale];
}
+
}
/**
$query = CRM_Core_DAO::composeQuery($query, $params, TRUE);
$dao->query($query, FALSE);
}
+
}
public function ngettext($text, $plural, $count) {
return ngettext($text, $plural, $count);
}
+
}
public static function shortForLong($long) {
return substr($long, 0, 2);
}
+
}
}
CRM_Core_Error::fatal($msg);
}
+
}
public function getActive() {
return $this->isActive;
}
+
}
CRM_Core_DAO_AllCoreTables::reinitializeCache(TRUE);
CRM_Core_ManagedEntities::singleton(TRUE)->reconcile();
}
+
}
$message = $apiResult['is_error'] ? ', Error message: ' . $msg : " (" . $vals . ")";
return $status . $message;
}
+
}
/**
$sidebarLeft = $template->fetch('CRM/Block/blocks.tpl');
$template->assign_by_ref('sidebarLeft', $sidebarLeft);
}
+
}
// ensure that hash is a 32 digit hex number
return preg_match('#[0-9a-f]{32}#i', $hash) ? TRUE : FALSE;
}
+
}
$this->_hasLock = TRUE;
return TRUE;
}
+
}
));
throw new Exception('API error: ' . $result['error_message']);
}
+
}
self::$_cache = array();
CRM_Utils_Cache::singleton()->flush();
}
+
}
public function setVar($name, $value) {
$this->$name = $value;
}
+
}
}
CRM_Utils_System::civiExit();
}
+
}
CRM_Utils_JSON::output($result);
}
+
}
echo json_encode($result);
CRM_Utils_System::civiExit();
}
+
}
$controller->process();
$controller->run();
}
+
}
exit($smarty->fetch($file) . $extraoutput);
}
}
+
}
return array(NULL, NULL);
}
}
+
}
// Else default
return $this->_paymentProcessor['url_recur'];
}
+
}
$soft_contribution->save();
}
}
+
}
public function checkConfig() {
return NULL;
}
+
}
return $processorResponse;
}
+
}
return NULL;
}
}
+
}
// end class CRM_Core_Payment_FirstData
public static function getCreditCardExpirationYear($src) {
return CRM_Utils_Array::value('Y', $src['credit_card_exp_date']);
}
+
}
return NULL;
}
}
+
}
// end class CRM_Core_Payment_PayJunction
$input['net_amount'] = self::retrieve('settle_amount', 'Money', 'POST', FALSE);
$input['trxn_id'] = self::retrieve('txn_id', 'String', 'POST', FALSE);
}
+
}
//RESPMSG=Invalid Profile ID: Invalid recurring profile ID
//RT0000000001
}
+
}
CRM_Utils_System::redirect($request_string);
}
}
+
}
}
CRM_Core_Payment_Form::buildPaymentForm($form, $form->_paymentProcessor, empty($form->_isBillingAddressRequiredForPayLater));
}
+
}
CRM_Utils_Mail::send($params);
}
+
}
// end class CRM_Core_Payment_eWAY
'is_enabled'
) ? TRUE : FALSE;
}
+
}
CRM_Utils_Hook::permission($permissions);
return $permissions;
}
+
}
$_cache[$permissionName] = self::getContactEmails($uids);
return $_cache[$permissionName];
}
+
}
}
return $return_permissions;
}
+
}
}
return \Drupal::currentUser()->hasPermission($str);
}
+
}
->condition('permission', array_keys($permissions), 'NOT IN');
$query->execute();
}
+
}
public function checkGroupRole($array) {
return FALSE;
}
+
}
public function check($str) {
return TRUE;
}
+
}
public function whereClause($type, &$tables, &$whereTables) {
return '( 1 )';
}
+
}
public function upgradePermissions($permissions) {
return;
}
+
}
return self::$taxRates;
}
+
}
CRM_Utils_System::redirect($destination);
}
}
+
}
public function perform(&$page, $actionName) {
$this->_stateMachine->perform($page, $actionName, 'Back');
}
+
}
$this->popUserContext();
}
+
}
self::$_requiredTemplate = file_get_contents($templateDir . '/CRM/Form/label.tpl');
self::$_errorTemplate = file_get_contents($templateDir . '/CRM/Form/error.tpl');
}
+
}
// use Done when u want to pop back to the same context without a reset
$this->popUserContext();
}
+
}
CRM_Utils_System::redirect($url);
}
+
}
public function perform(&$page, $actionName) {
$this->_stateMachine->perform($page, $actionName, 'Next');
}
+
}
}
$this->popUserContext();
}
+
}
return $page->handle('jump');
}
+
}
return $page->handle('display');
}
+
}
return $page->handle('display');
}
}
+
}
return $state->handleNextState($page);
}
}
+
}
return parent::load($options, $param1, $param2, $param3, $param4);
}
}
+
}
'count' => CRM_Core_DAO::singleValueQuery($sql, $params),
);
}
+
}
* - 'count': int
*/
public function getReferenceCount($targetDao);
+
}
}
return $this->targetOptionGroupId;
}
+
}
public function __destruct() {
}
+
}
return $scheduleReminderFrequencyUnits;
}
+
}
* special characters to avoid various browser issues
*/
public function getExportFileName($type = 'csv');
+
}
public function getKey() {
return $this->_key;
}
+
}
public function getDynamicAction() {
return $this->_dynamicAction;
}
+
}
// helps proxies like varnish
return empty($_SESSION);
}
+
}
public function getType() {
return $this->_type;
}
+
}
return self::$info;
}
+
}
$GLOBALS['_PEAR_default_error_options'] = $frame['_PEAR_default_error_options'];
CRM_Core_Error::$modeException = $frame['modeException'];
}
+
}
$frame = \Civi\Core\Transaction\Manager::singleton()->getBaseFrame();
$frame->addCallback($phase, $callback, $params, $id);
}
+
}
return explode(CRM_Core_DAO::VALUE_SEPARATOR, trim($str, CRM_Core_DAO::VALUE_SEPARATOR));
}
}
+
}
$form->addElement('hidden', "hidden_custom_group_count[{$form->_groupID}]", $form->_groupCount);
CRM_Core_BAO_CustomGroup::buildQuickForm($form, $form->_groupTree);
}
+
}
CRM_Core_Session::setStatus(ts('The custom field \'%1\' has been deleted.', array(1 => $field->label)), '', 'success');
}
+
}
CRM_Core_BAO_CustomGroup::deleteGroup($group);
CRM_Core_Session::setStatus(ts("The Group '%1' has been deleted.", array(1 => $group->title)), '', 'success');
}
+
}
// Add data when in ajax contect
$this->ajaxResponse['customField'] = $customField->toArray();
}
+
}
3 => $srcUrl,
)), '', 'success');
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
public function getTitle() {
return ts('Upload Data');
}
+
}
// add all the necessary variables to the form
$parser->set($this);
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
$session = CRM_Core_Session::singleton();
$session->pushUserContext(CRM_Utils_System::url('civicrm/import/custom', 'reset=1'));
}
+
}
}
return $importableFields;
}
+
}
$controller->process();
$controller->run();
}
+
}
$this->assign('rows', $customGroup);
}
+
}
// Call the parents run method
return parent::run();
}
+
}
return parent::run();
}
+
}
}
return parent::run();
}
+
}
return parent::run();
}
+
}
}
return parent::run();
}
+
}
return "($strID1 < $strID2)";
}
}
+
}
AND " . self::internalFilters($rg);
return array("civicrm_contact.{$rg->name}.{$rg->threshold}" => $query);
}
+
}
"civicrm_contact.{$rg->name}.{$rg->threshold}" => $query,
);
}
+
}
return array("civicrm_contact.{$rg->name}.{$rg->threshold}" => $query);
}
+
}
return $exception->find(TRUE) ? FALSE : TRUE;
}
+
}
} // end of if relationshipTypeId
}
}
+
}
return CRM_Core_PseudoConstant::get(__CLASS__, $fieldName, $params, $context);
}
+
}
return array('is_error' => 0, 'messages' => $returnMessages);
}
+
}
$tables = array_merge(array('civicrm_participant' => 1), $tables);
}
}
+
}
}
$this->pdf->Output($this->event->title . '.pdf', 'D');
}
+
}
$this->pdf->SetFontSize(10);
$this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
}
+
}
$this->pdf->SetFontSize(15);
$this->pdf->MultiCell($this->pdf->width, 0, $participant['current_employer'], $this->border, "C", 0, 1, $x, $this->pdf->getY());
}
+
}
$this->writeOneSide($participant);
$this->pdf->StopTransform();
}
+
}
$this->pdf->Cell($this->pdf->width, $this->pdf->lineHeight, $participant['current_employer'], 0, 2, "C");
//$this->pdf->MultiCell ($this->pdf->width, $this->pdf->lineHeight, $txt,1,"L");
}
+
}
CRM_Core_DAO::executeQuery($sql, $params);
}
+
}
}
return $smarty_sessions;
}
+
}
return $this->event->parent_event_id == $parent_event_id;
}
}
+
}
public function get_form() {
return new CRM_Event_Cart_Form_MerParticipant($this);
}
+
}
$this->addActions();
}
}
+
}
$container = $this->controller->container();
return $container['values'][$page_name];
}
+
}
}
$this->cart->save();
}
+
}
}
$this->cart->save();
}
+
}
$this->loadCart();
//$this->loadParticipants( );
}
+
}
}
return $defaults;
}
+
}
return CRM_Utils_System::redirect($_SERVER['HTTP_REFERER']);
}
+
}
CRM_Utils_System::civiExit();
}
+
}
$transaction->commit();
return CRM_Utils_System::redirect($_SERVER['HTTP_REFERER']);
}
+
}
return parent::run();
}
+
}
$pages["CRM_Event_Cart_Form_Checkout_ThankYou"] = NULL;
$this->addSequentialPages($pages, $action);
}
+
}
// add all the actions
$this->addActions($uploadDir, $uploadNames);
}
+
}
$form->assign('outBound_option', $mailingInfo['outBound_option']);
$form->assign('hasPayment', $form->_paymentId);
}
+
}
CRM_UF_Page_ProfileEditor::registerProfileScripts();
CRM_UF_Page_ProfileEditor::registerSchemas(array('IndividualModel', 'ParticipantModel'));
}
+
}
public function getTitle() {
return ts('Conference Slots');
}
+
}
CRM_Core_Session::setStatus(ts("'%1' has been deleted.", array(1 => $this->_title)), ts('Event Deleted'), 'success');
}
}
+
}
public function getTitle() {
return ts('Event Fees');
}
+
}
public function getTitle() {
return ts('Event Location');
}
+
}
public function getTitle() {
return ts('Online Registration');
}
+
}
CRM_Core_BAO_RecurringEntity::$_entitiesToBeDeleted = $eventIdsWithNoRegistration;
return CRM_Core_BAO_RecurringEntity::$_entitiesToBeDeleted;
}
+
}
public function getTemplateFileName() {
return 'CRM/Admin/Page/ScheduleReminders.tpl';
}
+
}
$current = $current ? $current : 'settings';
return $current;
}
+
}
list($mailSent, $subject, $message, $html) = CRM_Core_BAO_MessageTemplate::sendTemplate($sendTemplateParams);
return $mailSent;
}
+
}
CRM_Core_Error::statusBounce(ts('Event ended on %1', array(1 => CRM_Utils_Date::customFormat(CRM_Utils_Array::value('event_end_date', $this->_values['event'])))), $redirect);
}
}
+
}
public function getTitle() {
return ts('Thank You Page');
}
+
}
public function getTitle() {
return ts('Find Participants');
}
+
}
'plural' => 'Added Contacts to %1',
)), 'success', array('expires' => 0));
}
+
}
$params = $this->controller->exportValues($this->_name);
CRM_Badge_BAO_Badge::buildBadges($params, $this);
}
+
}
return $updatedStatusId;
}
+
}
CRM_Event_BAO_Participant::create($value);
}
}
+
}
CRM_Core_Session::setStatus($text, '', 'info');
}
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_EmailCommon::postProcess($this);
}
+
}
parent::buildQuickForm();
}
+
}
// also reset the batch page so it gets new values from the db
$this->controller->resetPage('Batch');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
$session->replaceUserContext($url);
CRM_Utils_System::redirect($url);
}
+
}
}
$group = CRM_Contact_BAO_Group::create($params);
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
public function getTitle() {
return ts('Upload Data');
}
+
}
// add all the necessary variables to the form
$parser->set($this);
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
*/
public function fini() {
}
+
}
$shortCuts = array_merge($shortCuts, $shortCut);
}
}
+
}
}
CRM_Utils_JSON::output($results);
}
+
}
return parent::run();
}
+
}
}
return parent::getTemplateFileName();
}
+
}
}
CRM_Utils_System::civiExit();
}
+
}
$aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
$this->assign('aToZ', $aToZBar);
}
+
}
$participantListingClass->preProcess();
$participantListingClass->run();
}
+
}
parent::preProcess();
}
+
}
parent::preProcess();
}
+
}
return $sort->orderBy();
}
+
}
return $sort->orderBy();
}
+
}
$this->assign('accessContribution', FALSE);
}
}
+
}
parent::preProcess();
$this->listParticipations();
}
+
}
}
return self::$pcPage;
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Event Search');
}
+
}
$this->addSequentialPages($pages, $action);
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
}
return $componentPaymentFields;
}
+
}
public function getTitle() {
return ts('Select Fields to Export');
}
+
}
* Scan the container for available extensions.
*/
public function refresh();
+
}
throw new CRM_Extension_Exception_MissingException("Missing extension: $key");
}
}
+
}
$this->onPostInstall($oldInfo);
}
}
+
}
* @return mixed
*/
public function onPostReplace(CRM_Extension_Info $oldInfo, CRM_Extension_Info $newInfo);
+
}
public function onPreEnable(CRM_Extension_Info $info) {
$this->callHook($info, 'enable');
}
+
}
public function getCustomReportsById() {
return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
}
+
}
protected function getCustomSearchesById() {
return CRM_Core_OptionGroup::values(self::CUSTOM_SEARCH_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
}
+
}
$this->cache->delete($this->cacheKey . '/moduleFiles');
}
}
+
}
}
return $this->_repoUrl;
}
+
}
public function exportTRANS() {
}
+
}
);
return CRM_Core_DAO::singleValueQuery($query, $params);
}
+
}
}
return $financialType;
}
+
}
}
return self::$_links;
}
+
}
CRM_Batch_BAO_Batch::exportFinancialBatch($batchIds, $this->_exportFormat);
}
+
}
CRM_Batch_BAO_Batch::closeReOpen($batchIds, $_POST['batch_update']);
}
}
+
}
CRM_Utils_JSON::output($batchSummary);
}
+
}
$form->process();
$form->run();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/batchtransaction';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/financial/financialAccount';
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/financial/financialType';
}
+
}
$controller->process();
$controller->run();
}
+
}
CRM_Utils_System::setTitle($defaults['thankyou_title']);
$this->assign('thankYouText', $defaults['thankyou_text']);
}
+
}
public function getTitle() {
return ts('Tell a Friend');
}
+
}
public function getTitle() {
return ts('Tell a Friend');
}
+
}
$query = "SELECT count(*) FROM civicrm_grant WHERE civicrm_grant.contact_id = {$contactID} ";
return CRM_Core_DAO::singleValueQuery($query);
}
+
}
*/
public static function tableNames(&$tables) {
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
public function getTitle() {
return ts('Find Grants');
}
+
}
CRM_Core_Session::setStatus(ts('Deleted Grant(s): %1', array(1 => $deletedGrants)), '', 'info');
CRM_Core_Session::setStatus(ts('Total Selected Grant(s): %1', array(1 => count($this->_grantIds))), '', 'info');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
CRM_Core_Session::setStatus($status, '', 'info');
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/grant/search', 'force=1&qfKey=' . $qfKey));
}
+
}
return parent::run();
}
+
}
CRM_Utils_System::redirect($url);
}
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Grant Search');
}
+
}
public function getTaskFormName() {
return CRM_Utils_String::getClassName($this->_task);
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
public function selectorName() {
return $this->get('selectorName');
}
+
}
return $parentGroups;
}
+
}
CRM_Utils_System::civiExit();
}
}
+
}
$form->process();
$form->run();
}
+
}
public function getTaskFormName() {
return CRM_Utils_String::getClassName('CRM_Contact_Form_Task_AddToGroup');
}
+
}
* Process the form submission
*/
abstract public function postProcess(&$params, &$db, &$form);
+
}
return $result;
}
+
}
/**
$form->set('importTableName', $importJob->getTableName());
}
+
}
public function getTitle() {
return ts('Summary');
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
return array($titles, $values);
}
+
}
$this->assign('revertURL', CRM_Report_Utils_Report::getNextUrl($this->detail, "$q&revert=1", FALSE, TRUE));
$this->assign('revertConfirm', ts('Are you sure you want to revert all these changes?'));
}
+
}
$component->save();
return $component;
}
+
}
$params['version'] = 3;
return civicrm_api('MailingContact', 'getcount', $params);
}
+
}
$query->_tables['civicrm_mailing_recipients'] = $query->_whereTables['civicrm_mailing_recipients'] = 1;
$query->_tables[$tableName] = $query->_whereTables[$tableName] = 1;
}
+
}
$msg = preg_replace($pattern, $replacement, $msg);
}
+
}
* @var int
*/
public $mailThrottleTime = 0;
+
}
return $group->title;
}
+
}
CRM_Core_DAO::executeQuery($sql);
}
}
+
}
unset($errorScope);
}
}
+
}
CRM_Utils_System::setUFMessage(ts('We had a problem processing your subscription request for %1. You have tried to subscribe to a private group and/or we encountered a database error. Please contact the site administrator.', array(1 => $groupTitle)));
}
}
+
}
return array($displayName, $email);
}
+
}
public function getTitle() {
return ts('Approve/Reject Mailing');
}
+
}
CRM_Core_DAO::setFieldValue('CRM_Mailing_DAO_Mailing', $this->_mailingId, 'is_archived', TRUE);
}
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
$config = CRM_Core_Config::singleton();
$session->pushUserContext($config->userFrameworkBaseURL);
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
public function getTitle() {
return ts('Schedule or Send');
}
+
}
public function getTitle() {
return ts('Track and Respond');
}
+
}
CRM_Mailing_Event_BAO_Subscribe::commonSubscribe($groups, $params);
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
public function getTitle() {
return ts('Mailing Content');
}
+
}
*/
public function creatNewShortcut(&$shortCuts) {
}
+
}
}
return $dir . DIRECTORY_SEPARATOR . 'cur';
}
+
}
$this->_transport->copyMessages($nr, $this->_processed);
$this->_transport->delete($nr);
}
+
}
throw new Exception("Could not rename $file to $target");
}
}
+
}
throw new Exception("Could not rename $file to $target");
}
}
+
}
$parser->parseMail($set);
$this->_leftToProcess--;
}
+
}
$parser->parseMail($set);
$this->_transport->delete($nr);
}
+
}
echo CRM_Utils_JSON::encodeDataTableSelector($mailings, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
CRM_Utils_System::civiExit();
}
+
}
return implode(' AND ', $clauses);
}
+
}
return parent::run();
}
+
}
public function run($args = NULL, $pageArgs = NULL, $sort = NULL) {
return parent::run($args, $pageArgs, "component_type, is_default desc, name");
}
+
}
return parent::run();
}
+
}
return parent::run();
}
+
}
$this->_type = 'optout';
return parent::run();
}
+
}
}
CRM_Utils_System::civiExit();
}
+
}
return CRM_Core_Page::run();
}
+
}
$this->_type = 'resubscribe';
return parent::run();
}
+
}
$this->browse();
parent::run();
}
+
}
$this->_type = 'unsubscribe';
return parent::run();
}
+
}
self::$$name = NULL;
}
}
+
}
$aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_parent->_sortByCharacter, TRUE);
$this->_parent->assign('aToZ', $aToZBar);
}
+
}
public function getTitle() {
return $this->eventToTitle();
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Mailing Search');
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
}
return $cancelledMembershipIds;
}
+
}
$params = array(1 => array($contactID, 'Integer'));
CRM_Core_DAO::executeQuery($query, $params);
}
+
}
$membershipStatus->free();
return $statusIds;
}
+
}
AND cps.is_quick_config = 1 AND cps.name != 'default_membership_type_amount'";
CRM_Core_DAO::executeQuery($query, $queryParams);
}
+
}
$tables = array_merge(array('civicrm_membership' => 1), $tables);
}
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
$this->_contributorEmail = $this->_memberEmail;
}
}
+
}
public function getTitle() {
return ts('Memberships');
}
+
}
CRM_Core_Session::setStatus($statusMsg, ts('Complete'), 'success');
}
+
}
), ts('Saved'), 'success');
}
}
+
}
public function getTitle() {
return ts('Find Memberships');
}
+
}
CRM_Core_Session::setStatus(ts("No updates have been saved."), ts('Not Saved'), 'alert');
}
}
+
}
CRM_Core_Session::setStatus($deletedMembers, ts('Deleted Membership(s)'), 'success');
CRM_Core_Session::setStatus(ts('Total Selected Membership(s): %1', array(1 => count($this->_memberIds))), '', 'info');
}
+
}
public function postProcess() {
CRM_Contact_Form_Task_EmailCommon::postProcess($this);
}
+
}
CRM_Contact_Form_Task_LabelCommon::createLabel($labelRows, $labelName);
CRM_Utils_System::civiExit(1);
}
+
}
public function listTokens() {
return CRM_Core_SelectValues::membershipTokens();
}
+
}
// also reset the batch page so it gets new values from the db
$this->controller->resetPage('Batch');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions($config->uploadDir, array('uploadFile'));
}
+
}
public function getTitle() {
return ts('Upload Data');
}
+
}
// add all the necessary variables to the form
$parser->set($this);
}
+
}
$this->set('downloadMismatchRecordsUrl', CRM_Utils_System::url('civicrm/export', $urlParams));
}
}
+
}
$shortCuts = array_merge($shortCuts, $shortCut);
}
}
+
}
$details['auto_renew'] = CRM_Utils_Array::value('auto_renew', $options[$details]);
CRM_Utils_JSON::output($details);
}
+
}
return parent::run();
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/member/membershipStatus';
}
+
}
CRM_Member_BAO_MembershipType::convertDayFormat($membershipType);
$this->assign('rows', $membershipType);
}
+
}
public function getBAOName() {
return 'CRM_Member_BAO_Membership';
}
+
}
parent::preProcess();
$this->listMemberships();
}
+
}
self::$$name = NULL;
}
}
+
}
public function getExportFileName($output = 'csv') {
return ts('CiviCRM Member Search');
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
CRM_Core_Session::setStatus(ts('Your Note has been saved.'), ts('Saved'), 'success');
}
+
}
return $supporterProfileId;
}
}
+
}
$this->addActions();
}
}
+
}
$session->pushUserContext(CRM_Utils_System::url('civicrm/admin/pcp', 'reset=1'));
}
}
+
}
public function getTitle() {
return ts('Enable Personal Campaign Pages');
}
+
}
public function getTitle() {
return ts('Enable Personal Campaign Pages');
}
+
}
CRM_Contribute_BAO_Contribution_Utils::createCMSUser($params, $contactID, 'email');
}
+
}
$aToZBar = CRM_Utils_PagerAToZ::getAToZBar($dao, $this->_sortByCharacter, TRUE);
$this->assign('aToZ', $aToZBar);
}
+
}
}
return parent::getTemplateFileName();
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
$paymentStatus = CRM_Contribute_PseudoConstant::contributionStatus(NULL, 'name');
return array_diff(array_flip($paymentStatus), self::getNonTransactionalStatus());
}
+
}
$form->addElement('select', 'pledge_frequency_unit', NULL, $freqUnits);
}
}
+
}
$tables = array_merge(array('civicrm_pledge' => 1), $tables);
}
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
$statusMsg = ts('Pledge Payment Schedule has been updated.');
CRM_Core_Session::setStatus($statusMsg, ts('Saved'), 'success');
}
+
}
public function getTitle() {
return ts('Find Pledges');
}
+
}
));
CRM_Core_Session::setStatus($status, '', 'info');
}
+
}
public function postProcess() {
// redirect to the main search page after printing is over
}
+
}
echo json_encode($details);
CRM_Utils_System::civiExit();
}
+
}
return parent::run();
}
+
}
return $controller->run();
}
+
}
$session = CRM_Core_Session::singleton();
$session->pushUserContext($url);
}
+
}
parent::preProcess();
$this->listPledges();
}
+
}
public function getExportFileName($output = 'csv') {
return ts('Pledge Search');
}
+
}
public function shouldReset() {
return FALSE;
}
+
}
self::$_tasks[$value]['result'],
);
}
+
}
CRM_Core_DAO::executeQuery($sql, $params);
}
+
}
CRM_Core_Session::setStatus(ts('The Price Field \'%1\' has been deleted.', array(1 => $this->_title)), '', 'success');
}
}
+
}
), 'Unable to Delete', 'error');
}
}
+
}
$session->replaceUserContext(CRM_Utils_System::url('civicrm/admin/price/field', 'reset=1&action=browse&sid=' . $this->_sid));
}
}
+
}
CRM_Core_Session::setStatus(ts("The option '%1' has been saved.", array(1 => $params['label'])), ts('Value Saved'), 'success');
}
}
+
}
$session->replaceUserContext($url);
}
}
+
}
$controller->process();
$controller->run();
}
+
}
// Call the parents run method
return parent::run();
}
+
}
CRM_Utils_System::redirect(CRM_Utils_System::url(CRM_Utils_System::currentPath(), 'reset=1'));
}
+
}
$fileName = $this->checkTemplateFileExists('extra.');
return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
}
+
}
public function postProcess() {
parent::postProcess();
}
+
}
*/
public function postProcess() {
}
+
}
$fileName = $this->checkTemplateFileExists('extra.');
return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
}
+
}
$fileName = $this->checkTemplateFileExists('extra.');
return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
}
+
}
public function userContext($mode = NULL) {
return '';
}
+
}
$fileName = $this->checkTemplateFileExists('extra.');
return $fileName ? $fileName : parent::overrideExtraTemplateFileName();
}
+
}
= $multiRecordTableName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $customGroupId, 'table_name');
}
} //func close
+
+
}
$foundName = CRM_Core_DAO::singleValueQuery($checkTableSql);
return ($foundName == 'civicrm_queue_item');
}
+
}
}
CRM_Utils_JSON::output($response);
}
+
}
}
CRM_Utils_JSON::output($result);
}
+
}
* The item returned by claimItem.
*/
public abstract function releaseItem($item);
+
}
public function releaseItem($item) {
unset($this->releaseTimes[$item->id]);
}
+
}
CRM_Core_DAO::executeQuery($sql, $params);
$dao->free();
}
+
}
}
return $this->taskCtx;
}
+
}
$class = new ReflectionClass($this->getQueueClass($queueSpec['type']));
return $class->newInstance($queueSpec);
}
+
}
throw new Exception('Failed to call callback: ' . print_r($this->callback));
}
}
+
}
* @var Log
*/
public $log;
+
}
}
return array($contactIdClause, $join);
}
+
}
public function logDiffClause(&$reportObj, $table) {
return array();
}
+
}
'placeholder' => ts('- select -'),
);
}
+
}
$this->assign('sectionTotals', $totals);
}
}
+
}
$this->_aliases[$resTable] = $this->_columns[$resTable]['alias'];
}
}
+
}
);
return CRM_Core_DAO::singleValueQuery($query, $params);
}
+
}
$this->assign('backURL', CRM_Report_Utils_Report::getNextUrl('logging/contact/summary', 'reset=1', FALSE, TRUE));
}
}
+
}
LEFT JOIN civicrm_contact altered_by_contact_civireport
ON (entity_log_civireport.log_user_id = altered_by_contact_civireport.id)";
}
+
}
$lastKey = $rowNum;
}
}
+
}
// link back to summary report
$this->assign('backURL', CRM_Report_Utils_Report::getNextUrl('logging/contribute/summary', 'reset=1', FALSE, TRUE));
}
+
}
AND civicrm_option_group.name = 'contribution_status')
";
}
+
}
}
return parent::getOperationPair($type, $fieldName);
}
+
}
$lastKey = $rowNum;
}
}
+
}
$this->removeDuplicates($rows);
}
+
}
}
return parent::getOperationPair($type, $fieldName);
}
+
}
class CRM_Report_Form_Event extends CRM_Report_Form {
// Nothing here.
// FIXME: Do these reports really have nothing in common? Really?
+
+
}
parent::endPostProcess();
}
+
}
$paymentInstruments = CRM_Contribute_PseudoConstant::paymentInstrument();
return $paymentInstruments[$value];
}
+
}
$awardedGrants) * 100);
}
}
+
}
CRM_Utils_System::redirect(CRM_Utils_System::url("civicrm/report/instance/{$instance->id}", "reset=1"));
}
}
+
}
$lastKey = $rowNum;
}
}
+
}
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/report/options/report_template', "reset=1"));
}
}
+
}
*/
public function creatNewShortcut(&$shortCuts) {
}
+
}
* Returns an array of column headers and field names and sort options
*/
public function &columns();
+
}
}
return CRM_Utils_System::redirect($reportUrl);
}
+
}
}
return parent::run();
}
+
}
public function userContextParams($mode = NULL) {
return 'reset=1&action=browse';
}
+
}
}
return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/report/list', 'reset=1'));
}
+
}
return parent::run();
}
+
}
}
return $instanceDetails[$reportUrl];
}
+
}
}
return $providerInfo[$providerID];
}
+
}
return empty($errors) ? TRUE : $errors;
}
+
}
CRM_SMS_BAO_Provider::saveRecord($recData);
}
}
+
}
public function getTitle() {
return ts('Schedule or Send');
}
+
}
public function getTitle() {
return ts('SMS Content');
}
+
}
$provider->inbound();
}
}
+
}
public function userContext($mode = NULL) {
return 'civicrm/admin/sms/provider';
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
CRM_Core_Session::setStatus(ts('Your update(s) have been saved.'), ts('Saved'), 'success');
}
+
}
public function getTemplateFileName() {
return 'CRM/UF/Form/Preview.tpl';
}
+
}
$form->addGroup($proxOptions, 'is_proximity_search', ts('Proximity Search'));
}
+
}
}
return empty($errors) ? TRUE : $errors;
}
+
}
// update cms integration with registration / my account
CRM_Utils_System::updateCategories();
}
+
}
$isMultiple = array('is_multi' => $isMultiple);
CRM_Utils_JSON::output($isMultiple);
}
+
}
$controller->process();
$controller->run();
}
+
}
}
return $returnGroupTypes;
}
+
}
$config = CRM_Core_Config::singleton();
$this->addActions();
}
+
}
'message' => file_get_contents($postUpgradeMessageFile),
);
}
+
}
$upgrade = new CRM_Upgrade_Form();
$upgrade->processSQL($rev);
}
+
}
);
$queue->createItem($task, array('weight' => -1));
}
+
}
public function getTemplateMessage() {
return "Blah";
}
+
}
);
$queue->createItem($task, array('weight' => -1));
}
+
}
);
$queue->createItem($task, array('weight' => -1));
}
+
}
public function upgrade_4_0_alpha1($rev) {
// do nothing, db is already upgraded to 3.4.alpha1.
}
+
}
$upgrade = new CRM_Upgrade_Form();
$upgrade->processSQL($rev);
}
+
}
$upgrade->assign('alterContactDashboard', $alterContactDashboard);
$upgrade->processSQL($rev);
}
+
}
$upgrade->assign('addActivityTypeIndex', $addActivityTypeIndex);
$upgrade->processSQL($rev);
}
+
}
$content = $template->fetch('CRM/common/upgradeCleanup.tpl');
echo CRM_Utils_System::theme($content, FALSE, TRUE);
}
+
}
$content = $template->fetch('CRM/common/success.tpl');
echo CRM_Utils_System::theme($content, $this->_print, TRUE);
}
+
}
$error['_qf_default'] = ts("Please select at least one option from price set.");
}
}
+
}
$fieldValueDAO->id = $id;
return $fieldValueDAO->delete();
}
+
}
CRM_Core_DAO::executeQuery($query, $params);
}
+
}
public static function setIsQuickConfig($id, $isQuickConfig) {
return CRM_Core_DAO::setFieldValue('CRM_Upgrade_Snapshot_V4p2_Price_DAO_Set', $id, 'is_quick_config', $isQuickConfig);
}
+
}
$this->addSequentialPages($this->_pages, $action);
}
+
}
protected function isApiControlField($key) {
return (FALSE !== strpos($key, '.'));
}
+
}
$values = str_replace(array('<', '>'), array('<', '>'), $values);
}
}
+
}
);
return $returnKeys;
}
+
}
$newSequence = array_unique($newSequence);
return $newSequence;
}
+
}
$result['messages'] = implode("", $this->returnMessages);
return $result;
}
+
}
}
return _civicrm_api_get_entity_name_from_camel($shortName);
}
+
}
}
return $defaults;
}
+
}
unset($this->_cache);
$this->_cache = array();
}
+
}
* @return void
*/
public function flush();
+
}
public function flush() {
return $this->_cache->flush();
}
+
}
public function flush() {
return $this->_cache->flush();
}
+
}
public function flush() {
return FALSE;
}
+
}
unset($this->_cache);
$this->_cache = array();
}
+
}
public function prefetch() {
$this->frontCache = CRM_Core_BAO_Cache::getItems($this->group, $this->componentID);
}
+
}
'title' => $this->title,
);
}
+
}
list ($ignore, $heuristicSuffix) = explode($filePathMarker, str_replace('\\', '/', $targetDir));
return $heuristicBaseUrl . $filePathMarker . $heuristicSuffix;
}
+
}
throw new Exception("Call to unimplemented method: $name");
}
}
+
}
$values['geo_code_1'] = $values['geo_code_2'] = 'null';
return FALSE;
}
+
}
$values['geo_code_1'] = $values['geo_code_2'] = 'null';
return FALSE;
}
+
}
'civicrm_fileSearches'
);
}
+
}
// suppress all hok calls during soap
return NULL;
}
+
}
call_user_func_array($this->adhocHooks[$fnSuffix], $params);
}
}
+
}
}
return array_values($strings);
}
+
}
'cleanName' => $fileName,
);
}
+
}
$store->expunge();
}
}
+
}
CRM_Core_DAO::$_nullArray
);
}
+
}
}
return $prefix . "<$name>" . htmlentities($value) . "</$name>";
}
+
}
// print_r( json_decode( $json ) );
}
+
}
$this->_lookupCache[$dao->slave_id] = $dao->master_id;
}
}
+
}
);
return strtr($format, $replacements);
}
+
}
error_reporting($old_error_reporting);
return FALSE;
}
+
}
return $sign * $val;
}
}
+
}
return $openFlashChart;
}
+
}
return count($this->data);
}
-
}
CRM_Core_Error::statusBounce("PDFlib Error: " . $excp->get_errmsg());
}
}
+
}
private function formatLink($href, $title, $image) {
return sprintf('<a class="crm-pager-link action-item crm-hover-button" href="%s" title="%s">%s</a>', $href, $title, $image);
}
+
}
$aToZBar[] = array('item' => $url);
return $aToZBar;
}
+
}
}
CRM_Core_PseudoConstant::flush();
}
+
}
return self::error('ERROR: No CMS user associated with given api-key');
}
}
+
}
);
return $resp->is_valid;
}
+
}
$session = CRM_Core_Session::singleton();
$session->set(self::STORE_NAME, self::$_recent);
}
+
}
public static function qfKey($key) {
return ($key) ? CRM_Core_Key::valid($key) : FALSE;
}
+
}
// many times on certain admin pages; so instead we'll re-use the hash.
return $this->defaultSalt;
}
+
}
$params['version'] = 3;
return civicrm_api('contact', 'get', $params);
}
+
}
// however, as I understand we don't want equality here:
return -1;
}
+
}
public static function unstupifyUrl($htmlUrl) {
return str_replace('&', '&', $htmlUrl);
}
+
}
*/
public function appendCoreResources(&$list) {
}
+
}
public function flush() {
drupal_flush_all_caches();
}
+
}
public function flush() {
drupal_flush_all_caches();
}
+
}
public function getDefaultBlockLocation() {
return 'sidebar_first';
}
+
}
}
return $this->url($_GET['q']);
}
+
}
public function appendCoreResources(&$list) {
$list[] = 'js/crm.joomla.js';
}
+
}
public function getLoginURL($destination = '') {
throw new Exception("Method not implemented: getLoginURL");
}
+
}
// UGH. Obscure Drupal-specific implementation. Why does UnitTests extend Drupal?
// You should delete this function if the base-classes are properly rearranged.
}
+
}
return CRM_Core_Config::singleton()->userFrameworkBaseURL . "wp-admin/user-edit.php?user_id=" . $uid;
}
}
+
}
$rec->context = json_encode($context);
$rec->save();
}
+
}
$diff = strtotime($b) - strtotime($a);
return (abs($diff) <= $threshold);
}
+
}
public function display() {
print_r($this->tree);
}
+
}
return array("$slocal@$sdomain", "$rlocal@$rdomain");
}
+
}
'userContext' => $url,
));
}
+
}
$this->_controller->process();
return $this->_controller->run();
}
+
}
return "<embed>.......................</embed>" .
print_r(func_get_args(), 1);
}
+
}
public function isAuthorized() {
return $this->authorized;
}
+
}
public function getApiRequest() {
return $this->apiRequest;
}
+
}
public function getException() {
return $this->exception;
}
+
}
$this->apiRequest = $apiRequest;
return $this;
}
+
}
public function setApiRequest($apiRequest) {
$this->apiRequest = $apiRequest;
}
+
}
public function setResponse($response) {
$this->response = $response;
}
+
}
public function __construct($message, $extraParams = array(), \Exception $previous = NULL) {
parent::__construct($message, \API_Exception::NOT_IMPLEMENTED, $extraParams, $previous);
}
+
}
public function __construct($message, $extraParams = array(), \Exception $previous = NULL) {
parent::__construct($message, \API_Exception::UNAUTHORIZED, $extraParams, $previous);
}
+
}
$this->dispatcher = $dispatcher;
return $this;
}
+
}
public function matchesRequest($apiRequest) {
return $apiRequest['entity'] == $this->entity && $apiRequest['version'] == $this->version && isset($this->actions[strtolower($apiRequest['action'])]);
}
+
}
* @return array<string>
*/
public function getActionNames($version, $entity);
+
}
$entity = _civicrm_api_get_camel_name($entity, $version);
return isset($this->actions[$entity]) ? $this->actions[$entity] : $this->actions['*'];
}
+
}
}
return civicrm_api3_create_success(array());
}
+
}
}
return $required;
}
+
}
$event->stopPropagation();
}
}
+
}
unset($this->transactions[$apiRequest['id']]);
}
}
+
}
}
return $apiRequest['wrappers'];
}
+
}
$event->setResponse($result);
}
}
+
}
$this->activities = NULL;
$this->indices = array();
}
+
}
interface CaseChangeListener {
public function onCaseChange(\Civi\CCase\Event\CaseChangeEvent $event);
+
}
public function __construct($analyzer) {
$this->analyzer = $analyzer;
}
+
}
$listener->onCaseChange($event);
}
}
+
}
$r = civicrm_api3('Activity', 'create', $params);
$analyzer->flush();
}
+
}
printf("%s %s %s\n", $test['file'], $test['class'], $test['method']);
}
}
+
}
array_unshift($row, $test);
fputcsv($this->file, $row);
}
+
}
unlink($jsonFile);
return $results;
}
+
}
$this->id = $id;
$this->object = $object;
}
+
}
$this->id = $id;
$this->params = $params;
}
+
}
$this->request = $request;
$this->exception = $e;
}
+
}
$processor = civicrm_api3('payment_processor', 'get_single', array('name' => $name, 'is_test' => $is_test));
return self::getByProcessor($processor);
}
+
}
self::NOT_IMPLEMENTED => 'Entity or method is not implemented',
);
}
+
}
/**
public function getExtraParams() {
return $this->extraParams;
}
+
}
* modified $result
*/
public function toApiOutput($apiRequest, $result);
+
}
public function result() {
return $this->lastResult;
}
+
}
return self::csv();
}
}
+
}
// bootstrap the environment and run the processor
// that properly logs
print "$error\n";
}
+
}
/**
fclose($out);
echo "\n";
}
+
}
/**
$params['version'] = 3;
return $params;
}
+
}
/**
echo "\nline " . $this->row . ": created " . $this->_entity . " id: " . $result['id'] . "\n";
}
}
+
}
/**
echo "\nline " . $this->row . ": deleted\n";
}
}
+
}
$lock->release();
}
+
}
session_start();
}
}
}
+
}
$obj = new CRM_ParticipantProcessor();
echo "<br /><br />Number of respondents released = {$releasedCount}";
}
+
}
$obj = new CRM_RespondentProcessor();
CRM_Core_DAO::executeQuery($cacheFieldQuery);
}
}
+
}
$obj = new CRM_UpdateGreeting();
require_once 'CRM/Member/BAO/Membership.php';
CRM_Member_BAO_Membership::updateAllMembershipStatus();
}
+
}
$obj = new CRM_UpdateMembershipRecord();
CRM_Core_DAO::executeQuery($query);
}
+
}
$reminderDate = new CRM_UpdateMembershipReminderDate();
// end if ( $sendReminders )
echo "<br />{$updateCnt} records updated.";
}
+
}
$obj = new CRM_UpdatePledgeRecord();
require_once 'CRM/Core/BAO/ActionSchedule.php';
CRM_Core_BAO_ActionSchedule::processQueue($now);
}
+
}
$cron = new CRM_Cron_Action();
public function hasWarnings() {
return count($this->warnings);
}
+
}
/**
return $this->errors;
}
+
}
function civicrm_install_set_drupal_perms() {
public function checkConfig() {
}
+
}
WHERE log_action = 'Update' AND log_conn_id = %1 AND log_date = %2 ORDER BY log_date DESC LIMIT 1
";
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class AllTests
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Activity_AllTests
$assignees = CRM_Activity_BAO_ActivityAssignment::getAssigneeNames(array($activity['id']));
$this->assertEquals(count($assignees), 1, '1 assignee names retrieved');
}
+
}
$this->assertEquals(count($targetIDs), 1, 'One target ID match for activity');
$this->assertEquals($targetIDs[0], $activity['target_contact_id'], 'The returned target contacts ids match');
}
+
}
// This contact does not have any activities
$this->assertEquals(0, count($activities), 'In line ' . __LINE__);
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class AllTests
civicrm_api('OptionValue', 'Get', array('version' => 3, 'label' => 'OG', 'api.option_value.delete'));
civicrm_api('OptionValue', 'Get', array('version' => 3, 'label' => 'OG2', 'api.option_value.delete'));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
* function testGetRelatedCases() {
* }
*/
+
}
);
$this->assertEquals($expectedTypes, $caseTypes);
}
+
}
$this->assertEquals(2, $repo->getRelationshipReferenceCount('Second Role'));
$this->assertEquals(1, $repo->getRelationshipReferenceCount('Third Role'));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Contacts_AllTests
Contact::delete($contactId);
}
+
}
$result = civicrm_api('contact', 'get', $params, $defaults);
$this->assertEquals(empty($result['values']), TRUE, 'In line ' . __LINE__);
}
+
}
$this->assertEquals($updatedContact->contact_sub_type, 'null', 'In line ' . __LINE__);
CRM_Contact_BAO_Contact::deleteContact($contact->id);
}
+
}
$del = CRM_Contact_BAO_ContactType::del(NULL);
$this->assertEquals($del, FALSE, 'In line ' . __LINE__);
}
+
}
$this->assertEquals(empty($relationshipIds), FALSE, 'In line ' . __LINE__);
$this->relationshipTypeDelete($relType->id);
}
+
}
$this->assertEquals(1, count($resultChildContactIds), 'Check the count of returned values');
$this->assertEquals(array(), array_diff($validChildContactIds, $resultChildContactIds), 'Check that the difference between two arrays should be blank array');
}
+
}
CRM_Contact_BAO_GroupContactCache::load($group, TRUE);
}
}
+
}
public function valid() {
return isset($this->dataset[$this->i]);
}
+
}
// class CRM_Contact_BAO_QueryTestDataProvider
'In line ' . __LINE__
);
}
+
}
public function valid() {
return isset($this->dataset[$this->i]);
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Contribute_AllTests
$this->assertEquals($checkRecurring, FALSE, 'Check for false return.');
ContributionPage::delete($contributionpage->id);
}
+
}
// Delete Contact
Contact::delete($contactId);
}
+
}
$result = CRM_Financial_BAO_FinancialType::retrieve($params, $defaults);
$this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
}
+
}
$this->assertEquals(empty($result), TRUE, 'Verify product record deletion.');
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Core_AllTests
$this->assertNotContains('street_unit', $parsedStreetAddress);
$this->assertNotContains('street_number_suffix', $parsedStreetAddress);
}
+
}
Custom::deleteGroup($groups['A']);
Custom::deleteGroup($groups['B']);
}
+
}
$this->assertEquals($groupTitles[$customFieldId]['groupTitle'], 'Test Custom Group', 'Check Group Title.');
Custom::deleteGroup($customGroup);
}
+
}
Custom::deleteGroup($customGroup);
Contact::delete($contactID);
}
+
}
Custom::deleteGroup($customGroup);
Contact::delete($contactID);
}
+
}
Custom::deleteGroup($customGroup);
Contact::delete($contactID);
}
+
}
$result = CRM_Core_BAO_CustomValue::fixFieldValueOfTypeMemo($params);
$this->assertEquals($result, NULL, 'Checking the returned value of type Memo.');
}
+
}
Contact::delete($contactId);
}
+
}
$this->assertEquals($result, 10, 'Verify financial trxn total_amount.');
}
+
}
Contact::delete($contactId);
}
+
}
//cleanup DB by deleting the contact
Contact::delete($contactId);
}
+
}
$this->contactDelete($contactId);
$this->assertDBRowNotExist('CRM_Contact_DAO_Contact', $contactId);
}
+
}
*/
public function SKIPPED_testAllEntityPhones() {
}
+
}
$this->assertEquals($addressOptions['county'], 1, 'County was set but did not stick in db');
}
+
}
$compareActParams = array();
$this->assertDBCompareValues('CRM_Friend_DAO_Friend', $searchActParams, $compareActParams);
}
+
}
return $ufGroup->id;
}
+
}
->will($this->returnValue($response));
return $client;
}
+
}
$this->assertRegexp($pattern, file_get_contents($logFile));
}
}
+
}
public function supportsFts() {
return version_compare(CRM_Core_DAO::singleValueQuery('SELECT VERSION()'), '5.6.0', '>=');
}
+
}
$jobManager = new CRM_Core_JobManager();
$jobManager->execute(FALSE);
}
+
}
$this->assertTrue(NULL === $fooNew);
$this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_option_value WHERE name = "CRM_Example_One_Foo"');
}
+
}
$actual = CRM_Core_Menu::getArrayForPathArgs($inputString);
$this->assertEquals($expectedArray, $actual);
}
+
}
$actualUrl = CRM_Core_Page_Redirect::createUrl($parsedRequestPath, $parsedRequestArgs, $parsedPageArgs, FALSE);
$this->assertEquals($expectedUrl, $actualUrl);
}
+
}
'x_MD5_Hash' => 'EA7A3CD65A85757827F51212CA1486A8',
));
}
+
}
$result = $this->processor->cancelSubscription($message, array('subscriptionId' => $subscriptionID));
$this->assertTrue($result, 'Failed to cancel subscription with Authorize.');
}
+
}
$this->ids['pledge_payment'][] = $pledgePayment['id'];
}
+
}
public function getPaypalProRecurSubsequentTransaction() {
return array_merge($this->getPaypalProRecurTransaction(), array('txn_id' => 'secondone'));
}
+
}
$log = $this->callAPISuccess('SystemLog', 'get', array());
$this->assertEquals('payment_notification processor_name=Paypal', $log['values'][$log['id']]['message']);
}
+
}
));
$this->assertEquals($expected, $actual);
}
+
}
$provider = new $providerClass();
$this->assertEquals(TRUE, $provider->check(CRM_Core_Permission::ALWAYS_ALLOW_PERMISSION));
}
+
}
$actual = $perm->translateJoomlaPermission($input);
$this->assertEquals($expected, $actual);
}
+
}
));
$this->assertEquals(array_flip($byId), $result);
}
+
}
public function _postRollback($arg1, $arg2) {
$this->callbackLog[] = array('_postRollback', $arg1, $arg2);
}
+
}
Contact::delete($contactId);
}
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Event_AllTests
$this->assertEquals($participant['participant_status_id'], 14, 'Status record is not proper for participant');
$this->assertEquals($contribution->contribution_status_id, 8, 'Status record is not proper for contribution');
}
+
}
'id', $isActive, 'Check DB for is_Active value'
);
}
+
}
Contact::delete($this->_contactId);
Event::delete($eventId);
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Core_AllTests
$info = $browser->getExtension('test.crm.extension.browsertest.nonexistent');
$this->assertEquals(NULL, $info);
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// -- set Emacs parameters --
// Local variables:
$actualRelUrls = CRM_Extension_Container_Basic::convertPathsToUrls('\\', $relPaths);
$this->assertEquals($expectedRelUrls, $actualRelUrls);
}
+
}
$c = new CRM_Extension_Container_Collection($containers, $cache, $cacheKey);
return $c;
}
+
}
}
$this->assertTrue(is_object($exc));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Core_AllTests
$this->assertEquals(1, test_extension_manager_paymenttest::$counts['uninstall']);
$this->assertDBQuery(0, 'SELECT count(*) FROM civicrm_payment_processor_type WHERE class_name = "test.extension.manager.paymenttest"');
}
+
}
$this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.reporttest"');
$this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.reporttest" AND is_active = 1');
}
+
}
$this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.searchtest"');
$this->assertDBQuery(1, 'SELECT count(*) FROM civicrm_option_value WHERE name = "test.extension.manager.searchtest" AND is_active = 1');
}
+
}
file_put_contents("$basedir/$file.php", "<?php\n");
return $basedir;
}
+
}
$c = new CRM_Extension_Container_Basic($basedir . $appendPathGarbage, 'http://example/basedir' . $appendPathGarbage, $cache, $cacheKey);
return array($basedir, $c);
}
+
}
$accountingCode = CRM_Financial_BAO_FinancialAccount::getAccountingCode($financialType->id);
$this->assertEquals($accountingCode, 4800, 'Verify accounting code.');
}
+
}
);
$this->assertEquals($entityResult, $entityTrxn->amount, 'Verify Amount for Financial Item');
}
+
}
$this->assertEquals($financialAccountId, $financialAccount->id, 'Verify Payment Instrument');
}
+
}
$result = CRM_Financial_BAO_FinancialType::retrieve($params, $defaults);
$this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
}
+
}
$result = CRM_Financial_BAO_PaymentProcessorType::retrieve($params, $defaults);
$this->assertEquals(empty($result), TRUE, 'Verify financial types record deletion.');
}
+
}
$currentGroups = $groups;
}
}
+
}
$this->assertEquals($ids, $contacts, 'In line ' . __LINE__);
}
+
}
public function valid() {
return isset($this->dataset[$this->i]);
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Member_AllTests
$this->membershipDelete($membership->id);
$this->contactDelete($contactId);
}
+
}
$this->assertEquals(empty($result), FALSE, 'Verify membership status records is_current_member.');
}
+
}
$this->membershipDelete($membershipId);
Contact::delete($contactId);
}
+
}
$this->membershipTypeDelete(array('id' => $membershipType->id));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Member_Form_AllTests
// Should have found Current membership status
$this->assertTrue($rc, 'In line ' . __LINE__);
}
+
}
// class CRM_Member_Form_MembershipTest
$result = $this->callAPISuccess('membership', 'get', array());
$this->assertEquals(2, $result['count']);
}
+
}
*/
protected function tearDown() {
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Pledge_AllTests
$this->assertEquals($pledgeBlock->id, $retrievePledgeBlock->id);
$this->assertEquals($pledgeBlock->id, $getPledgeBlock['id']);
}
+
}
$date = CRM_Pledge_BAO_PledgePayment::calculateNextScheduledDate($params, 3, '20080510');
$this->assertEquals('20140510000000', $date);
}
+
}
$this->assertEquals(count($pledgeId), 1, "Pledge was retrieved");
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Queue_AllTests
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Queue_Queue_AllTests
$this->assertEquals('a', $item->data['test-key']);
$queue2->releaseItem($item);
}
+
}
$expectedOutputCsvArray = $this->getArrayFromCsv(dirname(__FILE__) . "/{$expectedOutputCsvFile}");
$this->assertCsvArraysEqual($expectedOutputCsvArray, $reportCsvArray);
}
+
}
$expectedOutputCsvArray = $this->getArrayFromCsv(dirname(__FILE__) . "/{$expectedOutputCsvFile}");
$this->assertCsvArraysEqual($expectedOutputCsvArray, $reportCsvArray);
}
+
}
$this->assertTrue(empty($schema['ActivityModel']['schema']['street_address']));
}
+
}
CRM_Utils_Array::remove($data, 'one', 'two', array('three', 'four'), 'five');
$this->assertEquals($data, array('six' => 6));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class CRM_Utils_Cache_AllTests
$this->assertEquals($fooValue, $c->get('foo')); // should work b/c value is fetched on demand
$this->assertEquals($fooValue, $c->getFromFrontCache('foo')); // should work b/c value was fetched on demand
}
+
}
$this->assertEquals(NULL, $_FOO['bang']);
$this->assertEquals(1, $_EXTRA);
}
+
}
$result
);
}
+
}
/* --- Library of test hook implementations --- */
"Text Output did not match for $html"
);
}
+
}
sort($actualStrings);
$this->assertEquals($expectedStrings, $actualStrings);
}
+
}
$this->assertEquals($result, $value['result'], 'Expected encoding does not match');
}
}
+
}
$this->assertEquals($expectValue, $customField[$expectKey]);
}
}
+
}
"assert createTruncatedValue($value, ($sigFigs,$decFigs)) == $expectedValue"
);
}
+
}
$actualText = $formatter->format($text, $language);
$this->assertEquals($expectedText, $actualText);
}
+
}
$actual = trim((preg_replace('/[ \r\n\t]+/', ' ', $actual)));
$this->assertEquals($expected, $actual, $message);
}
+
}
$actual = trim((preg_replace('/[ \r\n\t]+/', ' ', $actual)));
$this->assertEquals($expected, $actual, $message);
}
+
}
$this->assertTrue(TRUE, 'Validation yielded expected result');
}
}
+
}
$this->assertEquals('http://example.com/', CRM_Utils_System::evalUrl('http://example.com/'));
$this->assertEquals('http://example.com/?cms=UnitTests', CRM_Utils_System::evalUrl('http://example.com/?cms={uf}'));
}
+
}
$actual = CRM_Utils_Time::isEqual($timeB, $timeA, $threshold);
$this->assertEquals($expectedResult, $actual);
}
+
}
array('-10foo', 'Positive', NULL),
);
}
+
}
$this->assertTrue($zip->open($this->file));
$this->assertEquals($expectedResult, CRM_Utils_Zip::guessBaseDir($zip, $expectedKey));
}
+
}
}, 2 * Events::W_EARLY);
}
}
+
}
), TRUE));
$this->assertRegExp($expectedError, $result['error_message']);
}
+
}
1 => array($result['id'], 'Integer'),
));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class AllTests
public static function ag($array, $key) {
return $array[$key];
}
+
}
*/
public function hook_caseTypes(&$caseTypes) {
}
+
}
$this->_ut->assertNotEmpty($mail, 'Cannot parse mail');
return $mail[0];
}
+
}
$this->fail($msg);
}
}
+
}
// print_r(array($prefix, 'addTests' => $addTests, 'addAllTests' => $addAllTests, 'addTestSuites' => $addTestSuites));
}
+
}
require_once 'CRM/Contact/BAO/Contact.php';
return CRM_Contact_BAO_Contact::deleteContact($contactID);
}
+
}
$deleteCustomGroup = CRM_Core_BAO_CustomGroup::deleteGroup($params, TRUE);
return $deleteCustomGroup;
}
+
}
public static function delete($eventId) {
return CRM_Event_BAO_Event::del($eventId);
}
+
}
require_once 'CRM/Event/BAO/Participant.php';
return CRM_Event_BAO_Participant::deleteParticipant($participantId);
}
+
}
$expected = 'hello';
$this->assertEquals($result, $expected);
}
+
}
******/
return TRUE;
}
+
}
// class Utils
$this->assertElementNotContainsText("xpath=//form[@id='Advanced']/div[3]/div/div", "No matches found for");
$this->verifyText("xpath=//div[@class='crm-search-results']//table/tbody/tr[1]/td[8]", 'United States');
}
+
}
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody//tr/td[5]/a[text()='$contact']"));
}
}
+
}
$this->verifyText("xpath=//table/tbody/tr/td{$xpathPrefix}[text()='{$label}']/../following-sibling::td/span", preg_quote($value), 'In line ' . __LINE__);
}
}
+
}
$this->assertElementContainsText('customData', $radioOptionLabel1);
$this->assertElementContainsText('customData', $radioOptionLabel2);
}
+
}
$this->waitForText('crm-notification-container', "Custom field '$radioFieldLabel' has been saved.");
}
+
}
$this->assertEquals('1', $this->getSelectedValue('id=recipient'));
$this->assertChecked('is_active');
}
+
}
array_push($this->verificationErrors, $e->toString());
}
}
+
}
//assert success
$this->waitForText('crm-notification-container', "has been updated");
}
+
}
$this->waitForText('crm-notification-container', 'Label already exists in Database.');
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// verify Activity created
$this->verifyText("xpath=//form[@id='Activity']/div[2]/table/tbody/tr[5]/td[2]/span", $campaignTitle);
}
+
}
$pageUrl = array('url' => 'campaign/add', 'args' => 'reset=1');
$this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
}
+
}
$this->assertElementContainsText('mailing_event', "mailino$firstName@mailson.co.in");
//------end delivery verification---------
}
+
}
$this->webtestVerifyTabularData(array('Campaign' => $campaignTitle));
}
+
}
$this->offlineContributionTest($pastCampaignTitle, $campaignId, TRUE);
}
+
}
$this->waitForElementPresent("_qf_Participant_cancel-bottom");
$this->assertElementContainsText("xpath=//form[@id='Participant']/div[2]/div/table[@class='form-layout-compressed']/tbody/tr[4]/td[2]/select", "$campaignTitle");
}
+
}
$this->verifyText("xpath=//div[@class='crm-search-results']/table/tbody/tr[2]/td[$column]/", preg_quote($value));
}
}
+
}
// verify Activity created
$this->verifyText("xpath=//form[@id='PledgeView']//table/tbody/tr[8]/td[2]", preg_quote($campaignTitle));
}
+
}
preg_quote("$surveyTitle - Respondent Reservation")
);
}
+
}
return array($radioOptionLabel1, "custom_{$textFieldId}_-1");
}
+
}
$this->verifyText("xpath=//table[@class='caseSelector']/tbody//tr/td[3]/a", $firstName);
$this->verifyText("xpath=//table[@class='caseSelector']/tbody//tr/td[6]", $caseTypeLabel);
}
+
}
$this->verifyText("xpath=//table/tbody//tr/td[contains(text(),'$editCaseTypeLabel')]", $editCaseTypeLabel);
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertElementContainsText('crm-container', '1 Contact');
}
+
}
$this->clickLink("css=a.crm-case-summary-drilldown", "css=input.crm-form-submit");
$this->assertTrue($this->isChecked("name=case_owner value=2"), 'Drilldown on dashboard summary cells not properly setting search form value to my cases.');
}
+
}
$this->assertElementContainsText('css=.crm-search-results', 'Dumfries');
$this->assertElementContainsText('css=.crm-search-results', '1234');
}
+
}
$this->click('_qf_Participant_upload-bottom');
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}
$this->assertElementContainsText('DataTables_Table_0', 'Employee of');
$this->assertElementContainsText('DataTables_Table_0', 'Household Member of');
}
+
}
$this->assertElementContainsText('css=.msg-text', "Your information has been saved.");
}
+
}
return $_advance_search_panes;
}
+
}
$this->waitForText('crm-notification-container', "{$firstName} {$lastName} has been created.");
}
+
}
$this->clickLink("_qf_Contact_upload_view", 'css=.crm-summary-display_name');
$this->assertElementContainsText('css=.crm-summary-display_name', "$firstName adv$firstName");
}
+
}
$this->waitForElementPresent("css=div.select2-result-label");
$this->assertElementContainsText("css=div.select2-result-label", "{$org1}@example.com");
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText('tags', "tagset1, tagset2");
}
+
}
return array($cid, $firstName, $lastName, $email);
}
+
}
$this->select('group_id', "{$groupName}");
$this->click('_qf_GroupContact_next');
}
+
}
$this->assertElementContainsText("css=.notify-content", "Please correct the following errors in the form fields below: One matching contact was found. You can View or Edit the existing contact.");
}
+
}
$this->assertTextPresent("2342322222 ext. 198");
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[3]/a[text()='{$lastName}, {$firstName}']"));
}
+
}
$this->assertElementNotContainsText("address-block-2", "Birmingham");
$this->assertElementNotContainsText("address-block-2", "3456");
}
+
}
$customGroupTitle = preg_replace('/\s/', '_', trim($customGroupTitle));
return array($customGroupTitle, $gid);
}
+
}
$this->assertElementContainsText('css=div.crm-summary-display_name', "{$contact1} AAA");
$this->assertElementContainsText('css=li.crm-next-action a span', "Next");
}
+
}
$this->assertTrue($this->isTextPresent("1 Contact"));
$this->assertTrue($this->isTextPresent("$lname2, $fname2"));
}
+
}
}
return $profileId;
}
+
}
);
$this->assertTrue($this->isTextPresent("Employee of"), "Employee of relationship type not visible on View Relationship page.");
}
+
}
$this->click("_qf_Select_next-bottom");
}
+
}
return $_advance_search_panes;
}
+
}
// Is signature correct? in Activity
$this->assertTextPresent($signature);
}
+
}
$this->assertTrue($this->isTextPresent('Contacts'), 'Missing text: ' . 'Contacts');
$this->assertTrue($this->isTextPresent('Edit'), 'Missing text: ' . 'Edit');
}
+
}
$this->assertTrue($this->isTextPresent("50 Contacts"), 'Looking for 50 results belonging to group: ' . $newGroupName);
}
+
}
$this->click("xpath=//table//tbody/tr[td[1]/text()='$mailingName']/descendant::a[text()='Report']");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}
$this->assertTrue($this->isTextPresent('Your message has been sent.'), "Test SMS could not be sent!");
}
+
}
$this->assertTrue($this->isTextPresent($postalCode), 'In line ' . __LINE__);
$this->assertTrue($this->isElementPresent("//div[@id='profilewrap1']/div[@id='crm-container']/div/div[7]/div[2][contains(text(), 'AR')]"));
}
+
}
$this->_checkResult($value, $type);
}
}
+
}
$this->verifyText("css=table.crm-soft-credit-listing", preg_quote($value));
}
}
+
}
$this->click("_qf_Main_upload-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}
$this->verifyText("xpath=id('Search')/div[2]/table[2]/tbody//tr/td[$value]", preg_quote($label));
}
}
+
}
// contribution page is saved.
$this->assertTrue($this->isTextPresent($premiumSavedText));
}
+
}
);
$this->webtestVerifyTabularData($expected);
}
+
}
//check whether the image is present
$this->assertTrue($this->isElementPresent("xpath=//div[@id='crm-contact-thumbnail']/div/a/img"));
}
+
}
);
$this->webtestVerifyTabularData($expected);
}
+
}
$this->webtestVerifyTabularData($expected);
$this->click('_qf_ContributionView_cancel-bottom');
}
+
}
$this->verifyText("PCP", preg_quote($pcpTitle));
$this->verifyText("PCP", preg_quote("{$lastName}, {$firstName}"));
}
+
}
$pageUrl = array('url' => 'contribute/add', 'args' => 'reset=1&action=add&context=standalone');
$this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
}
+
}
$this->verifyText("xpath=id('ContributionView')/div[2]/table[1]/tbody//tr/td[1][text()='$label']/../td[2]", preg_quote($value));
}
}
+
}
);
$this->webtestVerifyTabularData($expected);
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertFalse($this->isTextPresent("Payment Processor Error message"), "Payment processor returned error message");
}
+
}
$this->waitForElementPresent("xpath=//td[@class='crm-participant-label crm-editable crm-editable-enabled'][contains(text(), '{$status}')]/../td[9]/span/a[2][text()='Disable']");
}
}
+
}
$this->webtestAddBillingDetails();
return $contact;
}
+
}
$this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td", "$ {$feeAmt}", 'Missing text: appropriate fee amount');
$this->assertElementContainsText("xpath=//td[@id='payment-info']/table[@id='info']/tbody/tr[2]/td[2]", "$ {$amtPaid}", 'Missing text: appropriate fee amount');
}
+
}
);
$this->verifyText("xpath=//td[text()='Selections']/following-sibling::td//div/div", preg_quote('Event Total: $ 800.00'));
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->waitForText("crm-notification-container", "'Event Location' information has been saved.");
}
+
}
$this->webtestLogin();
}
}
+
}
$this->click("enable_cart");
$this->click("_qf_Event_next-top");
}
+
}
$this->click("_qf_Field_next-bottom");
$this->waitForPageToLoad($this->getTimeoutMsec());
}
+
}
$softCreditor = "{$pcpCreatorFirstName} {$pcpCreatorLastName}";
$this->verifyText("xpath=//div[@id='PCPView']/div[2]//table[@class='crm-info-panel']/tbody/tr[2]/td[2]", preg_quote($softCreditor), 'In line ' . __LINE__);
}
+
}
$this->_checkStrings($stringsToCheck);
}
+
}
$thankStrings = array('Thank You for Registering', 'Event Total', 'Transaction Date');
$this->assertStringsPresent($thankStrings);
}
+
}
$this->click('_qf_Event_upload_done-bottom');
$this->waitForElementPresent("xpath=//div[@id='event_status_id']//div[@id='option11_wrapper']/table/tbody//tr/td[1]/a[text()='$eventTitle']");
}
+
}
$optionLabel = $this->webtest_civicrm_api("OptionValue", "getvalue", $params);
return $optionLabel;
}
+
}
//Delete Financial Account
$this->_testDeleteFinancialAccount($financialAccountTitle);
}
+
}
//delete financialtype
$this->addeditFinancialType($financialType, 'Delete');
}
+
}
// ...again, waiting for the box with contact name to show up...
$this->waitForText("xpath=//div[@id='s2id_assignee_contact_id']", "$contactFirstName2");
}
+
}
// cleanup by removing the widget
$this->_testRemoveDashboardElement($widgetConfigureID, $widgetEnabledSelector);
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
$this->assertTrue($this->isElementPresent("search-status"));
}
+
}
$this->assertTextPresent("Profiles - Admin Notification");
$this->assertTextPresent("Tell-a-Friend Email");
}
+
}
$pageUrl = array('url' => 'grant/add', 'args' => 'reset=1&action=add&context=standalone');
$this->customFieldSetLoadOnTheFlyCheck($customSets, $pageUrl);
}
+
}
$this->webtestVerifyTabularData($expected);
}
+
}
return array($headers, $rows);
}
+
}
return array($headers, $rows);
}
+
}
return array("custom_{$customFieldId}", $customField, $customGroupTitle);
}
+
}
return array($headers, $rows);
}
+
}
return array($headers, $rows);
}
+
}
return array($headers, $rows);
}
+
}
return array($customDataParams, $customDataVerify);
}
+
}
return array($headers, $rows);
}
+
}
return array($headers, $rows);
}
+
}
);
return array($headers, $rows);
}
+
}
);
return array($headers, $rows, $fieldMapper);
}
+
}
return array($headers, $rows, $fieldMapper);
}
+
}
return array($headers, $rows);
}
+
}
return array($headers, $rows);
}
+
}
$this->waitForElementPresent("xpath=//div[@class='ui-dialog-buttonset']/button/span[2]");
$this->assertElementContainsText('help', "Bulk Email Sent.", "Status message didn't show up after saving!");
}
+
}
// Verify text
$this->assertTrue($this->isElementPresent("xpath=//table/tbody//tr/td[text()='{$componentName}']/../td[2][text()='Reply']/../td[3][text()='{$subject}']/../td[4][text()='{$txtMsg}']/../td[5][text()='{$htmlMsg}']"), "The row doesn't consists of proper component details");
}
+
}
return array($textFieldLabel, $customGroupTitle);
}
+
}
$this->click("_qf_MembershipView_cancel-bottom");
$this->waitForElementPresent("mainTabContainer");
}
+
}
}
return array($memTypeTitle1, $memTypeTitle2, $memTypeTitle3);
}
+
}
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[3][text()='Type changed from {$membershipTypes['membership_type']} to General']"));
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-search-results']/table/tbody/tr[3]/td[5]/a[text()='{$contactName}']"));
}
+
}
$this->assertTrue($this->isElementPresent("xpath=//div[@class='crm-contact-relationship-current']/div/table/tbody/tr/td[2]/a[text()='Organization $org3']"));
$this->assertEquals(1, $this->getText("xpath=//li[@id='tab_rel']/a/em"));
}
+
}
$this->assertTrue($this->isElementPresent("xpath=//form[@id='MembershipView']/div[2]/div/div[@class='crm-accordion-wrapper']/div/table/tbody/tr/td/span[text()='{$amount}']"));
$this->click("_qf_MembershipView_cancel-bottom");
}
+
}
);
$this->webtestVerifyTabularData($verifyMembershipRenewData);
}
+
}
);
$this->webtestVerifyTabularData($expected);
}
+
}
$this->clickLink("_qf_Main_upload-bottom", "_qf_Confirm_next-bottom");
$this->clickLink("_qf_Confirm_next-bottom", NULL);
}
+
}
return $memTypeParams;
}
+
}
$this->verifyText("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[4]", "1,200.00");
}
+
}
// Re-enable pop-ups to leave things in the same state
$this->enableDisablePopups(TRUE);
}
+
}
// Re-enable pop-ups to leave things in the same state
$this->enableDisablePopups(TRUE);
}
+
}
$this->verifyText("xpath=//div[@class='view-content' and contains(., 'view pledge payments')]/table[@class='selector row-highlight']//tbody/tr[1]/td[4]", "1,930.00");
}
+
}
$this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
return $contact;
}
+
}
return $returnArray;
}
+
}
$this->click("_qf_Edit_next");
$this->waitForTextPresent("A record already exists with the same information.");
}
+
}
// delete created profile
$this->_testdeleteProfile($profileTitle);
}
+
}
$this->waitForElementPresent('newCiviCRMProfile-bottom');
$this->waitForText('crm-notification-container', "Your CiviCRM Profile '{$profileTitle}' has been deleted.");
}
+
}
$this->waitForText('crm-notification-container', 'Is this field hidden from other users');
$this->select('visibility', 'value=Public Pages and Listings');
}
+
}
$this->openCiviPage("dashboard", "reset=1");
$this->assertTrue($this->isTextPresent("CiviCRM Home"));
}
+
}
protected function setUp() {
parent::setUp();
}
+
}
$this->waitForTextPresent("CiviCRM upgrade was successful.");
}
+
}
// Is correct access permission?
$this->assertSelectedLabel("permission", "access CiviCRM");
}
+
}
// check if criteria still exits
$this->assertElementContainsText('css=table.statistics-table', "Is greater than or equal to 10", "Criteria is not selected");
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
}
}
+
}
$this->waitForPageToLoad($this->getTimeoutMsec());
return $name;
}
+
}
$values = $this->callAPISuccess('custom_field', 'getoptions', array('field' => 'custom_group_id'));
$this->assertTrue($values['count'] == 1, 'check that cached value is not retained for custom_group_id');
}
+
}
public function aclWhereOnlySecond($type, &$tables, &$whereTables, &$contactID, &$where) {
$where = " contact_a.id > 1";
}
+
}
}
return $functions;
}
+
}
$this->assertEquals('First', $result['values'][$result['id']]['first_name']);
$this->assertEquals('MUNGE! First Last', $result['values'][$result['id']]['display_name_munged']);
}
+
}
/**
}
return $result;
}
+
}
$this->callAPIFailure('ActivityContact', 'Get', array('activity_id' => 'abc'));
$this->callAPIFailure('ActivityContact', 'Get', array('record_type_id' => 'abc'));
}
+
}
$this->assertTrue(is_array($value), $key . " is not an array in line " . __LINE__);
}
}
+
}
);
$result = $this->callAPISuccess('activity_type', 'delete', $params, __FUNCTION__, __FILE__);
}
+
}
$this->assertEquals(1, $check);
$this->callAPISuccess('address', 'delete', array('id' => $address1['id']));
}
+
}
$inst = self::getInstance();
return $inst->implSuite(__FILE__);
}
+
}
// class api_v3_AllTests
$this->assertEquals($contact['contact_type'], $contactType, "In line " . __LINE__);
}
}
+
}
$checkDeleted = $this->callAPISuccess('campaign', 'get', array());
$this->assertEquals(0, $checkDeleted['count'], 'In line ' . __LINE__);
}
+
}
$this->customFieldDelete($custom_ids['custom_field_id']);
$this->customGroupDelete($custom_ids['custom_group_id']);
}
+
}
$getCaseType = $this->callAPISuccess('CaseType', 'get', array('id' => $createCaseType['id']));
$this->assertEquals(0, $getCaseType['count']);
}
+
}
$this->assertContains('POP3', $result['values'], "In line " . __LINE__);
$this->assertContains('Localdir', $result['values'], "In line " . __LINE__);
}
+
}
$this->assertArrayKeyExists($action, $result['deprecated']);
}
}
+
}
);
$this->callAPISuccess('contact', 'delete', $params);
}
+
}
$unitTest = new CiviUnitTestCase();
$unitTest->quickCleanup($tablesToTruncate);
}
+
}
$result = $this->callAPISuccess($this->_entity, 'getfields', array('action' => 'create'));
$this->assertEquals(12, $result['values']['start_date']['type']);
}
+
}
$this->assertEquals($p2['amount'], $res['amount'], 'In line ' . __LINE__);
$this->assertEquals($p2['currency'], $res['currency'], 'In line ' . __LINE__);
}
+
}
$this->assertDBCompareValues('CRM_Financial_DAO_FinancialItem', $fitemParams, $compareParams);
}
}
+
}
));
$this->assertEquals(1, $check);
}
+
}
sort($r);
return $r;
}
+
}
$this->assertEquals($value, $values[$key], $key . " doesn't match " . print_r($values, TRUE) . 'in line' . __LINE__);
}
}
+
}
OR label = "CRM_Contact_Form_Search_Custom_Examplez"
');
}
+
}
$this->assertEquals($getContact['values'][$this->individualStudent]["custom_{$this->IndiStudentField['id']}"], 'Test String', 'In line ' . __LINE__);
}
+
}
$this->assertEquals('second multi value 3', $result['values'][$firstCustomField][4]);
$this->assertEquals('second multi value 3', $result['values'][$firstCustomField]['latest']);
}
+
}
$newCount = CRM_Core_DAO::singleValueQuery("select count(*) from civicrm_dashboard_contact where contact_id = {$contact['id']} AND is_active = 1 AND dashboard_id = {$dashresult['id']}");
$this->assertEquals($oldCount + 1, $newCount);
}
+
}
$newCount = CRM_Core_DAO::singleValueQuery('select count(*) from civicrm_dashboard');
$this->assertEquals($oldCount, $newCount);
}
+
}
public function testCreateWithEmptyParams() {
$result = $this->callAPIFailure('domain', 'create', array());
}
+
}
$this->assertEquals(1, $get['values'][$emailID]['on_hold'], 'In line ' . __LINE__);
$this->assertEquals('1-2@example.com', $get['values'][$emailID]['email'], 'In line ' . __LINE__);
}
+
}
$this->assertEquals($result['removed'], 1);
$this->assertEquals($result['not_removed'], 1);
}
+
}
$result = $this->callAPISuccess('event', 'getfields', $params);
$this->assertEquals(1, $result['values']['id']['api.required']);
}
+
}
$baoObj->deleteTestObjects($baoString);
$baoObj->free();
}
+
}
$this->assertEquals(0, $result['count'], "in line " . __LINE__);
$this->assertArrayNotHasKey('id', $result, "in line " . __LINE__);
}
+
}
public function testDeleteWithEmptyParams() {
$result = $this->callAPIFailure('group_nesting', 'delete', array());
}
+
}
$result = $this->callAPIFailure('group_organization', 'delete', $paramsDelete);
$this->assertEquals($result['error_message'], 'Mandatory key(s) missing from params array: id');
}
+
}
$result = $this->callAPIAndDocument('group', 'getfields', $params, __FUNCTION__, __FILE__, $description, 'getfields', 'getfields');
$this->assertEquals(1, $result['values']['is_active']['api.default']);
}
+
}
$checkDeleted = $this->callAPISuccess($this->_entity, 'get', array());
$this->assertEquals(1, $checkDeleted['count'], 'In line ' . __LINE__);
}
+
}
}
return $recipients;
}
+
}
$params['description'] = 'Go Go you good thing';
}
}
+
}
$this->callAPIAndDocument('MailSettings', 'get', $params, __FUNCTION__, __FILE__, $description, $subFile);
$this->assertEquals(0, $this->callAPISuccess('MailSettings', 'getcount', array()));
}
+
}
$this->assertEquals($result['values'][2]['creator_id'], 3, "In line " . __LINE__);
$this->assertEquals($result['values'][2]['creator_name'], "xyz1, abc1", "In line " . __LINE__);
}
+
}
$result = $this->callAPISuccess('mailing_event_confirm', 'create', $params);
$this->contactDelete($contactID);
}
+
}
$this->assertEquals($result['values'][$result['id']]['membership_id'], $params['membership_id'], 'Check Membership Id');
$this->assertEquals($result['values'][$result['id']]['contribution_id'], $params['contribution_id'], 'Check Contribution Id');
}
+
}
));
$result = $this->callAPISuccess('membership_status', 'delete', $params);
}
+
}
$this->assertEquals('2009-12-21', $result['end_date']);
}
+
}
$result = $this->callAPIAndDocument('membership_type', 'delete', $params, __FUNCTION__, __FILE__);
}
+
}
$result = $this->callAPIAndDocument('note', 'delete', $params, __FUNCTION__, __FILE__);
}
+
}
/**
$result = $this->callAPISuccess($this->_entity, 'create', $this->_params);
$this->callAPIAndDocument('OptionGroup', 'delete', array('id' => $result['id']), __FUNCTION__, __FILE__);
}
+
}
));
$this->assertEquals($val, 0, "update with group id is not proper " . __LINE__);
}
+
}
}
$this->assertDBCompareValues('CRM_Financial_DAO_FinancialItem', $fitemParams, $compareParams);
}
+
}
$checkDeleted = $this->callAPISuccess('ParticipantStatusType', 'Get', array());
$this->assertEquals($entity['count'] - 1, $checkDeleted['count'], 'In line ' . __LINE__);
}
+
}
$this->assertEquals(1, $result['values'][$result['id']]['api.participant_payment.create']['count']);
$this->callAPISuccess('contact', 'delete', array('id' => $result['id']));
}
+
}
$this->assertEquals(1, $results['count'], ' in line ' . __LINE__);
$this->assertEquals('test@test.com', $results['values'][$results['id']]['user_name'], ' in line ' . __LINE__);
}
+
}
$this->assertEquals(1, $result['count'], ' in line ' . __LINE__);
$this->assertEquals('CRM_Core_Payment_APITest_12', $result['values'][$result['id']]['class_name'], ' in line ' . __LINE__);
}
+
}
));
$this->assertEquals(1, $check);
}
+
}
$result = $this->callAPISuccess('PledgePayment', 'GetFields', array());
$this->assertType('array', $result);
}
+
}
$pledgeID = array('id' => $result['id']);
$pledge = $this->callAPISuccess('pledge', 'delete', $pledgeID);
}
+
}
$this->callAPISuccess($this->_entity, 'delete', array('id' => $result1['id']));
$this->callAPISuccess($this->_entity, 'delete', array('id' => $result2['id']));
}
+
}
$unitTest = new CiviUnitTestCase();
$unitTest->quickCleanup($tablesToTruncate);
}
+
}
$options = $this->callAPISuccess($this->_entity, 'getoptions', array('field' => 'period_type'));
$this->assertArrayHasKey('rolling', $options['values']);
}
+
}
'contact_type' => 'Contact',
));
}
+
}
$this->callAPISuccess($this->_entity, 'create', array('id' => $relationship['id'], 'is_active' => 0));
$this->callAPISuccess($this->_entity, 'create', array('id' => $relationship['id'], 'is_active' => 1));
}
+
}
return $this->relationshipTypeCreate($params);
}
+
}
return $reportTemplates;
}
+
}
$this->assertArrayHasKey('extensionsDir', $result['values'][$dom['id']]);
$this->assertEquals('Unconfirmed', $result['values'][$dom['id']]['tag_unconfirmed']);
}
+
}
1 => array($eventId, 'Integer'),
));
}
+
}
$this->assertRegExp('/^[0-9]+\.[0-9]+\.[0-9a-z\-]+$/', $result['values'][0]['version']);
$this->assertEquals('UnitTests', $result['values'][0]['uf']);
}
+
}
$this->assertEquals($this->tag['description'], $result['values'][0]['description'][0], 'In line ' . __LINE__);
$this->assertEquals($this->tag['used_for'], $result['values'][0]['extra']['used_for'], 'In line ' . __LINE__);
}
+
}
);
$this->callAPIAndDocument('contribution', 'delete', $params, __FUNCTION__, __FILE__);
}
+
}
$result = $this->callAPIAndDocument('uf_group', 'delete', $params, __FUNCTION__, __FILE__);
$this->assertEquals(0, $this->callAPISuccess('uf_group', 'getcount', $params), "in line " . __LINE__);
}
+
}
$expectedResult = UF_join_create_expectedresult();
$this->assertEquals($result, $expectedResult);
}
+
}
'id' => $result['id'],
)));
}
+
}
$this->assertEquals('Household', $result['values']['contact_type']['options']['Household']);
$this->assertEquals('HTML', $result['values']['preferred_mail_format']['options']['HTML']);
}
+
}
$result = $this->callAPIAndDocument($this->_entity, 'getfields', array('action' => 'get'), __FUNCTION__, __FILE__);
$this->assertArrayKeyExists('url', $result['values']);
}
+
}