Skip to content

Instantly share code, notes, and snippets.

@odino
Created May 17, 2011 09:48
Show Gist options
  • Save odino/976213 to your computer and use it in GitHub Desktop.
Save odino/976213 to your computer and use it in GitHub Desktop.
<?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