Example #1
0
 /**
  * Class constructor
  *
  * @return void
  */
 public function __construct()
 {
     $this->_config = PEAR_Config::singleton();
     $this->reg = $this->_config->getRegistry();
     $this->_channels = array();
     $this->_all = false;
     $this->_all_channels = false;
     $this->_all_values = true;
     $this->_verbose = false;
     $this->_readable = false;
     $this->search_roles = '|data|doc|ext|php|man|script|src|test|www|';
     $this->_sort_size = false;
     $this->_round = false;
     $this->_channel = array();
     $this->errors = array();
     $channels_full = array();
     $channels_alias = array();
     $_default_index = null;
     $reg_channels = $this->reg->getChannels();
     $num_channels = sizeof($reg_channels);
     for ($i = 0; $i < $num_channels; $i++) {
         $channel = $reg_channels[$i];
         $fullname = $channel->getName();
         $channels_full[$i] = $fullname;
         $channels_alias[$i] = $channel->getAlias();
         if ($fullname == PEAR_CONFIG_DEFAULT_CHANNEL) {
             $this->_default_index = $i;
         }
     }
     $this->_channel = array();
     $this->_channels_full = $channels_full;
     $this->_channels_alias = $channels_alias;
     $this->reg_channels = $reg_channels;
 }