function SQLConsumerAssociationManager($connection) { // Connection should be an open DB API 2.0 compliant // connection to a database with a table as described above. The // paramstyle argument should be the argstyle used by the // connection. At the moment, only 'qmark' and 'format' are // supported. The value necessary for a particular DB is in that // DB module's paramstyle global. parent::AbstractConsumerAssociationManager(new DiffieHelmanAssociator(new SimpleHTTPClient())); $this->connection = $connection; }
function DictionaryAssociationManager($http_client) { $associator = new DiffieHelmanAssociator($http_client); parent::AbstractConsumerAssociationManager($associator); $this->association_path = '/tmp/oid_consumer_associations.txt'; }