예제 #1
0
 function __get($var)
 {
     $func = 'Contact_' . $var . '_get';
     if (function_exists($func)) {
         return call_user_func($func, $this->_cPtr);
     }
     if ($var === 'thisown') {
         return swig_otapi_get_newobject($this->_cPtr);
     }
     return Displayable::__get($var);
 }
예제 #2
0
 function __get($var)
 {
     $func = 'Contact_' . $var . '_get';
     if (function_exists($func)) {
         $r = call_user_func($func, $this->_cPtr);
         if (!is_resource($r)) {
             return $r;
         }
         $c = substr(get_resource_type($r), strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3);
         return new $c($r);
     }
     if ($var === 'thisown') {
         return swig_otapi_get_newobject($this->_cPtr);
     }
     return Displayable::__get($var);
 }