Completed
Push — master ( 52e9e1...4faf8b )
by Matt
9s
created

fulltext_support   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 5
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 5
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A is_index() 0 4 1
1
<?php
2
/**
3
 *
4
 * Precise Similar Topics
5
 *
6
 * @copyright (c) 2014 Matt Friedman
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace vse\similartopics\core;
12
13
/**
14
 * Class is now a wrapper for use by old migrations,
15
 * to avoid having to edit the old migrations too much.
16
 */
17
class fulltext_support extends \vse\similartopics\driver\mysqli
18
{
19
	/**
20
	 * Check if a column is a FULLTEXT index in topics table
21
	 * This has been deprecated in 1.5.0, replaced by is_fulltext()
22
	 *
23
	 * @param string $column Name of the column
24
	 * @return bool True if column is a FULLTEXT index, false otherwise
25
	 */
26
	public function is_index($column = 'topic_title')
27
	{
28
		return $this->is_fulltext($column, TOPICS_TABLE);
29
	}
30
}
31