This file is indexed.

/usr/share/php/Horde/ActiveSync/Driver/MockConnector.php is in php-horde-activesync 2.19.2-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
 * Horde_ActiveSync_Driver_MockConnector::
 *
 * @license   http://www.horde.org/licenses/gpl GPLv2
 *            NOTE: According to sec. 8 of the GENERAL PUBLIC LICENSE (GPL),
 *            Version 2, the distribution of the Horde_ActiveSync module in or
 *            to the United States of America is excluded from the scope of this
 *            license.
 * @copyright 2010-2014 Horde LLC (http://www.horde.org)
 * @author    Michael J Rubinsky <mrubinsk@horde.org>
 * @package   ActiveSync
 */
/**
 * Mock connector for testing using the Horde_ActiveSync_Driver_Mock driver.
 *
 * @license   http://www.horde.org/licenses/gpl GPLv2
 *            NOTE: According to sec. 8 of the GENERAL PUBLIC LICENSE (GPL),
 *            Version 2, the distribution of the Horde_ActiveSync module in or
 *            to the United States of America is excluded from the scope of this
 *            license.
 * @copyright 2010-2014 Horde LLC (http://www.horde.org)
 * @author    Michael J Rubinsky <mrubinsk@horde.org>
 * @package   ActiveSync
 */
class Horde_ActiveSync_Driver_MockConnector
{

    /**
     * By default, support the main groupware apps, minus mail.
     * Mock this method to override.
     */
    public function listApis()
    {
        return array('calendar', 'contacts', 'tasks', 'notes');
    }

    /**
     * By default, return 2 UIDs as shown below. Mock this method to override.
     */
    public function listUids()
    {
        return array('UID_001', 'UID_002');
    }

    /**
     * By default, return no changes. Mock this method to override.
     */
    public function getChanges($folderid, $from_ts, $to_ts)
    {
        return array(
            'add' => array(),
            'modify' => array(),
            'delete' => array());
    }

    /**
     * Always returns a MODSEQ of 2. Mock to override.
     */
    public function getActionTimestamp($id, $action)
    {
        return 2;
    }

    /**
     * MUST mock this method if needed so we can return the expected object.
     *
     * @return Horde_ActiveSync_Message_Base
     */
    public function export($id, $options)
    {

    }




}