Example #1
0
 /**
  *
  * @param string $type
  * @param string $custom_base
  */
 public function set_type($type, $custom_base = '')
 {
     $cn = 'browse_' . $type . '_pages';
     if (isset($_COOKIE[$cn])) {
         $this->set_use_pages($_COOKIE[$cn] == 'true');
     }
     $cn = 'browse_' . $type . '_alpha';
     if (isset($_COOKIE[$cn])) {
         $this->set_use_alpha($_COOKIE[$cn] == 'true');
         if ($this->get_use_alpha()) {
             if (count($this->_state['filter']) == 0) {
                 $this->set_filter('regex_match', '^A');
             }
         } else {
             $this->set_filter('regex_not_match', '');
         }
     }
     parent::set_type($type, $custom_base);
 }