sphinx\Schema getPdoType()

getPdoType() public method Determines the PDO type for the given PHP data value. See also http://www.php.net/manual/en/pdo.constants.php. public integer getPdoType ( $data )$data mixed The data whose PDO type is to be determined return integer The PDO type

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 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 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 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 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 findIndexes()

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

sphinx\Schema findColumns()

findColumns() protected method Collects the metadata of index columns. protected boolean findColumns ( $index )$index yii\sphinx\IndexSchema The index metadata return boolean Whether the index exists in the database throws Exception if DB query fails