This file is indexed.

/usr/share/php/irods/prods/src/packet/RP_InxValPair.class.php is in php-irods-prods 3.3.0~beta1-2ubuntu1.

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
<?php

require_once(dirname(__FILE__) . "/../autoload.inc.php");
require_once(dirname(__FILE__) . "/../RodsGenQueryNum.inc.php");

class RP_InxValPair extends RODSPacket
{
    public function __construct($isLen = 0, array $inx = array(), array $svalue = array())
    {
        $packlets = array("isLen" => $isLen, 'inx' => $inx, 'svalue' => $svalue);
        parent::__construct("InxValPair_PI", $packlets);
    }

    public function fromAssocArray($array)
    {
        if (!empty($array)) {
            $this->packlets["isLen"] = count($array);
            $this->packlets["inx"] = array_keys($array);
            $this->packlets["svalue"] = array_values($array);
        } else {
            $this->packlets["isLen"] = 0;
            $this->packlets["inx"] = array();
            $this->packlets["svalue"] = array();
        }
    }

    public function fromRODSQueryConditionArray($array)
    {
        $this->packlets["isLen"] = 0;
        $this->packlets["inx"] = array();
        $this->packlets["svalue"] = array();

        if (!isset($array)) return;

        $this->packlets["isLen"] = count($array);
        foreach ($array as $cond) {
            $this->packlets["inx"][] = $cond->name;
            $this->packlets["svalue"][] = "$cond->op '$cond->value'";
            //echo "<pre> $cond->op '$cond->value' </pre>";
        }
    }
}

?>