phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] property/inc/class.custom_functions.inc.php, 1.1.2.6


From: nomail
Subject: [Phpgroupware-cvs] property/inc/class.custom_functions.inc.php, 1.1.2.6
Date: Fri, 19 Nov 2004 13:22:38 +0100

Update of /property/inc
Modified Files:
        Branch: proposed-0_9_18-branch
          class.custom_functions.inc.php

date: 2004/11/19 12:22:38;  author: sigurdne;  state: Exp;  lines: +8 -68

Log Message:
no message
=====================================================================
Index: property/inc/class.custom_functions.inc.php
diff -u property/inc/class.custom_functions.inc.php:1.1.2.5 
property/inc/class.custom_functions.inc.php:1.1.2.6
--- property/inc/class.custom_functions.inc.php:1.1.2.5 Thu Nov 18 22:12:08 2004
+++ property/inc/class.custom_functions.inc.php Fri Nov 19 12:22:38 2004
@@ -21,7 +21,8 @@
        */
 
        /**
-        * Description
+        * This is a class used to gain access to custom classes stored in 
/inc/custom to be run as cron jobs
+        * or from the admin interface.
         * @package property
         */
 
@@ -45,6 +46,11 @@
 
                }
 
+               /**
+                * @param $data
+                * If $data is an array - then the process is run as cron - and 
will look for $data['function'] to
+                * determine which custom class to load
+                */
 
                function index($data='')
                {
@@ -62,72 +68,6 @@
                        $custom->pre_run($data);
                }
 
-               function select_import_conv($selected='')
-               {
-                       $dir_handle = @opendir(PHPGW_APP_INC . SEP . 'import');
-                       $i=0; $myfilearray = '';
-                       while ($file = readdir($dir_handle))
-                       {
-                               if ((substr($file, 0, 1) != '.') && 
is_file(PHPGW_APP_INC . SEP . 'import' . SEP . $file) )
-                               {
-                                       $myfilearray[$i] = $file;
-                                       $i++;
-                               }
-                       }
-                       closedir($dir_handle);
-                       sort($myfilearray);
-
-                       for ($i=0;$i<count($myfilearray);$i++)
-                       {
-                               $fname = ereg_replace('_',' ',$myfilearray[$i]);
-                               $sel_file = '';
-                               if ($myfilearray[$i]==$selected)
-                               {
-                                       $sel_file = 'selected';
-                               }
-
-                               $conv_list[] = array
-                               (
-                                       'id'            => $myfilearray[$i],
-                                       'name'          => $fname,
-                                       'selected'      => $sel_file
-                               );
-                       }
-
-                       for ($i=0;$i<count($conv_list);$i++)
-                       {
-                               if ($conv_list[$i]['selected'] != 'selected')
-                               {
-                                       unset($conv_list[$i]['selected']);
-                               }
-                       }
-
-                       return $conv_list;
-
-               }
-
-
-               function export($data)
-               {
-                       $conv_type = $data['conv_type'];
-                       $download = $data['download'];
-                       $pre_transfer = $data['pre_transfer'];
-
-                       include(PHPGW_SERVER_ROOT.'/'.'property'.'/inc/export/' 
. $conv_type);
-                       $invoice = new export_conv;
-
-                       $buffer = $invoice->overfor($download,$pre_transfer);
-
-                       return $buffer;
-               }
-
-               function export_cron($data)
-               {
-                       if($data['enabled']==1)
-                       {
-                               $this->export($data);
-                       }
-               }
 
        }
 ?>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]