*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle('WordPress Access Control');
+ $this->setTitle('WordPress Access Control');
// Get the core permissions array
$permissionsArray = self::getPermissionArray();
if (CRM_Contact_BAO_Contact::checkDomainContact($this->_currentlyViewedContactId)) {
$displayName .= ' (' . ts('default organization') . ')';
}
- CRM_Utils_System::setTitle($displayName . ' - ' . $activityTypeDisplayLabel);
+ $this->setTitle($displayName . ' - ' . $activityTypeDisplayLabel);
}
else {
- CRM_Utils_System::setTitle(ts('%1 Activity', [1 => $activityTypeDisplayLabel]));
+ $this->setTitle(ts('%1 Activity', [1 => $activityTypeDisplayLabel]));
}
}
}
throw new CRM_Core_Exception('The profile id is missing');
}
$this->_title = ts('Update multiple activities') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
- CRM_Utils_System::setTitle($this->_title);
+ $this->setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
$this->_fields = [];
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('File on Case'));
+ $this->setTitle(ts('File on Case'));
}
/**
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Send Email to Contacts'));
+ $this->setTitle(ts('Send Email to Contacts'));
$validate = FALSE;
//validations
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Update multiple activities'));
+ $this->setTitle(ts('Update multiple activities'));
$validate = FALSE;
// Validations.
parent::preProcess();
$this->setContext();
- CRM_Utils_System::setTitle(ts('Manage - Scheduled Jobs'));
+ $this->setTitle(ts('Manage - Scheduled Jobs'));
if ($this->_id) {
$refreshURL = CRM_Utils_System::url('civicrm/admin/job',
if ($this->_action & CRM_Core_Action::VIEW) {
$this->freeze();
- CRM_Utils_System::setTitle(ts('View System Default Message Template'));
+ $this->setTitle(ts('View System Default Message Template'));
}
}
if ($this->_action & CRM_Core_Action::DELETE) {
return;
}
- CRM_Utils_System::setTitle(ts('Dropdown Options'));
+ $this->setTitle(ts('Dropdown Options'));
$this->applyFilter('__ALL__', 'trim');
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - CiviCase'));
+ $this->setTitle(ts('Settings - CiviCase'));
parent::buildQuickForm();
}
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Date'));
+ $this->setTitle(ts('Settings - Date'));
parent::buildQuickForm();
}
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts(' Settings - Debugging and Error Handling '));
+ $this->setTitle(ts(' Settings - Debugging and Error Handling '));
if (CRM_Core_Config::singleton()->userSystem->supports_UF_Logging == '1') {
$this->_settings['userFrameworkLogging'] = CRM_Core_BAO_Setting::DEVELOPER_PREFERENCES_NAME;
}
public function buildQuickForm() {
$config = CRM_Core_Config::singleton();
- CRM_Utils_System::setTitle(ts('Settings - Localization'));
+ $this->setTitle(ts('Settings - Localization'));
$warningTitle = json_encode(ts("Warning"));
$defaultLocaleOptions = CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions();
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - CiviMail'));
+ $this->setTitle(ts('Settings - CiviMail'));
$this->addFormRule(['CRM_Admin_Form_Setting_Mail', 'formRule']);
parent::buildQuickForm();
}
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Mapping and Geocoding Providers'));
+ $this->setTitle(ts('Settings - Mapping and Geocoding Providers'));
parent::buildQuickForm();
}
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Misc (Undelete, PDFs, Limits, Logging, etc.)'));
+ $this->setTitle(ts('Misc (Undelete, PDFs, Limits, Logging, etc.)'));
$this->assign('validTriggerPermission', CRM_Core_DAO::checkTriggerViewPermission(FALSE));
// dev/core#1812 Assign multilingual status.
* @throws \CRM_Core_Exception
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Upload Directories'));
+ $this->setTitle(ts('Settings - Upload Directories'));
parent::buildQuickForm();
$directories = [
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Search Preferences'));
+ $this->setTitle(ts('Settings - Search Preferences'));
parent::buildQuickForm();
];
$this->addRadio('outBound_option', ts('Select Mailer'), $outBoundOption, $props['outBound_option'] ?? []);
- CRM_Utils_System::setTitle(ts('Settings - Outbound Mail'));
+ $this->setTitle(ts('Settings - Outbound Mail'));
$this->add('text', 'sendmail_path', ts('Sendmail Path'));
$this->add('text', 'sendmail_args', ts('Sendmail Argument'));
$this->add('text', 'smtpServer', ts('SMTP Server'), CRM_Utils_Array::value('smtpServer', $props));
$this->_settings['wpBasePage'] = CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME;
}
- CRM_Utils_System::setTitle(
+ $this->setTitle(
ts('Settings - %1 Integration', [1 => $this->_uf])
);
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Cleanup Caches and Update Paths'));
+ $this->setTitle(ts('Settings - Cleanup Caches and Update Paths'));
$this->addButtons([
[
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Settings - Resource URLs'));
+ $this->setTitle(ts('Settings - Resource URLs'));
$settingFields = civicrm_api('setting', 'getfields', [
'version' => 3,
]);
$batchTypes = CRM_Core_PseudoConstant::get('CRM_Batch_DAO_Batch', 'type_id', ['flip' => 1], 'validate');
// get the profile information
if ($this->_batchInfo['type_id'] == $batchTypes['Contribution']) {
- CRM_Utils_System::setTitle(ts('Batch Data Entry for Contributions'));
+ $this->setTitle(ts('Batch Data Entry for Contributions'));
}
elseif ($this->_batchInfo['type_id'] == $batchTypes['Membership']) {
- CRM_Utils_System::setTitle(ts('Batch Data Entry for Memberships'));
+ $this->setTitle(ts('Batch Data Entry for Memberships'));
}
elseif ($this->_batchInfo['type_id'] == $batchTypes['Pledge Payment']) {
- CRM_Utils_System::setTitle(ts('Batch Data Entry for Pledge Payments'));
+ $this->setTitle(ts('Batch Data Entry for Pledge Payments'));
}
$this->_fields = CRM_Core_BAO_UFGroup::getFields($this->_profileId, FALSE, CRM_Core_Action::VIEW);
$title = ts('Delete Campaign');
}
if ($title) {
- CRM_Utils_System::setTitle($title);
+ $this->setTitle($title);
}
$session = CRM_Core_Session::singleton();
}
//set the form title.
- CRM_Utils_System::setTitle(ts('GOTV (Voter Tracking)'));
+ $this->setTitle(ts('GOTV (Voter Tracking)'));
}
/**
$this->_surveyId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
if ($this->_action & CRM_Core_Action::UPDATE) {
- CRM_Utils_System::setTitle(ts('Edit Survey'));
+ $this->setTitle(ts('Edit Survey'));
}
else {
- CRM_Utils_System::setTitle(ts('Delete Survey'));
+ $this->setTitle(ts('Delete Survey'));
}
}
$this->_surveyId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
if ($this->_action & CRM_Core_Action::UPDATE) {
- CRM_Utils_System::setTitle(ts('Edit Petition'));
+ $this->setTitle(ts('Edit Petition'));
}
else {
- CRM_Utils_System::setTitle(ts('Delete Petition'));
+ $this->setTitle(ts('Delete Petition'));
}
}
}
$this->setDefaultValues();
- CRM_Utils_System::setTitle($this->petition['title']);
+ $this->setTitle($this->petition['title']);
}
/**
}
//set the form title.
- CRM_Utils_System::setTitle(ts('Find Respondents To %1', array(1 => ucfirst($this->_operation))));
+ $this->setTitle(ts('Find Respondents To %1', array(1 => ucfirst($this->_operation))));
}
/**
$this->assign('suppressForm', TRUE);
//set the form title.
- CRM_Utils_System::setTitle(ts('Find Campaigns'));
+ $this->setTitle(ts('Find Campaigns'));
}
/**
$this->assign('suppressForm', TRUE);
//set the form title.
- CRM_Utils_System::setTitle(ts('Find Petition'));
+ $this->setTitle(ts('Find Petition'));
}
/**
$this->assign('suppressForm', TRUE);
//set the form title.
- CRM_Utils_System::setTitle(ts('Find Survey'));
+ $this->setTitle(ts('Find Survey'));
}
/**
CRM_Campaign_BAO_Survey::retrieve($params, $surveyInfo);
$this->_surveyTitle = $surveyInfo['title'];
$this->assign('surveyTitle', $this->_surveyTitle);
- CRM_Utils_System::setTitle(ts('Configure Survey - %1', [1 => $this->_surveyTitle]));
+ $this->setTitle(ts('Configure Survey - %1', [1 => $this->_surveyTitle]));
}
$this->assign('action', $this->_action);
CRM_Campaign_BAO_Survey::retrieve($params, $surveyInfo);
$this->_surveyTitle = $surveyInfo['title'];
$this->assign('surveyTitle', $this->_surveyTitle);
- CRM_Utils_System::setTitle(ts('Delete Survey') . ' - ' . $this->_surveyTitle);
+ $this->setTitle(ts('Delete Survey') . ' - ' . $this->_surveyTitle);
}
/**
$this->_action = CRM_Utils_Request::retrieve('action', 'String', $this);
if ($this->_action & CRM_Core_Action::UPDATE) {
- CRM_Utils_System::setTitle(ts('Configure Survey') . ' - ' . $this->_surveyTitle);
+ $this->setTitle(ts('Configure Survey') . ' - ' . $this->_surveyTitle);
}
// Add custom data to form
//set the title.
$this->_surveyTypeId = $this->_surveyValues['activity_type_id'] ?? NULL;
$surveyTypeLabel = CRM_Core_PseudoConstant::getLabel('CRM_Activity_BAO_Activity', 'activity_type_id', $this->_surveyTypeId);
- CRM_Utils_System::setTitle(ts('Record %1 Responses', [1 => $surveyTypeLabel]));
+ $this->setTitle(ts('Record %1 Responses', [1 => $surveyTypeLabel]));
}
public function validateIds() {
}
//set the title.
- CRM_Utils_System::setTitle(ts('Release Respondents'));
+ $this->setTitle(ts('Release Respondents'));
}
/**
}
//set the title.
- CRM_Utils_System::setTitle(ts('Reserve Respondents'));
+ $this->setTitle(ts('Reserve Respondents'));
}
public function validateSurvey() {