1: <?php
2: /**
3: * Base patchset class.
4: *
5: * @package Vcs
6: */
7: abstract class Horde_Vcs_Patchset_Base
8: {
9: /**
10: * @var array
11: */
12: protected $_patchsets = array();
13:
14: /**
15: * Constructor
16: *
17: * @param Horde_Vcs $rep A Horde_Vcs repository object.
18: * @param string $file The filename to create patchsets for.
19: * @param array $opts Additional options:
20: * <pre>
21: * 'range' - (array) The patchsets to process.
22: * DEFAULT: None (all patchsets are processed).
23: * </pre>
24: */
25: abstract public function __construct($rep, $file, $opts = array());
26:
27: /**
28: * TODO
29: *
30: * @return array TODO
31: * 'date'
32: * 'author'
33: * 'branches'
34: * 'tags'
35: * 'log'
36: * 'members' - array:
37: * 'file'
38: * 'from'
39: * 'to'
40: * 'status'
41: * 'added'
42: * 'deleted'
43: */
44: public function getPatchsets()
45: {
46: return $this->_patchsets;
47: }
48: }
49: