-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPairtreeStorage.php
More file actions
41 lines (39 loc) · 846 Bytes
/
Copy pathPairtreeStorage.php
File metadata and controls
41 lines (39 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
*
* @file
* PHP Implementation of Pairtree.
*
* @author Iain Emsley <iain_emsley@austgate.co.uk>
* @category Redis storage
* @license MIT BSD
* @link http://www.austgate.co.uk
* @package 0.1
*
*
* PHP Version 5.3.10
*/
require __DIR__.'/PairtreeClient.php';
/**
* Factory class to be called to call the storage client
*
*/
class PairtreeStorageFactory
{
/**
* Factory to begin the creation of Pairtree system.
* Calls the Pairtree Client
*
* Called with PairtreeStorageFactory::pairtreeStorage
*
* @param string $dir
*
* @param string $uriBase
* @param number $shorty
* @param string $hashlib
*/
public static function pairtreeStorage($dir, $uriBase, $shorty = 2, $hashlib = null)
{
return new PairtreeClient($dir, $uriBase, $shorty = 2, $hashlib = null);
}
}