예제 #1
0
 function __construct($other = null)
 {
     if (is_resource($other) && get_resource_type($other) === '_p_Xapian__MSet') {
         $this->_cPtr = $other;
         return;
     }
     switch (func_num_args()) {
         case 0:
             $this->_cPtr = new_MSet();
             break;
         default:
             $this->_cPtr = new_MSet($other);
     }
 }
예제 #2
0
 function __construct($other = null)
 {
     switch (func_num_args()) {
         case 0:
             $r = new_MSet();
             break;
         default:
             $r = new_MSet($other);
     }
     $this->_cPtr = $r;
 }