mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 09:04:38 +02:00
Issue #5465 Core language files converted. (excluding plugins)
This commit is contained in:
@@ -89,10 +89,10 @@ class e_db_pdo implements e_db
|
||||
$config = e107::getMySQLConfig();
|
||||
|
||||
|
||||
$this->mySQLserver = $config['mySQLserver'];
|
||||
$this->mySQLuser = $config['mySQLuser'];
|
||||
$this->mySQLpassword = $config['mySQLpassword'];
|
||||
$this->mySQLdefaultdb = $config['mySQLdefaultdb'];
|
||||
$this->mySQLserver = $config['mySQLserver'] ?? '';
|
||||
$this->mySQLuser = $config['mySQLuser'] ?? '';
|
||||
$this->mySQLpassword = $config['mySQLpassword'] ?? '';
|
||||
$this->mySQLdefaultdb = $config['mySQLdefaultdb'] ?? '';
|
||||
$this->mySQLport = varset($config['port'], 3306);
|
||||
$this->mySQLPrefix = varset($config['mySQLprefix'], 'e107_');
|
||||
|
||||
@@ -651,12 +651,12 @@ class e_db_pdo implements e_db
|
||||
*
|
||||
* @param string $table
|
||||
* @param string $fields
|
||||
* @param string|array $arg;
|
||||
* @param string|array|false $arg;
|
||||
*
|
||||
* @example e107::getDb()->select("comments", "*", "comment_item_id = '$id' AND comment_type = '1' ORDER BY comment_datestamp");
|
||||
* @example e107::getDb('sql2')->select("chatbox", "*", "ORDER BY cb_datestamp DESC LIMIT $from, ".$view, true);</code>
|
||||
* @example select('user', 'user_id, user_name', 'user_id=:id OR user_name=:name ORDER BY user_name', array('id' => 999, 'name'=>'e107')); // bind support.
|
||||
* @return integer Number of rows or false on error
|
||||
* @return integer|false Number of rows or false on error
|
||||
*/
|
||||
public function select($table, $fields = '*', $arg = '', $noWhere = false, $debug = false, $log_type = '', $log_remark = '')
|
||||
{
|
||||
@@ -1051,9 +1051,9 @@ class e_db_pdo implements e_db
|
||||
|
||||
|
||||
/**
|
||||
* @return int number of affected rows, or false on error
|
||||
* @return int|false number of affected rows, or false on error
|
||||
* @param string $tableName - Name of table to access, without any language or general DB prefix
|
||||
* @param array|string $arg (array preferred)
|
||||
* @param array|string|false $arg (array preferred)
|
||||
* @param bool $debug
|
||||
* @desc Update fields in ONE table of the database corresponding to your $arg variable<br />
|
||||
* <br />
|
||||
@@ -1208,7 +1208,7 @@ class e_db_pdo implements e_db
|
||||
* Return a value for use in PDO bindValue() - based on field-type.
|
||||
* @param $type
|
||||
* @param $fieldValue
|
||||
* @return int|string
|
||||
* @return int|string|null
|
||||
*/
|
||||
private function _getPDOValue($type, $fieldValue)
|
||||
{
|
||||
@@ -1387,7 +1387,7 @@ class e_db_pdo implements e_db
|
||||
* @param bool $debug
|
||||
* @param string $log_type
|
||||
* @param string $log_remark
|
||||
* @return int number of affected rows or false on error
|
||||
* @return int|false number of affected rows or false on error
|
||||
* @desc Count the number of rows in a select<br />
|
||||
* <br />
|
||||
* Example:<br />
|
||||
@@ -1462,7 +1462,7 @@ class e_db_pdo implements e_db
|
||||
|
||||
|
||||
/**
|
||||
* @return int number of affected rows, or false on error
|
||||
* @return int|false number of affected rows, or false on error
|
||||
* @param string $table
|
||||
* @param string $arg
|
||||
* @desc Delete rows from a table<br />
|
||||
@@ -2534,7 +2534,7 @@ class e_db_pdo implements e_db
|
||||
|
||||
|
||||
/**
|
||||
* @return string relating to error (empty string if no error)
|
||||
* @return string|null relating to error (empty string if no error)
|
||||
* @param string $from
|
||||
* @desc Calling method from within this class
|
||||
* @access private
|
||||
|
Reference in New Issue
Block a user