/usr/share/php/Horde/Db/Adapter/Base/Index.php is in php-horde-db 2.3.1-1ubuntu2.
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 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | <?php
/**
* Copyright 2007 Maintainable Software, LLC
* Copyright 2008-2016 Horde LLC (http://www.horde.org/)
*
* @author Mike Naberezny <mike@maintainable.com>
* @author Derek DeVries <derek@maintainable.com>
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd
* @category Horde
* @package Db
* @subpackage Adapter
*/
/**
* @author Mike Naberezny <mike@maintainable.com>
* @author Derek DeVries <derek@maintainable.com>
* @author Chuck Hagenbuch <chuck@horde.org>
* @license http://www.horde.org/licenses/bsd
* @category Horde
* @package Db
* @subpackage Adapter
*/
class Horde_Db_Adapter_Base_Index
{
/**
* The table the index is on.
*
* @var string
*/
public $table;
/**
* The index's name.
*
* @var string
*/
public $name;
/**
*
*/
public $unique;
/**
* Is this a primary key?
*
* @var boolean
*/
public $primary;
/**
* The columns this index covers.
*
* @var array
*/
public $columns;
/*##########################################################################
# Construct/Destruct
##########################################################################*/
/**
* Constructor.
*
* @param string $table The table the index is on.
* @param string $name The index's name.
* @param boolean $primary Is this a primary key?
* @param boolean $unique Is this a unique index?
* @param array $columns The columns this index covers.
*/
public function __construct($table, $name, $primary, $unique, $columns)
{
$this->table = $table;
$this->name = $name;
$this->primary = $primary;
$this->unique = $unique;
$this->columns = $columns;
}
/*##########################################################################
# Accessor
##########################################################################*/
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/*##########################################################################
# Casting
##########################################################################*/
/**
* Comma-separated list of the columns in the primary key
*
* @return string
*/
public function __toString()
{
return implode(',', $this->columns);
}
}
|