sphinx\Schema getQueryBuilder()

getQueryBuilder() public method public yii\sphinx\QueryBuilder getQueryBuilder ( )return yii\sphinx\QueryBuilder The query builder for this connection.

sphinx\Schema getIndexSchema()

getIndexSchema() public method Obtains the metadata for the named index. public yii\sphinx\IndexSchema|null getIndexSchema ( $name, $refresh = false )$name string Index name. The index name may contain schema name if any. Do not quote the index name. $refresh boolean Whether to reload the index schema even if it is found in the cache. return yii\sphinx\IndexSchema|null Index metadata. null - if the named index does not exist.

sphinx\Schema getIndexSchemas()

getIndexSchemas() public method Returns the metadata for all indexes in the database. public yii\sphinx\IndexSchema[] getIndexSchemas ( $refresh = false )$refresh boolean Whether to fetch the latest available index schemas. If this is false, cached data may be returned if available. return yii\sphinx\IndexSchema[] The metadata for all indexes in the Sphinx. Each array element is an instance of yii\sphinx\IndexSchema or its child class.

sphinx\Schema getIndexNames()

getIndexNames() public method Returns all index names in the Sphinx. public string[] getIndexNames ( $refresh = false )$refresh boolean Whether to fetch the latest available index names. If this is false, index names fetched previously (if available) will be returned. return string[] All index names in the Sphinx.

sphinx\Schema getIndexTypes()

getIndexTypes() public method Returns all index types in the Sphinx. public array getIndexTypes ( $refresh = false )$refresh boolean Whether to fetch the latest available index types. If this is false, index types fetched previously (if available) will be returned. return array All index types in the Sphinx in format: index name => index type.

sphinx\Schema findIndexes()

findIndexes() protected method Returns all index names in the Sphinx. protected array findIndexes ( )return array All index names in the Sphinx.

sphinx\Schema getColumnPhpType()

getColumnPhpType() protected method Extracts the PHP type from abstract DB type. protected string getColumnPhpType ( $column )$column yii\sphinx\ColumnSchema The column schema information return string PHP type name

sphinx\Schema getCacheTag()

getCacheTag() protected method Returns the cache tag name. This allows refresh() to invalidate all cached index schemas. protected string getCacheTag ( )return string The cache tag name

sphinx\Schema getCacheKey()

getCacheKey() protected method Returns the cache key for the specified index name. protected mixed getCacheKey ( $name )$name string The index name return mixed The cache key

sphinx\Schema applyDefaultColumns()

applyDefaultColumns() protected method (available since version 2.0.6) Sets up the default columns for given index. This method should be used in case there is no way to find actual columns, like in some distributed indexes. protected void applyDefaultColumns ( $index )$index yii\sphinx\IndexSchema The index metadata