示例#1
0
 function __construct($slot_, $str_ = null, $prefix_ = true)
 {
     if (is_resource($slot_) && get_resource_type($slot_) === '_p_Xapian__NumberValueRangeProcessor') {
         $this->_cPtr = $slot_;
         return;
     }
     switch (func_num_args()) {
         case 1:
             $this->_cPtr = new_NumberValueRangeProcessor($slot_);
             break;
         default:
             $this->_cPtr = new_NumberValueRangeProcessor($slot_, $str_, $prefix_);
     }
 }
示例#2
0
 function __construct($valno_, $str_ = null, $prefix_ = true)
 {
     switch (func_num_args()) {
         case 1:
             $r = new_NumberValueRangeProcessor($valno_);
             break;
         default:
             $r = new_NumberValueRangeProcessor($valno_, $str_, $prefix_);
     }
     $this->_cPtr = $r;
 }