mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/13803] Renamed methods
PHPBB3-13803
This commit is contained in:
@@ -25,9 +25,9 @@ abstract class base implements reparser_interface
|
||||
*
|
||||
* @param integer $min_id Lower bound
|
||||
* @param integer $max_id Upper bound
|
||||
* @return array Array of record
|
||||
* @return array Array of records
|
||||
*/
|
||||
abstract protected function get_records($min_id, $max_id);
|
||||
abstract protected function get_records_by_range($min_id, $max_id);
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
@@ -161,7 +161,7 @@ abstract class base implements reparser_interface
|
||||
*/
|
||||
public function reparse_range($min_id, $max_id)
|
||||
{
|
||||
foreach ($this->get_records($min_id, $max_id) as $record)
|
||||
foreach ($this->get_records_by_range($min_id, $max_id) as $record)
|
||||
{
|
||||
$this->reparse_record($record);
|
||||
}
|
||||
|
@@ -41,7 +41,7 @@ class contact_admin_info extends \phpbb\textreparser\base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_records($min_id, $max_id)
|
||||
protected function get_records_by_range($min_id, $max_id)
|
||||
{
|
||||
$values = $this->config_text->get_array(array(
|
||||
'contact_admin_info',
|
||||
|
@@ -46,7 +46,7 @@ class poll_option extends \phpbb\textreparser\base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_records($min_id, $max_id)
|
||||
protected function get_records_by_range($min_id, $max_id)
|
||||
{
|
||||
$sql = 'SELECT o.topic_id, o.poll_option_id, o.poll_option_text AS text, p.bbcode_uid
|
||||
FROM ' . POLL_OPTIONS_TABLE . ' o, ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
|
||||
|
@@ -25,8 +25,8 @@ interface reparser_interface
|
||||
/**
|
||||
* Reparse all records in given range
|
||||
*
|
||||
* @param integer $min_id Lower bound
|
||||
* @param integer $max_id Upper bound
|
||||
* @param integer $min_id Lower bound
|
||||
* @param integer $max_id Upper bound
|
||||
*/
|
||||
public function reparse_range($min_id, $max_id);
|
||||
}
|
||||
|
@@ -62,9 +62,10 @@ abstract class row_based_plugin extends base
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function get_records($min_id, $max_id)
|
||||
protected function get_records_by_range($min_id, $max_id)
|
||||
{
|
||||
$result = $this->db->sql_query($this->get_records_query($min_id, $max_id));
|
||||
$sql = $this->get_records_by_range_query($min_id, $max_id);
|
||||
$result = $this->db->sql_query($sql);
|
||||
$records = $this->db->sql_fetchrowset($result);
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
@@ -78,7 +79,7 @@ abstract class row_based_plugin extends base
|
||||
* @param integer $max_id Upper bound
|
||||
* @return string SQL query
|
||||
*/
|
||||
protected function get_records_query($min_id, $max_id)
|
||||
protected function get_records_by_range_query($min_id, $max_id)
|
||||
{
|
||||
$columns = $this->get_columns();
|
||||
$fields = array();
|
||||
|
Reference in New Issue
Block a user