Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * Copies error set in $obj to current object
  *
  * @param S2P_SDK_Error $obj
  *
  * @return bool
  */
 public function copy_error($obj)
 {
     if (empty($obj) or !$obj instanceof S2P_SDK_Error or !($error_arr = $obj->get_error()) or !is_array($error_arr)) {
         return false;
     }
     $this->error_no = $error_arr['error_no'];
     $this->error_msg = $error_arr['error_msg'];
     $this->error_simple_msg = $error_arr['error_simple_msg'];
     $this->error_debug_msg = $error_arr['error_debug_msg'];
     return true;
 }