1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/10202] Rename method names _all() to _array().

PHPBB3-10202
This commit is contained in:
Andreas Fischer
2013-03-05 23:15:46 +01:00
parent 3a4b34ca32
commit 32ff2348f1
2 changed files with 17 additions and 17 deletions

View File

@@ -56,7 +56,7 @@ class phpbb_config_db_text
*/
public function set($key, $value)
{
$this->set_all(array($key => $value));
$this->set_array(array($key => $value));
}
/**
@@ -69,7 +69,7 @@ class phpbb_config_db_text
*/
public function get($key)
{
$map = $this->get_all(array($key));
$map = $this->get_array(array($key));
return isset($map[$key]) ? $map[$key] : null;
}
@@ -83,7 +83,7 @@ class phpbb_config_db_text
*/
public function delete($key)
{
$this->delete_all(array($key));
$this->delete_array(array($key));
}
/**
@@ -95,7 +95,7 @@ class phpbb_config_db_text
*
* @return null
*/
public function set_all(array $map)
public function set_array(array $map)
{
$this->db->sql_transaction('begin');
@@ -129,7 +129,7 @@ class phpbb_config_db_text
*
* @return array Map from configuration names to values
*/
public function get_all(array $keys)
public function get_array(array $keys)
{
$sql = 'SELECT *
FROM ' . $this->table . '
@@ -153,7 +153,7 @@ class phpbb_config_db_text
*
* @return null
*/
public function delete_all(array $keys)
public function delete_array(array $keys)
{
$sql = 'DELETE
FROM ' . $this->table . '