.

SphinxIndexRotateCommand Class Reference
[Sphinx]

Rotates (reindex) given index. More...

Inheritance diagram for SphinxIndexRotateCommand:
CommandBase ICommand IAction ISerializable

List of all members.

Public Member Functions

  execute ()
  Executes commands.

Detailed Description

Rotates (reindex) given index.

Author:
Gerd Riesselmann

Definition at line 8 of file index.rotate.cmd.php.


Member Function Documentation

SphinxIndexRotateCommand::execute (  ) 

Executes commands.

Returns:
Status

Reimplemented from CommandBase.

Definition at line 14 of file index.rotate.cmd.php.

00014                                   {
00015                 /* @var $index DataObjectSphinx */
00016                 $index = $this->get_instance();
00017                 $index_name = $index->get_table_driver()->get_db_name() . $index->get_table_name();
00018                 $call = APP_SPHINX_INDEXER_INVOKE . ' --quiet --rotate ' . $index_name;
00019                 Load::commands('generics/execute.shell');
00020                 $cmd = new ExecuteShellCommand($call);
00021                 return $cmd->execute();
00022         }       

The documentation for this class was generated from the following file: