when creating a function or type, get all available objects, not just local objects
authorchriskl <chriskl>
Fri, 27 Dec 2002 16:31:32 +0000 (16:31 +0000)
committerchriskl <chriskl>
Fri, 27 Dec 2002 16:31:32 +0000 (16:31 +0000)
public_html/functions.php
public_html/types.php

index b399253d9320c6913ea99aec71506a2ffb071b54..abd37a9cdb646f8b8bc4f8e5cb755cee350ed8d3 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage functions in a database
         *
-        * $Id: functions.php,v 1.6 2002/09/18 19:01:47 xzilla Exp $
+        * $Id: functions.php,v 1.7 2002/12/27 16:31:32 chriskl Exp $
         */
 
        // Include application functions
                if (!isset($_POST['formLanguage'])) $_POST['formLanguage'] = '';
                if (!isset($_POST['formDefinition'])) $_POST['formDefinition'] = '';
                
-               $types = &$localData->getTypes();
-               $langs = &$localData->getLangs();
+               $types = &$localData->getTypes(true);
+               $langs = &$localData->getLanguages();
 
                echo "<h2>", htmlspecialchars($_REQUEST['database']), ": Functions: Create Function</h2>\n";
                $misc->printMsg($msg);
                                        htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Properties</a></td>\n";
                                echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=edit&database=",
                                        htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Edit</a></td>\n";
-                               echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=confirm_drop&database=", 
+                               echo "<td class=opbutton{$id}><a href=\"$PHP_SELF?action=confirm_drop&database=",
                                        htmlspecialchars($_REQUEST['database']), "&function=", urlencode($func_full), "&function_oid=", $funcs->f[$data->fnFields['fnoid']], "\">Drop</a></td>\n";
                                echo "</tr>\n";
                                $funcs->moveNext();
index b7474d8a99373e1614d487b77870268cbac12b39..414c6a1b6333e890958d4ab2c889e48524dce446 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage types in a database
         *
-        * $Id: types.php,v 1.1 2002/12/21 11:16:46 chriskl Exp $
+        * $Id: types.php,v 1.2 2002/12/27 16:31:32 chriskl Exp $
         */
 
        // Include application functions
                if (!isset($_POST['typstorage'])) $_POST['typstorage'] = $data->typStorageDef;
 
                // Retrieve all functions and types in the database
-               $funcs = &$localData->getFunctions();
+               $funcs = &$localData->getFunctions(true);
                $types = &$localData->getTypes();
 
                echo "<h2>", htmlspecialchars($_REQUEST['database']), ": {$strTypes}: {$strCreateType}</h2>\n";
                $misc->printMsg($msg);
-               
+
                echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
                echo "<table width=\"100%\">\n";
                echo "<tr><th class=data><b>{$strName}</b></th></tr>\n";