r1192: Outward changes for renaming, but no internals yet
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 27 Sep 2006 23:49:26 +0000 (23:49 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 27 Sep 2006 23:49:26 +0000 (23:49 +0000)
admin/automation.php
explain.php
includes/api_automation.php
includes/class_admin_navigation.php
templates/explain_autoaction.tpl
templates/showreport.tpl

index 77483408766b5e1563af2f31cb11e75713eb94cf..182ffe3c2f00988d77b347bb24ad85f1bcd7b001 100644 (file)
@@ -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<div class=\"smallfont\">$action[description]</div>", "<a href=\"autoaction.php?do=edit&amp;actionid=$action[actionid]\">[" . _('Edit') . "]</a> <a href=\"autoaction.php?do=delete&amp;actionid=$action[actionid]\">[" . _('Delete') . "]</a>");
+               $admin->row_text($action['name'] . "\n<div class=\"smallfont\">$action[description]</div>", "<a href=\"automation.php?do=edit&amp;actionid=$action[actionid]\">[" . _('Edit') . "]</a> <a href=\"automation.php?do=delete&amp;actionid=$action[actionid]\">[" . _('Delete') . "]</a>");
        }
        
        $admin->table_end();
index 8f55147c15f22fba5006286c0184fc8c140bc12c..9ed60ffffe6ccf62123656199b0ba2fd7b3bab75 100644 (file)
@@ -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
index 77e792dd1b1b002c914a644ba579f87cea769141..97e5f113643bd706fc17e9478981f1bf19e6af80 100644 (file)
@@ -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
index a7a76fc1cfdb4854afce8a6eb6a85af9bd47f4d0..5a7caf266d6f00881e9c42a2f8578f926db37a53 100644 (file)
@@ -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&amp;actionid=' . $id);
+               NavLinks::automationsAdd();
+               $navigator->add_component('link', 'automations-delete', 'automations', _('Delete'), 'automation.php?do=delete&amp;actionid=' . $id);
        }
        
        // ###################################################################
index 6012e53c277348ec839d4e46118237ff99db20ea..2f6483a99cca857f5b4ee5549900b9d2a5e96e5b 100644 (file)
@@ -2,14 +2,14 @@ $doctype
 <html lang="$stylevar[lang]" xml:lang="$stylevar[lang]" dir="$stylevar[lang_dir]">
 <head>
 $headinclude
-       <title>{$bugsys->options['trackertitle']} - {@"Automatic Actions"}</title>
+       <title>{$bugsys->options['trackertitle']} - {@"Automations"}</title>
 </head>
 
 <body>
 
 $header
 
-<h2>{@"Explication of Automatic Actions"}</h2>
+<h2>{@"Explication of Automations"}</h2>
 
 <table border="$stylevar[border]" cellspacing="$stylevar[spacing]" cellpadding="$stylevar[padding]px" width="$stylevar[normal_width]">
 $autoactions
index f64698dfe9908187613147d496bc92db57a50800..ffed6333dab6caeb268a3ca5e9d801bec8b33fbc 100644 (file)
@@ -193,7 +193,7 @@ $header
 <if condition="$show['newreply']">
 <!-- new reply -->
 <fieldset>
-       <legend>{@"New Reply"}<if condition="$show['autoactions']"> : <a href="explain.php?do=autoactions">{@"Automatic Action"}</a> <select name="autoaction">$select[autoaction]</select></if> $help[newreply]</legend>
+       <legend>{@"New Reply"}<if condition="$show['autoactions']"> : <a href="explain.php?do=automations">{@"Automation"}</a> <select name="autoaction">$select[autoaction]</select></if> $help[newreply]</legend>
 
        <textarea name="comment" cols="50" rows="10" style="width: 100%"></textarea>
 </fieldset>