Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • colemanw/form-processor
  • extensions/form-processor
  • JonGold/form-processor
  • noah/form-processor
  • ErikHommel/form-processor
  • BjoernE/form-processor
  • kainuk/form-processor
  • homotechsual/form-processor
  • miloskroulik/form-processor
  • artfulrobot/form-processor
  • ufundo/form-processor
  • mattwire/form-processor
  • justinfreeman/form-processor
  • ayduns/form-processor
  • fsnet/form-processor
  • erikbrouwer/form-processor
  • BettyDolfing/form-processor
  • marsh/form-processor
  • Edselopez/form-processor
  • brienne/form-processor-brienne
  • TheSmammy/form-processor
  • dotu/form-processor
  • semseysandor/form-processor
  • agilewarefj/form-processor
  • seamuslee/form-processor
  • jaapjansma/form-processor
  • partners/civicoop/sol/form-processor
  • simon.hermann/form-processor
  • partners/ixiam/form-processor
29 results
Show changes
Showing
with 3080 additions and 70 deletions
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?php
/**
* Copyright (C) 2023 Jaap Jansma (jaap.jansma@civicoop.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use Civi\ActionProvider\Provider;
class CRM_FormProcessor_Form_CalculationConfigurationAction extends CRM_FormProcessor_Form_AbstractConfigurationAction {
/**
* Returns the action provider
*
* @return \Civi\ActionProvider\Provider
*/
public function getActionProvider(): Provider {
return form_processor_get_action_provider_for_calculation();
}
/**
* Returns the API 3 entity name.
* E.g. FormProcessorValidateAction or FormProcessorDefaultDataAction
*
* @return string
*/
protected function getApi3Entity(): string {
return 'FormProcessorCalculateAction';
}
/**
* Returns an array of available fields for the mapping
*
* @return array
*/
protected function getAvailableFieldsForMapping(Provider $provider, int $formProcessorId, int $actionObjectId = NULL): array {
return CRM_FormProcessor_BAO_FormProcessorCalculateAction::getFieldsForMapping($provider, $formProcessorId, $actionObjectId);
}
/**
* Returns the return url
*
* @return string
*/
protected function getReturnUrl(): string {
return CRM_Utils_System::url('civicrm/admin/automation/formprocessor/calculationconfiguration', array('reset' => 1, 'action' => 'update', 'id' => $this->formProcessorId));
}
/**
* @return string
*/
protected function getBaseUrl(): string {
return 'civicrm/admin/automation/formprocessor/calculationconfiguration/action';
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.