00001 <?php
00002
00003
00004
00005
00006
00007
00008 class SphinxIndexRotateCommand extends CommandBase {
00009
00010
00011
00012
00013
00014 public function execute() {
00015
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 }
00023 }