Ignore:
Timestamp:
03/18/10 08:32:36 (14 years ago)
Author:
pedroerp
Message:

Ticket #609 - Substituindo instanciações diretas (new) pela nova factory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/workflow/branches/609/inc/class.bo_userinterface.inc.php

    r2291 r2292  
    1212require_once('class.so_userinterface.inc.php'); 
    1313require_once('class.bo_ajaxinterface.inc.php'); 
    14 require_once('class.Paging.inc.php'); 
    1514 
    1615require_once(GALAXIA_LIBRARY . SEP . 'src' . SEP . 'GUI' . SEP . 'GUI.php'); 
     
    148147                $itemsPerPage = isset($preferences['ui_items_per_page']) ? $preferences['ui_items_per_page'] : 15; 
    149148                $lightVersion = ((isset($preferences['use_light_interface']) ? $preferences['use_light_interface'] : 0) == 1); 
    150                 $paging = new Paging($itemsPerPage, $_POST); 
     149                $paging = Factory::newInstance('Paging', $itemsPerPage, $_POST); 
    151150 
    152151                /* define the sorting */ 
     
    726725                        /* paginate the result */ 
    727726                        $itemsPerPage = isset($_SESSION['phpgw_info']['workflow']['user']['preferences']['ui_items_per_page']) ? $_SESSION['phpgw_info']['workflow']['user']['preferences']['ui_items_per_page'] : 15; 
    728                         $paging = new Paging($itemsPerPage, $_POST); 
     727                        $paging = Factory::newInstance('Paging', $itemsPerPage, $_POST); 
    729728                        $output['instances'] = $paging->restrictItems($output['instances']); 
    730729                        $output['paging_links'] = $paging->commonLinks(); 
Note: See TracChangeset for help on using the changeset viewer.