search for: bswitch

Displaying 2 results from an estimated 2 matches for "bswitch".

Did you mean: switch
2006 Jun 21
26
Implementing a boolean "switch" in a Class
...be "globally" accessible to all instances of a class. Seems like the boolean should be in the class prototype, but I was troubled by the difficulty of setting the prototype boolean to true. Maybe I''m missing something? var MyObject = Class.create(); MyObject.prototype = { bSwitch: false, ... other methods and properties } var oMyOb1 = new MyObject(); var oMyOb2 = new MyObject(); alert(oMyOb1.bSwitch); // reports false alert(oMyOb2.bSwitch); // reports false Now set the value of bSwitch to true so all the oMyObN''s will see a true value. I can see the followi...
2009 May 27
1
PHP AGI Problems
.../playspecific.php require_once('database.class.php'); require_once('AGI.class.php'); $database = new database(); $AGI = new AGI(); $database->selectdb("switchboard"); while ($error_count < 5 && !$msg_result) { $result = $AGI->send_cmd("GET DATA /bswitch/menu/enter-msg-id 3000 4"); $msg_id = $result[result]; if ($msg_id < 1000){ echo "\ndebug: msgid < 1000, invalid ($msg_id)!\n"; //var_dump($msg_id); $error_count += 1; $AGI->send_cmd("EXEC PLAYBACK /bswitch/menu/invalid-msg-id");...