[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6484] Removed link to "internal_structure.txt" from
From: |
Erik Holm-Larsen |
Subject: |
[Fmsystem-commits] [6484] Removed link to "internal_structure.txt" from code |
Date: |
Wed, 13 Oct 2010 08:53:51 +0000 |
Revision: 6484
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6484
Author: erikhl
Date: 2010-10-13 08:53:51 +0000 (Wed, 13 Oct 2010)
Log Message:
-----------
Removed link to "internal_structure.txt" from code
Modified Paths:
--------------
trunk/rental/setup/default_records.inc.php
Modified: trunk/rental/setup/default_records.inc.php
===================================================================
--- trunk/rental/setup/default_records.inc.php 2010-10-13 08:36:42 UTC (rev
6483)
+++ trunk/rental/setup/default_records.inc.php 2010-10-13 08:53:51 UTC (rev
6484)
@@ -38,33 +38,6 @@
$GLOBALS['phpgw']->locations->add('.ORG', 'Locations for
organisational units', 'rental',false);
$GLOBALS['phpgw']->locations->add('.ORG.BK', 'Organisational units
in Bergen Kommune', 'rental',false);
-
-// Open the text file from the setup folder in the rental module of portico
estate
-/*$lines = file(PHPGW_SERVER_ROOT."/rental/setup/internal_structure.txt");
-// Read the first line to get the headers out of the way
-$result = array();
-$dep_nr = '';
-$dep_name = '';
-
-// Loop through each line of the file, parsing CSV data to a php array
-foreach ($lines as $row) {
- $columns = explode(';',$row);
- if($dep_nr != $columns[0]){
- $dep_nr = $columns[0];
- $dep_name = $columns[1];
- if(strlen($dep_nr) < 2){
- $dep_nr = str_pad($dep_nr,2,"0",STR_PAD_LEFT);
- }
-
$GLOBALS['phpgw']->locations->add(".ORG.BK.{$dep_nr}",$dep_name,'rental',false);
- }
- $unit_nr = $columns[2];
- $unit_name = $columns[3];
- if(strlen($dep_nr) < 4){
- $unit_nr = str_pad($unit_nr,2,"0",STR_PAD_LEFT);
- }
-
$GLOBALS['phpgw']->locations->add(".ORG.BK.{$dep_nr}.{$unit_nr}",$unit_name,'rental',false);
-}
-*/
$GLOBALS['phpgw']->locations->add('.RESPONSIBILITY', 'Fields
of responsibilities', 'rental',false);
$loc_id_internal =
$GLOBALS['phpgw']->locations->add('.RESPONSIBILITY.INTERNAL', 'Field of
responsibility: internleie', 'rental',false);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6484] Removed link to "internal_structure.txt" from code,
Erik Holm-Larsen <=