Ignore:
Timestamp:
Dec 18, 2005 12:16:03 AM (18 years ago)
Author:
scdev
Message:

detabbed all files ;P

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/SortOrder.inc.php

    r41 r42  
    1313 * @requires    This class requires Utilities.inc.php
    1414 * @requires    This class requires Prefs.inc.php
    15  * 
     15 *
    1616 * @author  Quinn Comendant <quinn@strangecode.com>
    1717 * @version 1.6.1
     
    2222
    2323class SortOrder {
    24        
     24
    2525    var $_columns;
    2626    var $sort_by;
     
    3030    var $default_sort;
    3131    var $default_order;
    32    
     32
    3333    /**
    3434     * Constructor. Finds the current sort by and order.
     
    4040     */
    4141    function SortOrder($default_sort = '', $default_order = '')
    42     {       
     42    {
    4343        $this->setDefault($default_sort, $default_order);
    44    
     44
    4545        $this->default_sort = $default_sort;
    4646        $this->default_order = $default_order;
    4747    }
    48    
     48
    4949    /**
    50      * Build an array of valid sort SQL for each DB column. This SQL is reference 
     50     * Build an array of valid sort SQL for each DB column. This SQL is reference
    5151     * by the name and 'asc' or 'desc'.
    5252     *
     
    6262        );
    6363    }
    64    
     64
    6565    /**
    6666     * Set sort and order values. This is how you set new sort values after
     
    8888            $this->sort_by = $default_sort;
    8989        }
    90        
     90
    9191        // Which sort order to use?
    9292        // (1) By GET or POST specification, if available.
     
    103103        }
    104104    }
    105    
    106    
     105
     106
    107107    /**
    108108     * Set sort and order values. This is how you set new sort values after
     
    121121            Prefs::setValue('sort_by', $this->sort_by, $_SERVER['PHP_SELF']);
    122122        }
    123        
     123
    124124        // Set new order value.
    125125        if (isset($order)) {
     
    128128        }
    129129    }
    130    
    131    
     130
     131
    132132    /**
    133133     * Returns the SQL code to sort by set column and set order.
     
    149149            return '';
    150150        }
    151     } 
    152    
    153    
     151    }
     152
     153
    154154    /**
    155155     * Prints a link for a column header with URL sort determining logic.
     
    171171            ?><a href="<?php echo App::oHREF($_SERVER['PHP_SELF'] . '?sort=' . $col . '&order=' . $default_order); ?>" title="<?php echo sprintf(_("Sort by %s"), $col_name); ?>"><?php echo $col_name; ?></a><?php
    172172        }
    173     }     
     173    }
    174174
    175175}
Note: See TracChangeset for help on using the changeset viewer.