Index.php
973 Bytes
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
<?php
namespace Phalcon\Db {
/**
* Phalcon\Db\Index
*
* Allows to define indexes to be used on tables. Indexes are a common way
* to enhance database performance. An index allows the database server to find
* and retrieve specific rows much faster than it could do without an index
*/
class Index implements \Phalcon\Db\IndexInterface {
protected $_indexName;
protected $_columns;
/**
* \Phalcon\Db\Index constructor
*
* @param string $indexName
* @param array $columns
*/
public function __construct($indexName, $columns){ }
/**
* Gets the index name
*
* @return string
*/
public function getName(){ }
/**
* Gets the columns that comprends the index
*
* @return array
*/
public function getColumns(){ }
/**
* Restore a \Phalcon\Db\Index object from export
*
* @param array $data
* @return \Phalcon\Db\IndexInterface
*/
public static function __set_state($data){ }
}
}