forked from yiisoft/yii2-sphinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
'Runtime index' fixed to 'Real-tim index' to be consistent with Sphin…
…x official docs
- Loading branch information
1 parent
9328e5f
commit b07b7bb
Showing
17 changed files
with
81 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ | |
* | ||
* @property string $lastInsertID The row ID of the last row inserted, or the last value retrieved from the | ||
* sequence object. This property is read-only. | ||
* @property Schema $schema The schema information for the Sphinx connection. This property is read-only. | ||
* | ||
* @author Paul Klimov <[email protected]> | ||
* @since 2.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
* IndexSchema represents the metadata of a Sphinx index. | ||
* | ||
* @property array $columnNames List of column names. This property is read-only. | ||
* @property bool $isRuntime whether this index is a real-time index. This property is deprecated, use [[isRt]] instead. | ||
* | ||
* @author Paul Klimov <[email protected]> | ||
* @since 2.0 | ||
|
@@ -28,9 +29,9 @@ class IndexSchema extends Object | |
*/ | ||
public $type; | ||
/** | ||
* @var bool whether this index is a runtime index. | ||
* @var bool whether this index is a real-time index. | ||
*/ | ||
public $isRuntime; | ||
public $isRt; | ||
/** | ||
* @var string primary key of this index. | ||
*/ | ||
|
@@ -60,4 +61,26 @@ public function getColumnNames() | |
{ | ||
return array_keys($this->columns); | ||
} | ||
|
||
/** | ||
* @deprecated | ||
* This method is deprecated, use [[isRt]] instead. | ||
* @return bool whether this index is a real-time index. | ||
* @since 2.0.9 | ||
*/ | ||
public function isIsRuntime() | ||
{ | ||
return $this->isRt; | ||
} | ||
|
||
/** | ||
* @deprecated | ||
* This method is deprecated, use [[isRt]] instead. | ||
* @param bool $isRuntime whether this index is a real-time index. | ||
* @since 2.0.9 | ||
*/ | ||
public function setIsRuntime($isRuntime) | ||
{ | ||
$this->isRt = $isRuntime; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace yiiunit\extensions\sphinx\data\fixture; | ||
|
||
use yii\sphinx\ActiveFixture; | ||
use yiiunit\extensions\sphinx\data\ar\RtIndex; | ||
|
||
class RtIndexFixture extends ActiveFixture | ||
{ | ||
public $modelClass = 'yiiunit\extensions\sphinx\data\ar\RtIndex'; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public function init() | ||
{ | ||
$this->dataFile = __DIR__ . '/../fixtures/' . RtIndex::indexName() . '.php'; | ||
parent::init(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.