mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 14:05:29 +02:00
WIP add namespaces to all classes
This commit is contained in:
parent
9aac0ff1aa
commit
abdfe1947f
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Core\ClassInfo;
|
use SilverStripe\Core\ClassInfo;
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
use SilverStripe\Core\ClassInfo;
|
use SilverStripe\Core\ClassInfo;
|
||||||
use SilverStripe\ORM\DataObject;
|
use SilverStripe\ORM\DataObject;
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
/**
|
/**
|
||||||
* Represents a search query
|
* Represents a search query
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
/**
|
/**
|
||||||
* This class is responsible for capturing changes to DataObjects and triggering index updates of the resulting dirty index
|
* This class is responsible for capturing changes to DataObjects and triggering index updates of the resulting dirty index
|
||||||
* items.
|
* items.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
use SilverStripe\Core\ClassInfo;
|
use SilverStripe\Core\ClassInfo;
|
||||||
/**
|
/**
|
||||||
* A Search Variant handles decorators and other situations where the items to reindex or search through are modified
|
* A Search Variant handles decorators and other situations where the items to reindex or search through are modified
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
|
|
||||||
class SearchVariantSiteTreeSubsitesPolyhome extends SearchVariant
|
class SearchVariantSiteTreeSubsitesPolyhome extends SearchVariant
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
class SearchVariantSubsites extends SearchVariant
|
class SearchVariantSubsites extends SearchVariant
|
||||||
{
|
{
|
||||||
public function appliesToEnvironment()
|
public function appliesToEnvironment()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search;
|
||||||
class SearchVariantVersioned extends SearchVariant
|
class SearchVariantVersioned extends SearchVariant
|
||||||
{
|
{
|
||||||
public function appliesToEnvironment()
|
public function appliesToEnvironment()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
/**
|
/**
|
||||||
* Provides batching of search updates
|
* Provides batching of search updates
|
||||||
*/
|
*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
if (!interface_exists('QueuedJob')) {
|
if (!interface_exists('QueuedJob')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
class SearchUpdateImmediateProcessor extends SearchUpdateProcessor
|
class SearchUpdateImmediateProcessor extends SearchUpdateProcessor
|
||||||
{
|
{
|
||||||
public function triggerProcessing()
|
public function triggerProcessing()
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
class SearchUpdateMessageQueueProcessor extends SearchUpdateProcessor
|
class SearchUpdateMessageQueueProcessor extends SearchUpdateProcessor
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
abstract class SearchUpdateProcessor
|
abstract class SearchUpdateProcessor
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Search\Processors;
|
||||||
if (!interface_exists('QueuedJob')) {
|
if (!interface_exists('QueuedJob')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
use Monolog\Formatter\LineFormatter;
|
use Monolog\Formatter\LineFormatter;
|
||||||
use Monolog\Handler\StreamHandler;
|
use Monolog\Handler\StreamHandler;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
class Solr3Service_Core extends SolrService_Core
|
class Solr3Service_Core extends SolrService_Core
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
class Solr4Service_Core extends SolrService_Core
|
class Solr4Service_Core extends SolrService_Core
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
/**
|
/**
|
||||||
* Class SolrConfigStore
|
* Class SolrConfigStore
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
Solr::include_client_api();
|
Solr::include_client_api();
|
||||||
|
|
||||||
use SilverStripe\Dev\BuildTask;
|
use SilverStripe\Dev\BuildTask;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr;
|
||||||
Solr::include_client_api();
|
Solr::include_client_api();
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
|
use \Apache_Solr_Service;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The API for accessing a specific core of a Solr server. Exactly the same as Apache_Solr_Service for now.
|
* The API for accessing a specific core of a Solr server. Exactly the same as Apache_Solr_Service for now.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
if (!class_exists('MessageQueue')) {
|
if (!class_exists('MessageQueue')) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Handlers;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
if (!interface_exists('QueuedJob')) {
|
if (!interface_exists('QueuedJob')) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
|
||||||
if (!interface_exists('QueuedJob')) {
|
if (!interface_exists('QueuedJob')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
|
||||||
if (!interface_exists('QueuedJob')) {
|
if (!interface_exists('QueuedJob')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Solr\Reindex\Jobs;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils;
|
||||||
|
use Iterator;
|
||||||
class CombinationsArrayIterator implements Iterator
|
class CombinationsArrayIterator implements Iterator
|
||||||
{
|
{
|
||||||
protected $arrays;
|
protected $arrays;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils;
|
||||||
|
use Iterator;
|
||||||
class MultipleArrayIterator implements Iterator
|
class MultipleArrayIterator implements Iterator
|
||||||
{
|
{
|
||||||
protected $arrays;
|
protected $arrays;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils;
|
||||||
class WebDAV
|
class WebDAV
|
||||||
{
|
{
|
||||||
public static function curl_init($url, $method)
|
public static function curl_init($url, $method)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils\Logging;
|
||||||
use Monolog\Formatter\FormatterInterface;
|
use Monolog\Formatter\FormatterInterface;
|
||||||
use Monolog\Formatter\LineFormatter;
|
use Monolog\Formatter\LineFormatter;
|
||||||
use Monolog\Handler\HandlerInterface;
|
use Monolog\Handler\HandlerInterface;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils\Logging;
|
||||||
use Monolog\Handler\AbstractProcessingHandler;
|
use Monolog\Handler\AbstractProcessingHandler;
|
||||||
use Monolog\Logger;
|
use Monolog\Logger;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
namespace SilverStripe\FullTextSearch\Utils\Logging;
|
||||||
use Psr\Log;
|
use Psr\Log;
|
||||||
|
|
||||||
interface SearchLogFactory
|
interface SearchLogFactory
|
||||||
|
Loading…
Reference in New Issue
Block a user