Changeset 17889

Show
Ignore:
Timestamp:
10/03/08 12:26:49 (2 months ago)
Author:
flack
Message:

more uniform code layout

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.invoices/viewer.php

    r17626 r17889  
    2020 
    2121        // Match / 
    22         $this->_request_switch['list_open'] = array( 
     22        $this->_request_switch['list_open'] = array 
     23        ( 
    2324            'handler' => Array('org_openpsa_invoices_handler_list', 'dashboard'), 
    2425        ); 
     
    3334 
    3435        // Match /list/customer/<company guid> 
    35         $this->_request_switch['list_customer_open'] = array( 
     36        $this->_request_switch['list_customer_open'] = array 
     37        ( 
     38            'handler' => Array('org_openpsa_invoices_handler_list', 'customer'), 
    3639            'fixed_args' => array('list', 'customer'), 
    3740            'variable_args' => 1, 
    38             'handler' => Array('org_openpsa_invoices_handler_list', 'customer'), 
    3941        ); 
    4042 
    4143        // Match /list/customer/all/<company guid> 
    42         $this->_request_switch['list_customer_all'] = array( 
     44        $this->_request_switch['list_customer_all'] = array 
     45        ( 
     46            'handler' => Array('org_openpsa_invoices_handler_list', 'customer'), 
    4347            'fixed_args' => array('list', 'customer', 'all'), 
    4448            'variable_args' => 1, 
    45             'handler' => Array('org_openpsa_invoices_handler_list', 'customer'), 
    4649        ); 
    4750 
    4851        // Match /list/deliverable/<deliverable guid> 
    49         $this->_request_switch['list_deliverable_all'] = array( 
     52        $this->_request_switch['list_deliverable_all'] = array 
     53        ( 
     54            'handler' => Array('org_openpsa_invoices_handler_list', 'deliverable'), 
    5055            'fixed_args' => array('list', 'deliverable'), 
    5156            'variable_args' => 1, 
    52             'handler' => Array('org_openpsa_invoices_handler_list', 'deliverable'), 
    5357        ); 
    5458 
    5559        // Match /invoice/new/ 
    56         $this->_request_switch['invoice_new_nocustomer'] = array( 
     60        $this->_request_switch['invoice_new_nocustomer'] = array 
     61        ( 
     62            'handler' => Array('org_openpsa_invoices_handler_edit', 'new'), 
    5763            'fixed_args' => array('invoice', 'new'), 
    58             'handler' => Array('org_openpsa_invoices_handler_edit', 'new'), 
    5964        ); 
    6065 
    6166        // Match /invoice/new/<company guid> 
    62         $this->_request_switch['invoice_new'] = array( 
     67        $this->_request_switch['invoice_new'] = array 
     68        ( 
     69            'handler' => Array('org_openpsa_invoices_handler_edit', 'new'), 
    6370            'fixed_args' => array('invoice', 'new'), 
    6471            'variable_args' => 1, 
    65             'handler' => Array('org_openpsa_invoices_handler_edit', 'new'), 
    6672        ); 
    6773 
    6874        // Match /invoice/edit/<guid> 
    69         $this->_request_switch['invoice_edit'] = array( 
     75        $this->_request_switch['invoice_edit'] = array 
     76        ( 
     77            'handler' => Array('org_openpsa_invoices_handler_edit', 'edit'), 
    7078            'fixed_args' => array('invoice', 'edit'), 
    7179            'variable_args' => 1, 
    72             'handler' => Array('org_openpsa_invoices_handler_edit', 'edit'), 
    7380        ); 
    7481 
    7582        // Match /invoice/delete/<guid> 
    76         $this->_request_switch['invoice_delete'] = array( 
     83        $this->_request_switch['invoice_delete'] = array 
     84        ( 
     85            'handler' => Array('org_openpsa_invoices_handler_delete', 'delete'), 
    7786            'fixed_args' => array('invoice', 'delete'), 
    7887            'variable_args' => 1, 
    79             'handler' => Array('org_openpsa_invoices_handler_delete', 'delete'), 
    8088        ); 
    8189 
    8290        // Match /invoice/mark_sent/<guid> 
    83         $this->_request_switch['invoice_mark_sent'] = array( 
     91        $this->_request_switch['invoice_mark_sent'] = array 
     92        ( 
     93            'handler' => Array('org_openpsa_invoices_handler_edit', 'mark_sent'), 
    8494            'fixed_args' => array('invoice', 'mark_sent'), 
    8595            'variable_args' => 1, 
    86             'handler' => Array('org_openpsa_invoices_handler_edit', 'mark_sent'), 
    8796        ); 
    8897 
    8998        // Match /invoice/mark_paid/<guid> 
    90         $this->_request_switch['invoice_mark_paid'] = array( 
     99        $this->_request_switch['invoice_mark_paid'] = array 
     100        ( 
     101            'handler' => Array('org_openpsa_invoices_handler_edit', 'mark_paid'), 
    91102            'fixed_args' => array('invoice', 'mark_paid'), 
    92103            'variable_args' => 1, 
    93             'handler' => Array('org_openpsa_invoices_handler_edit', 'mark_paid'), 
    94104        ); 
    95105 
    96106        // Match /invoice/<guid> 
    97         $this->_request_switch['invoice'] = array( 
     107        $this->_request_switch['invoice'] = array 
     108        ( 
     109            'handler' => Array('org_openpsa_invoices_handler_edit', 'view'), 
    98110            'fixed_args' => array('invoice'), 
    99111            'variable_args' => 1, 
    100             'handler' => Array('org_openpsa_invoices_handler_edit', 'view'), 
    101112        ); 
    102113 
     
    110121        ); 
    111122 
    112         $_MIDCOM->add_link_head(array 
     123        $_MIDCOM->add_link_head 
     124        ( 
     125            array 
    113126            ( 
    114127                'rel' => 'stylesheet',