Пример #1
0
 function __construct($other = null)
 {
     if (is_resource($other) && get_resource_type($other) === '_p_Xapian__RSet') {
         $this->_cPtr = $other;
         return;
     }
     switch (func_num_args()) {
         case 0:
             $this->_cPtr = new_RSet();
             break;
         default:
             $this->_cPtr = new_RSet($other);
     }
 }
Пример #2
0
 function __construct($other = null)
 {
     switch (func_num_args()) {
         case 0:
             $r = new_RSet();
             break;
         default:
             $r = new_RSet($other);
     }
     $this->_cPtr = $r;
 }