示例#1
0
 function __construct(SOURCERequest $props = NULL)
 {
     parent::__construct();
     if ($props) {
         $this->req = $props;
     } else {
         $this->req = new REQUEST();
     }
     if (isset($this->req->props['db_server'])) {
         $this->default_db_server = $this->req->props['db_server'];
     } else {
         $this->default_db_server = false;
     }
     if (isset($this->req->props['db_name'])) {
         $this->default_db_name = $this->req->props['db_name'];
     } else {
         $this->default_db_name = false;
     }
     if (isset($this->req->props['db_group'])) {
         $this->default_db_group = $this->req->props['db_group'];
     } else {
         $this->default_db_group = false;
     }
     if ($this->default_db_server !== false && $this->default_db_name !== false && $this->default_db_group !== false) {
         $this->default_postfix = $this->GetCachePostfix();
     } else {
         $this->default_postfix = false;
     }
     if (isset($this->req->props['base_mask'])) {
         $this->base_mask = new MASK($this->req->props['base_mask']);
         if ($this->base_mask->IsFull()) {
             $this->base_mask = NULL;
         }
     } else {
         $this->base_mask = NULL;
     }
 }
示例#2
0
 function __construct($control = false)
 {
     parent::__construct();
     $this->control = $control;
     $this->uid_array = false;
 }