mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix CS
This commit is contained in:
@@ -17,174 +17,183 @@
|
||||
*/
|
||||
abstract class searchEngine_adapter_abstract
|
||||
{
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $current_page;
|
||||
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $current_page;
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $total_results;
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $perPage;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $query;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $error = '';
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $warning = '';
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $total_available;
|
||||
/**
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
protected $total_time;
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $offset_start;
|
||||
/**
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $use_stemming = true;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $locale;
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $current_index = '';
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $total_results;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_available_results()
|
||||
{
|
||||
return $this->total_available;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $perPage;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function get_time()
|
||||
{
|
||||
return $this->total_time;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $query;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_error()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $error = '';
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_warning()
|
||||
{
|
||||
return $this->warning;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $warning = '';
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_propositions()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $total_available;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return searchEngine_adapter_abstract
|
||||
*/
|
||||
public function reset_cache()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var float
|
||||
*/
|
||||
protected $total_time;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_per_page()
|
||||
{
|
||||
return $this->perPage;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $offset_start;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_total_results()
|
||||
{
|
||||
return $this->total_results;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $use_stemming = true;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_total_pages()
|
||||
{
|
||||
return (int) ceil($this->get_available_results() / $this->get_per_page());
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $locale;
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_current_page()
|
||||
{
|
||||
return $this->current_page;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $current_index = '';
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_offset_start()
|
||||
{
|
||||
return $this->offset_start;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_available_results()
|
||||
{
|
||||
return $this->total_available;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_current_indexes()
|
||||
{
|
||||
return $this->current_index;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function get_time()
|
||||
{
|
||||
return $this->total_time;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_error()
|
||||
{
|
||||
return $this->error;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_warning()
|
||||
{
|
||||
return $this->warning;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_propositions()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return searchEngine_adapter_abstract
|
||||
*/
|
||||
public function reset_cache()
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_per_page()
|
||||
{
|
||||
return $this->perPage;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_total_results()
|
||||
{
|
||||
return $this->total_results;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_total_pages()
|
||||
{
|
||||
return (int) ceil($this->get_available_results() / $this->get_per_page());
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_current_page()
|
||||
{
|
||||
return $this->current_page;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function get_offset_start()
|
||||
{
|
||||
return $this->offset_start;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_current_indexes()
|
||||
{
|
||||
return $this->current_index;
|
||||
}
|
||||
}
|
||||
|
@@ -17,41 +17,42 @@
|
||||
*/
|
||||
interface searchEngine_adapter_interface
|
||||
{
|
||||
public function __construct();
|
||||
|
||||
public function set_options(searchEngine_options $options);
|
||||
public function __construct();
|
||||
|
||||
public function reset_cache();
|
||||
public function set_options(searchEngine_options $options);
|
||||
|
||||
public function get_time();
|
||||
public function reset_cache();
|
||||
|
||||
public function get_total_pages();
|
||||
public function get_time();
|
||||
|
||||
public function get_offset_start();
|
||||
public function get_total_pages();
|
||||
|
||||
public function get_current_page();
|
||||
public function get_offset_start();
|
||||
|
||||
public function get_per_page();
|
||||
public function get_current_page();
|
||||
|
||||
public function get_total_results();
|
||||
public function get_per_page();
|
||||
|
||||
public function get_available_results();
|
||||
public function get_total_results();
|
||||
|
||||
public function get_propositions();
|
||||
public function get_available_results();
|
||||
|
||||
public function get_parsed_query();
|
||||
public function get_propositions();
|
||||
|
||||
public function get_suggestions(Session_Handler $session);
|
||||
public function get_parsed_query();
|
||||
|
||||
public function get_error();
|
||||
public function get_suggestions(Session_Handler $session);
|
||||
|
||||
public function get_warning();
|
||||
public function get_error();
|
||||
|
||||
public function get_current_indexes();
|
||||
public function get_warning();
|
||||
|
||||
public function get_status();
|
||||
public function get_current_indexes();
|
||||
|
||||
public function results($query, $page, $perPage);
|
||||
public function get_status();
|
||||
|
||||
public function build_excerpt($query, array $fields, record_adapter $record);
|
||||
public function results($query, $page, $perPage);
|
||||
|
||||
public function build_excerpt($query, array $fields, record_adapter $record);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user