fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [15774] refactor some code


From: sigurdne
Subject: [Fmsystem-commits] [15774] refactor some code
Date: Sat, 1 Oct 2016 15:41:15 +0000 (UTC)

Revision: 15774
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15774
Author:   sigurdne
Date:     2016-10-01 15:41:15 +0000 (Sat, 01 Oct 2016)
Log Message:
-----------
refactor some code

Modified Paths:
--------------
    trunk/property/inc/class.sogeneric.inc.php

Modified: trunk/property/inc/class.sogeneric.inc.php
===================================================================
--- trunk/property/inc/class.sogeneric.inc.php  2016-10-01 15:40:08 UTC (rev 
15773)
+++ trunk/property/inc/class.sogeneric.inc.php  2016-10-01 15:41:15 UTC (rev 
15774)
@@ -2533,107 +2533,6 @@
                                        break;
 
 // END CONTROLLER TABLES
-// START RENTAL TABLES
-                               case 'location_factor':
-                                       $info = array
-                                               (
-                                               'table' => 
'rental_location_factor',
-                                               'id' => array('name' => 'id', 
'type' => 'auto'),
-                                               'fields' => array(
-                                                       array(
-                                                               'name' => 
'part_of_town_id',
-                                                               'descr' => 
lang('location'),
-                                                               'type' => 
'select',
-                                                               'nullable' => 
false,
-                                                               'filter' => 
true,
-                                                               'values_def' => 
array(
-                                                                       
'valueset' => false,
-                                                                       
'get_single_value' => 'property.sogeneric.get_name',
-                                                                       
'method' => 'property.bogeneric.get_list',
-                                                                       
'method_input' => array('type' => 'part_of_town', 'selected' => 
'##part_of_town_id##')
-                                                               )
-                                                       ),
-                                                       array(
-                                                               'name' => 
'factor',
-                                                               'descr' => 
lang('factor'),
-                                                               'type' => 
'numeric',
-                                                               'nullable' => 
false,
-                                                               'size' => 4,
-                                                               'sortable' => 
true
-                                                       ),
-                                                       array(
-                                                               'name' => 
'remark',
-                                                               'descr' => 
lang('remark'),
-                                                               'type' => 'text'
-                                                       )
-                                               ),
-                                               'edit_msg' => lang('edit unit'),
-                                               'add_msg' => lang('add unit'),
-                                               'name' => lang('unit'),
-                                               'acl_app' => 'rental',
-                                               'acl_location' => '.admin',
-                                               'menu_selection' => 
'admin::rental::location_factor',
-                                               'default' => array(
-                                                       'user_id' => 
array('add' => '$this->account'),
-                                                       'entry_date' => 
array('add' => 'time()'),
-                                                       'modified_date' => 
array('edit' => 'time()'),
-                                               )
-                                       );
-                                       break;
-                               case 'composite_standard':
-                                       $info = array
-                                               (
-                                               'table' => 
'rental_composite_standard',
-                                               'id' => array('name' => 'id', 
'type' => 'int'),
-                                               'fields' => array
-                                                       (
-                                                       array
-                                                               (
-                                                               'name' => 
'name',
-                                                               'descr' => 
lang('name'),
-                                                               'type' => 
'varchar'
-                                                       ),
-                                                       array
-                                                               (
-                                                               'name' => 
'factor',
-                                                               'descr' => 
lang('factor'),
-                                                               'type' => 
'numeric',
-                                                               'nullable' => 
false,
-                                                               'size' => 4,
-                                                               'sortable' => 
true
-                                                       )
-                                               ),
-                                               'edit_msg' => lang('edit unit'),
-                                               'add_msg' => lang('add unit'),
-                                               'name' => lang('unit'),
-                                               'acl_app' => 'rental',
-                                               'acl_location' => '.admin',
-                                               'menu_selection' => 
'admin::rental::composite_standard'
-                                       );
-                                       break;
-                               case 'responsibility_unit':
-                                       $info = array
-                                               (
-                                               'table' => 
'rental_contract_responsibility_unit',
-                                               'id' => array('name' => 'id', 
'type' => 'int'),
-                                               'fields' => array
-                                                       (
-                                                       array
-                                                               (
-                                                               'name' => 
'name',
-                                                               'descr' => 
lang('name'),
-                                                               'type' => 
'varchar'
-                                                       ),
-                                               ),
-                                               'edit_msg' => lang('edit unit'),
-                                               'add_msg' => lang('add unit'),
-                                               'name' => lang('unit'),
-                                               'acl_app' => 'rental',
-                                               'acl_location' => '.admin',
-                                               'menu_selection' => 
'admin::rental::responsibility_unit'
-                                       );
-                                       break;
-// END RENTAL TABLES
 
                                default:
                                        $message = lang('ERROR: illegal type 
%1', $type);




reply via email to

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