From e2292f1e01d97e977f5f54dd061c694e79dbfbc2 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 27 Sep 2006 23:49:26 +0000 Subject: [PATCH] r1192: Outward changes for renaming, but no internals yet --- admin/automation.php | 40 ++++++++++++++--------------- explain.php | 2 +- includes/api_automation.php | 4 +-- includes/class_admin_navigation.php | 18 ++++++------- templates/explain_autoaction.tpl | 4 +-- templates/showreport.tpl | 2 +- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/admin/automation.php b/admin/automation.php index 7748340..182ffe3 100644 --- a/admin/automation.php +++ b/admin/automation.php @@ -20,7 +20,7 @@ \*=====================================================================*/ require_once('./global.php'); -require_once('./includes/api_autoaction.php'); +require_once('./includes/api_automation.php'); require_once('./includes/class_api_error.php'); APIError(array(new API_Error_Handler($admin), 'admin_error')); @@ -44,19 +44,19 @@ if (empty($_REQUEST['do'])) if ($_REQUEST['do'] == 'kill') { - $action = new AutoActionAPI($bugsys); + $action = new AutomationAPI($bugsys); $action->set('actionid', $bugsys->in['actionid']); $action->set_condition(); $action->delete(); - $admin->redirect('autoaction.php?do=modify'); + $admin->redirect('automation.php?do=modify'); } // ################################################################### if ($_REQUEST['do'] == 'delete') { - $admin->page_confirm(_('Are you sure you want to delete this action?'), 'autoaction.php', 'kill', array('actionid' => $bugsys->in['actionid'])); + $admin->page_confirm(_('Are you sure you want to delete this automation?'), 'automation.php', 'kill', array('actionid' => $bugsys->in['actionid'])); } // ################################################################### @@ -79,7 +79,7 @@ if ($_POST['do'] == 'insert' OR $_POST['do'] == 'update') } } - $action = new AutoActionAPI($bugsys); + $action = new AutomationAPI($bugsys); $action->set('name', $bugsys->in['name']); $action->set('description', $bugsys->in['description']); $action->set('fieldchanges', $deltas); @@ -89,7 +89,7 @@ if ($_POST['do'] == 'insert' OR $_POST['do'] == 'update') { $action->insert(); - $admin->redirect('autoaction.php'); + $admin->redirect('automation.php'); } else { @@ -97,7 +97,7 @@ if ($_POST['do'] == 'insert' OR $_POST['do'] == 'update') $action->set_condition(); $action->update(); - $admin->redirect('autoaction.php'); + $admin->redirect('automation.php'); } } @@ -110,10 +110,10 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') if ($edit) { - NavLinks::autoactionsEdit($bugsys->in['actionid']); - $navigator->set_focus('link', 'fields-pages-autoactions', 'fields-pages'); + NavLinks::automationsEdit($bugsys->in['actionid']); + $navigator->set_focus('link', 'fields-pages-automations', 'fields-pages'); - $action = new AutoActionAPI($bugsys); + $action = new AutomationAPI($bugsys); $action->set('actionid', $bugsys->in['actionid']); $action->set_condition(); $action->fetch(); @@ -121,13 +121,13 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') } else { - NavLinks::autoactionsAdd(); - $navigator->set_focus('link', 'autoactions-add', 'autoactions'); + NavLinks::automationsAdd(); + $navigator->set_focus('link', 'automations-add', 'automations'); } - $admin->page_start(($add ? _('New Automatic Action') : _('Edit Automatic Action'))); + $admin->page_start(($add ? _('New Automation') : _('Edit Automation'))); - $admin->form_start('autoaction.php', ($add ? 'insert' : 'update')); + $admin->form_start('automation.php', ($add ? 'insert' : 'update')); if ($edit) { @@ -135,7 +135,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') } $admin->table_start(); - $admin->table_head(($add ? _('New Automatic Action') : _('Edit Automatic Action'))); + $admin->table_head(($add ? _('New Automation') : _('Edit Automation'))); $admin->row_input(_('Name'), 'name', $action->objdata['name']); $admin->row_textarea(_('Description'), 'description', $action->objdata['description']); @@ -211,18 +211,18 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') if ($_REQUEST['do'] == 'modify') { - NavLinks::autoactionsAdd(); - $navigator->set_focus('link', 'fields-pages-autoactions', 'fields-pages'); + NavLinks::automationsAdd(); + $navigator->set_focus('link', 'fields-pages-automations', 'fields-pages'); - $admin->page_start(_('Automatic Actions')); + $admin->page_start(_('Automations')); $admin->table_start(); - $admin->table_head(_('Automatic Actions')); + $admin->table_head(_('Automations')); $actions = $db->query("SELECT * FROM " . TABLE_PREFIX . "autoaction ORDER BY name ASC"); while ($action = $db->fetch_array($actions)) { - $admin->row_text($action['name'] . "\n
$action[description]
", "[" . _('Edit') . "] [" . _('Delete') . "]"); + $admin->row_text($action['name'] . "\n
$action[description]
", "[" . _('Edit') . "] [" . _('Delete') . "]"); } $admin->table_end(); diff --git a/explain.php b/explain.php index 8f55147..9ed60ff 100644 --- a/explain.php +++ b/explain.php @@ -91,7 +91,7 @@ if ($_REQUEST['do'] == 'products') // ################################################################### -if ($_REQUEST['do'] == 'autoactions') +if ($_REQUEST['do'] == 'automations') { $fields_fetch = $bugsys->db->query(" SELECT bugfield.*, permission.mask diff --git a/includes/api_automation.php b/includes/api_automation.php index 77e792d..97e5f11 100644 --- a/includes/api_automation.php +++ b/includes/api_automation.php @@ -24,7 +24,7 @@ $GLOBALS['isso:callback']->load('api', null); require_once('./includes/functions_datastore.php'); /** -* API: Automatic Action +* API: Automation * * @author Blue Static * @copyright Copyright ©2002 - [#]year[#], Blue Static @@ -32,7 +32,7 @@ require_once('./includes/functions_datastore.php'); * @package Bugdar * */ -class AutoActionAPI extends API +class AutomationAPI extends API { /** * Fields diff --git a/includes/class_admin_navigation.php b/includes/class_admin_navigation.php index a7a76fc..5a7caf2 100644 --- a/includes/class_admin_navigation.php +++ b/includes/class_admin_navigation.php @@ -145,7 +145,7 @@ class NavLinks $navigator->add_component('link', 'fields-pages-resolutions', 'fields-pages', _('Resolutions'), 'resolution.php'); $navigator->add_component('link', 'fields-pages-severities', 'fields-pages', _('Severities'), 'severity.php'); $navigator->add_component('link', 'fields-pages-statuses', 'fields-pages', _('Statuses'), 'status.php'); - $navigator->add_component('link', 'fields-pages-autoactions', 'fields-pages', _('Automatic Actions'), 'autoaction.php'); + $navigator->add_component('link', 'fields-pages-automations', 'fields-pages', _('Automations'), 'automation.php'); } // ################################################################### @@ -300,32 +300,32 @@ class NavLinks // ################################################################### /** - * Adding an new auto action + * Adding an new automation * * @access public */ - function autoactionsAdd() + function automationsAdd() { global $navigator; - $navigator->add_component('section', 'autoactions', 'fields', _('Automatic Actions'), null); - $navigator->add_component('link', 'autoactions-add', 'autoactions', _('Add New Automatic Action'), 'autoaction.php?do=add'); + $navigator->add_component('section', 'automations', 'fields', _('Automations'), null); + $navigator->add_component('link', 'automations-add', 'automations', _('Add New Automation'), 'automation.php?do=add'); } // ################################################################### /** - * Edit an auto action + * Edit an automation * * @access public * * @param integer Action ID */ - function autoactionsEdit($id) + function automationsEdit($id) { global $navigator; - NavLinks::autoactionsAdd(); - $navigator->add_component('link', 'autoactions-delete', 'autoactions', _('Delete'), 'autoaction.php?do=delete&actionid=' . $id); + NavLinks::automationsAdd(); + $navigator->add_component('link', 'automations-delete', 'automations', _('Delete'), 'automation.php?do=delete&actionid=' . $id); } // ################################################################### diff --git a/templates/explain_autoaction.tpl b/templates/explain_autoaction.tpl index 6012e53..2f6483a 100644 --- a/templates/explain_autoaction.tpl +++ b/templates/explain_autoaction.tpl @@ -2,14 +2,14 @@ $doctype $headinclude - {$bugsys->options['trackertitle']} - {@"Automatic Actions"} + {$bugsys->options['trackertitle']} - {@"Automations"} $header -

{@"Explication of Automatic Actions"}

+

{@"Explication of Automations"}

$autoactions diff --git a/templates/showreport.tpl b/templates/showreport.tpl index f64698d..ffed633 100644 --- a/templates/showreport.tpl +++ b/templates/showreport.tpl @@ -193,7 +193,7 @@ $header
- {@"New Reply"} : {@"Automatic Action"} $help[newreply] + {@"New Reply"} : {@"Automation"} $help[newreply]
-- 2.43.5