-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstubProdsDir.class.php
53 lines (45 loc) · 1.3 KB
/
stubProdsDir.class.php
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
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of stubProdsDir
*
* @author lisa
*/
require_once dirname(__FILE__) . '/../../src/ProdsPath.class.php';
require_once dirname(__FILE__) . '/../../src/ProdsDir.class.php';
require_once dirname(__FILE__) . '/../../src/RODSAccount.class.php';
class stubProdsDir extends ProdsDir {
/**
* Default Constructor.
*
* @param RODSAccount account iRODS account used for connection
* @param string $path_str the path of this dir
* @param boolean $verify whether verify if the path exsits
* @param RODSDirStats $stats if the stats for this dir is already known, initilize it here.
* @return a new ProdsDir
*/
public function __construct(RODSAccount &$account, $path_str, $verify=false,
RODSDirStats $stats=NULL)
{
parent::__construct($account, $path_str, $verify, $stats);
}
public function exists()
{
return true;
}
public function toURI()
{
$retval = $this->account->user.
(empty($this->account->zone)?'':'.'.$this->account->zone).
"@".$this->account->host.":".$this->account->port;
return ($retval.$this->path_str);
}
public function getPosition()
{
return $this->position;
}
}
?>