sphinx\ActiveQuery $sql

$sql public property The SQL statement to be executed for retrieving AR records. This is set by yii\sphinx\ActiveRecord::findBySql(). public string $sql = null

sphinx\ActiveFixture resetIndex()

resetIndex() protected method Truncates the specified index removing all existing data from it. This method is called before populating fixture data into the index associated with this fixture. protected void resetIndex ( )

sphinx\ActiveFixture load()

load() public method Loads the fixture. The default implementation will first clean up the table by calling resetIndex(). It will then populate the index with the data returned by getData(). If you override this method, you should consider calling the parent implementation so that the data returned by getData() can be populated into the index. public void load ( )

sphinx\ActiveFixture init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

sphinx\ActiveFixture getIndexSchema()

getIndexSchema() public method public yii\sphinx\IndexSchema getIndexSchema ( )return yii\sphinx\IndexSchema The schema information of the database table associated with this fixture. throws yii\base\InvalidConfigException if the index does not exist or not a runtime type

sphinx\ActiveFixture getData()

getData() protected method Returns the fixture data. The default implementation will try to return the fixture data by including the external file specified by $dataFile. The file should return an array of data rows (column name => column value), each corresponding to a row in the index. If the data file does not exist, an empty array will be returned. protected array getData ( )return array The data rows to be inserted into the index.

sphinx\ActiveFixture $indexSchema

$indexSchema public read-only property The schema information of the database table associated with this fixture. public yii\sphinx\IndexSchema getIndexSchema ( )

sphinx\ActiveFixture $indexName

$indexName public property The name of the Sphinx index that this fixture is about. If this property is not set, the index name will be determined via $modelClass. See also $modelClass. public string $indexName = null

sphinx\ActiveFixture $db

$db public property The Sphinx connection object or the application component ID of the Sphinx connection or a configuration array for creating the object. public yii\sphinx\Connection|array|string $db = 'sphinx'

sphinx\ActiveFixture $dataFile

$dataFile public property The file path or path alias of the data file that contains the fixture data to be returned by getData(). If this is not set, it will default to FixturePath/data/IndexName.php, where FixturePath stands for the directory containing this fixture class, and IndexName stands for the name of the index associated with this fixture. You can set this property to be false to prevent loading any data. public string|boolean $dataFile = null