mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +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 $min_id Lower bound
|
||||||
* @param integer $max_id Upper 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}
|
* {@inheritdoc}
|
||||||
@@ -161,7 +161,7 @@ abstract class base implements reparser_interface
|
|||||||
*/
|
*/
|
||||||
public function reparse_range($min_id, $max_id)
|
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);
|
$this->reparse_record($record);
|
||||||
}
|
}
|
||||||
|
@@ -41,7 +41,7 @@ class contact_admin_info extends \phpbb\textreparser\base
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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(
|
$values = $this->config_text->get_array(array(
|
||||||
'contact_admin_info',
|
'contact_admin_info',
|
||||||
|
@@ -46,7 +46,7 @@ class poll_option extends \phpbb\textreparser\base
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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
|
$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
|
FROM ' . POLL_OPTIONS_TABLE . ' o, ' . TOPICS_TABLE . ' t, ' . POSTS_TABLE . ' p
|
||||||
|
@@ -62,9 +62,10 @@ abstract class row_based_plugin extends base
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@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);
|
$records = $this->db->sql_fetchrowset($result);
|
||||||
$this->db->sql_freeresult($result);
|
$this->db->sql_freeresult($result);
|
||||||
|
|
||||||
@@ -78,7 +79,7 @@ abstract class row_based_plugin extends base
|
|||||||
* @param integer $max_id Upper bound
|
* @param integer $max_id Upper bound
|
||||||
* @return string SQL query
|
* @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();
|
$columns = $this->get_columns();
|
||||||
$fields = array();
|
$fields = array();
|
||||||
|
Reference in New Issue
Block a user