src/SearchBundle/objects/db/TShopSearchQuery.class.php
public function StopIndex()
    {
        $sIndexTableName = $this->GetIndexRawTableName();
        if (TCMSRecord::TableExists($sIndexTableName)) {
            $query = 'DROP TABLE `'.MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName).'`';
            MySqlLegacySupport::getInstance()->query($query);
        }

        $aData = $this->sqlData;
        $aData['index_running'] = '0';
        $aData['index_completed'] = date('Y-m-d H:i:s');
        $this->LoadFromRow($aData);
        $this->AllowEditByAll(true);
        $this->Save();
    }
public function StopIndex()
    {
        $sIndexTableName = $this->GetIndexRawTableName();
        if (TCMSRecord::TableExists($sIndexTableName)) {
            $query = 'DROP TABLE `'.MySqlLegacySupport::getInstance()->real_escape_string($sIndexTableName).'`';
            MySqlLegacySupport::getInstance()->query($query);
        }

        $aData = $this->sqlData;
        $aData['index_running'] = '0';
        $aData['index_completed'] = date('Y-m-d H:i:s');
        $this->LoadFromRow($aData);
        $this->AllowEditByAll(true);
        $this->Save();
    }
public function StopIndex ( ) { $ sIndexTableName = $ this -> GetIndexRawTableName ( ) ; if ( TCMSRecord :: TableExists ( $ sIndexTableName ) ) { $ query = 'DROP TABLE `' . MySqlLegacySupport :: getInstance ( ) -> real_escape_string ( $ sIndexTableName ) . '`' ; MySqlLegacySupport :: getInstance ( ) -> query ( $ query ) ; } $ aData = $ this -> sqlData ; $ aData [ 'index_running' ] = '0' ; $ aData [ 'index_completed' ] = date ( 'Y-m-d H:i:s' ) ; $ this -> LoadFromRow ( $ aData ) ; $ this -> AllowEditByAll ( true ) ; $ this -> Save ( ) ; }
stop the current index operation.
stop the current index operation .