Naming convention applied
authorRoland Häder <roland@mxchange.org>
Mon, 28 Jun 2010 19:28:53 +0000 (19:28 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 28 Jun 2010 19:28:53 +0000 (19:28 +0000)
inc/extensions-functions.php

index 80513f4db8478e3085293586cfc3638ca45c0a5d..2aab347cb82b7ead98fe349cccb3ad24b298706b 100644 (file)
@@ -166,9 +166,9 @@ function loadExtension ($ext_name, $ext_mode = 'init', $ext_ver = '', $dry_run =
 }
 
 // Registeres an extension and possible update depencies
-function registerExtension ($ext_name, $task_id, $dry_run = false, $logout = true) {
+function registerExtension ($ext_name, $taskId, $dry_run = false, $logout = true) {
        // Set current extension name
-       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',task_id=' . $task_id . ',dry_run=' . intval($dry_run) . ',logout=' . intval($logout) . ' - ENTERED!');
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext_name=' . $ext_name . ',task_id=' . $taskId . ',dry_run=' . intval($dry_run) . ',logout=' . intval($logout) . ' - ENTERED!');
        setCurrentExtensionName($ext_name);
 
        // Enable dry-run
@@ -200,14 +200,14 @@ function registerExtension ($ext_name, $task_id, $dry_run = false, $logout = tru
        } // END - if
 
        // Is the task id zero? Then we need to auto-fix it here
-       if ($task_id == '0') {
+       if ($taskId == '0') {
                // Try to find the task
-               $task_id = determineExtensionTaskId(getCurrentExtensionName());
+               $taskId = determineExtensionTaskId(getCurrentExtensionName());
 
                // Still zero and not in dry-run?
-               if (($task_id == '0') && (!isExtensionDryRun())) {
+               if (($taskId == '0') && (!isExtensionDryRun())) {
                        // Now try to create a new task
-                       $task_id = createNewExtensionTask(getCurrentExtensionName());
+                       $taskId = createNewExtensionTask(getCurrentExtensionName());
 
                        // Is it still zero?
                        if ($taskId == '0') {
@@ -370,7 +370,7 @@ function registerExtension ($ext_name, $task_id, $dry_run = false, $logout = tru
                                runFilterChain('post_extension_installed', array(
                                        'pool'     => 'extension',
                                        'ext_name' => getCurrentExtensionName(),
-                                       'task_id'  => $task_id
+                                       'task_id'  => $taskId
                                ));
 
                                // Re-init queries and notes
@@ -397,11 +397,11 @@ function registerExtension ($ext_name, $task_id, $dry_run = false, $logout = tru
                        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currentExtension=' . getCurrentExtensionName());
                        $ret = false;
                }
-       } elseif (($task_id > 0) && (getCurrentExtensionName() != '')) {
+       } elseif (($taskId > 0) && (getCurrentExtensionName() != '')) {
                //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName());
                // Remove task from system when id and extension's name is valid
                SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_task_system` WHERE `id`=%s AND `status`='NEW' LIMIT 1",
-                       array(bigintval($task_id)), __FUNCTION__, __LINE__);
+                       array(bigintval($taskId)), __FUNCTION__, __LINE__);
        }
 
        // Is this the sql_patches?