1: <?php
2: /**
3: * CVS file class.
4: *
5: * Copyright 2000-2012 Horde LLC (http://www.horde.org/)
6: *
7: * See the enclosed file COPYING for license information (LGPL). If you
8: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
9: *
10: * @author Anil Madhavapeddy <anil@recoil.org>
11: * @author Michael Slusarz <slusarz@horde.org>
12: * @package Vcs
13: */
14: class Horde_Vcs_File_Cvs extends Horde_Vcs_File_Rcs
15: {
16: /**
17: * The current driver.
18: *
19: * @var string
20: */
21: protected $_driver = 'Cvs';
22:
23: /**
24: * If this file is present in an Attic directory, this indicates it.
25: *
26: * @return boolean True if file is in the Attic, and false otherwise
27: */
28: public function isDeleted()
29: {
30: return (substr($this->_dir, -5) == 'Attic');
31: }
32:
33: /**
34: * TODO
35: */
36: public function getBranchList()
37: {
38: return $this->_revlist();
39: }
40:
41: /**
42: * TODO
43: */
44: public function getTags()
45: {
46: return $this->_symrev;
47: }
48:
49: /**
50: * TODO
51: */
52: public function getBranches()
53: {
54: $this->_ensureInitialized();
55: return $this->_branches;
56: }
57: }