Changes between Version 5 and Version 6 of WF/Paginacao


Ignore:
Timestamp:
07/30/07 15:48:46 (17 years ago)
Author:
cassiomaes
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WF/Paginacao

    v5 v6  
    22Esta classe tem a finalidade de paginar os resultados de uma busca e permitir sua ordenação. 
    33 
    4  
    5  
    64=== Métodos === 
    75 
     
    4341 
    4442{{{ 
    45  
    4643$paging->useDatabase(true); 
    47  
    4844}}} 
    4945 
     
    6359 
    6460{{{ 
    65  
    6661$paging->enableSorting(true); 
    67  
    6862}}} 
    6963 
     
    7973 
    8074{{{ 
    81  
    8275$titulo['name'] = 'Nome do Campo'; 
    83  
    8476$titulo['id'] = 1; 
    85  
    8677}}} 
    8778 
     
    10697 
    10798{{{ 
    108  
    10999$titulos = array(); 
    110  
    111100$titulos[] = array('name' => 'UID', 'id' => 1); 
    112  
    113101$titulos[] = array('name' => 'Nome', 'id' => 2); 
    114  
    115102$titulos[] = array('name' => 'Telefone', 'id' => 3); 
    116  
    117103$titulos[] = array('name' => 'Endereco', 'id' => 4); 
    118104 
    119105$paging->setSortingTitles($titulos); 
    120  
    121106}}} 
    122107 
     
    140125 
    141126$db = wf_create_object("wf_db"); 
    142  
    143127$itens = $paging->restrictDBItems($db, "SELECT uid, nome, telefone FROM usuario"); 
    144128 
     
    156140 
    157141{{{ 
    158  
    159142$titulo['id'] = #id_da_coluna; //ex: 1 
    160  
    161143$titulo['name'] = 'Título + Seta de Ordenação'; //ex: "Telefone + <Seta>" 
    162  
    163144$titulo['original_name'] = 'Título'; //ex: "Telefone" 
    164  
    165145$titulo['link'] = "http://link_para_a_página_com_ordenacao/"; //ex: 
    166146 
    167  
    168147"http://localhost/index.php?menuaction=workflow.cel_run_activity.go&activity_id=116&s_co=1&s_so=1" 
    169  
    170148}}} 
    171149