Ignore:
Timestamp:
Jun 1, 2006 7:42:53 AM (18 years ago)
Author:
scdev
Message:

Q - Finished integrating singleton methods into existing code. Renamed SessionCache? to Cache, and renamed methods in Cache and Prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0singleton/lib/SortOrder.inc.php

    r132 r135  
    7878        if (!empty($new_sort_by)) {
    7979            $this->sort_by = $new_sort_by;
    80             $prefs->setValue('sort_by', $this->sort_by, $_SERVER['PHP_SELF']);
     80            $prefs->set('sort_by', $this->sort_by, $_SERVER['PHP_SELF']);
    8181        } else if ($prefs->exists('sort_by', $_SERVER['PHP_SELF'])) {
    82             $this->sort_by = $prefs->getValue('sort_by', $_SERVER['PHP_SELF']);
     82            $this->sort_by = $prefs->get('sort_by', $_SERVER['PHP_SELF']);
    8383        } else {
    8484            $this->sort_by = $default_sort;
     
    9292        if (!empty($new_order)) {
    9393            $this->order = $new_order;
    94             $prefs->setValue('sort_order', $this->order, $_SERVER['PHP_SELF']);
     94            $prefs->set('sort_order', $this->order, $_SERVER['PHP_SELF']);
    9595        } else if ($prefs->exists('sort_order', $_SERVER['PHP_SELF'])) {
    96             $this->order = $prefs->getValue('sort_order', $_SERVER['PHP_SELF']);
     96            $this->order = $prefs->get('sort_order', $_SERVER['PHP_SELF']);
    9797        } else {
    9898            $this->order = $default_order;
     
    116116        if (isset($sort)) {
    117117            $this->sort_by = $sort;
    118             $prefs->setValue('sort_by', $this->sort_by, $_SERVER['PHP_SELF']);
     118            $prefs->set('sort_by', $this->sort_by, $_SERVER['PHP_SELF']);
    119119        }
    120120
     
    122122        if (isset($order)) {
    123123            $this->order = $order;
    124             $prefs->setValue('sort_order', $this->order, $_SERVER['PHP_SELF']);
     124            $prefs->set('sort_order', $this->order, $_SERVER['PHP_SELF']);
    125125        }
    126126    }
Note: See TracChangeset for help on using the changeset viewer.