Created
May 17, 2011 09:48
-
-
Save odino/976213 to your computer and use it in GitHub Desktop.
This file contains 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 Orient\Foundation\Protocol\Http; | |
use Orient\Contract\Protocol\Adapter; | |
Class Adapter implements Adapter | |
{ | |
public function __construct($hostname, $port, $username, $password, $database = NULL) | |
{ | |
$client = new Curl(); | |
$this->binding = new Binding($client, $hostname, $port, $username, $password, $database); | |
} | |
public function execute($sql) | |
{ | |
return $this->binding->command($sql); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment