- Timestamp:
- Nov 30, 2013 11:19:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/lib/MCVE.inc.php
r438 r440 31 31 class MCVE { 32 32 33 var$username;34 var$password;35 var$host = 'localhost';36 var$ip_port = 8333;37 var$ssl_port = 8444;38 var$ca_bundle_file = '/usr/share/ssl/certs/ca-bundle.crt';39 var$connect_method = 'ip';40 var$timeout = 10;41 var$blocking = 1;42 var$connected = false;43 var$conn;44 45 function MCVE($username, $password)33 public $username; 34 public $password; 35 public $host = 'localhost'; 36 public $ip_port = 8333; 37 public $ssl_port = 8444; 38 public $ca_bundle_file = '/usr/share/ssl/certs/ca-bundle.crt'; 39 public $connect_method = 'ip'; 40 public $timeout = 10; 41 public $blocking = 1; 42 public $connected = false; 43 public $conn; 44 45 public function __construct($username, $password) 46 46 { 47 47 $app =& App::getInstance(); … … 58 58 } 59 59 60 function _connect()60 private function _connect() 61 61 { 62 62 $app =& App::getInstance(); … … 123 123 } 124 124 125 function beginTrans()125 public function beginTrans() 126 126 { 127 127 if (!$this->_connect()) { … … 134 134 } 135 135 136 function transParam($tid, $key, $var1, $var2=null)136 public function transParam($tid, $key, $var1, $var2=null) 137 137 { 138 138 if (!isset($var2)) { … … 144 144 } 145 145 146 function sendTrans($tid, $type='', $hide_msg=false)146 public function sendTrans($tid, $type='', $hide_msg=false) 147 147 { 148 148 $app =& App::getInstance(); … … 191 191 } 192 192 193 function disconnect($tid)193 public function disconnect($tid) 194 194 { 195 195 if ($this->connected) {
Note: See TracChangeset
for help on using the changeset viewer.