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