This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace S3\Cms; | |
/** | |
* Class to call remote methods via protocol JSON-RPC 2.0 | |
* Includes server and client functionality | |
* | |
* According to official JSON-RPC 2.0 specification | |
* http://groups.google.com/group/json-rpc/web/json-rpc-2-0 | |
* Excluding "notifications" and "batch mode" | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require(__DIR__ .'/db.php'); | |
require(__DIR__ .'/CurrencyGrabber.php'); | |
//fot test method MyCurrencyGrabberInterface::convert() | |
$from = 'USD'; | |
$to = 'UZS'; | |
$symbol = 'uzs'; | |
header('Content-Type: text/html; charset=utf-8'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Megagroup; | |
class Db extends \mysqli { | |
protected static $instance; | |
protected static $options = array(); | |
private function __construct() { | |
$o = self::$options; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Megagroup; | |
interface CurrencyGrabberInterface | |
{ | |
/** | |
* @brief Downloads currency rates from the remote server | |
* and saves in database. | |
* | |
* @return boolean |
NewerOlder