mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
[doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net * Replace http://www.php.net with https://www.php.net
This commit is contained in:
@ -15,11 +15,11 @@ use yii\base\NotSupportedException;
|
||||
use yii\caching\CacheInterface;
|
||||
|
||||
/**
|
||||
* Connection represents a connection to a database via [PDO](https://secure.php.net/manual/en/book.pdo.php).
|
||||
* Connection represents a connection to a database via [PDO](https://www.php.net/manual/en/book.pdo.php).
|
||||
*
|
||||
* Connection works together with [[Command]], [[DataReader]] and [[Transaction]]
|
||||
* to provide data access to various DBMS in a common set of APIs. They are a thin wrapper
|
||||
* of the [PDO PHP extension](https://secure.php.net/manual/en/book.pdo.php).
|
||||
* of the [PDO PHP extension](https://www.php.net/manual/en/book.pdo.php).
|
||||
*
|
||||
* Connection supports database replication and read-write splitting. In particular, a Connection component
|
||||
* can be configured with multiple [[masters]] and [[slaves]]. It will do load balancing and failover by choosing
|
||||
@ -154,10 +154,10 @@ class Connection extends Component
|
||||
|
||||
/**
|
||||
* @var string the Data Source Name, or DSN, contains the information required to connect to the database.
|
||||
* Please refer to the [PHP manual](https://secure.php.net/manual/en/pdo.construct.php) on
|
||||
* Please refer to the [PHP manual](https://www.php.net/manual/en/pdo.construct.php) on
|
||||
* the format of the DSN string.
|
||||
*
|
||||
* For [SQLite](https://secure.php.net/manual/en/ref.pdo-sqlite.connection.php) you may use a [path alias](guide:concept-aliases)
|
||||
* For [SQLite](https://www.php.net/manual/en/ref.pdo-sqlite.connection.php) you may use a [path alias](guide:concept-aliases)
|
||||
* for specifying the database path, e.g. `sqlite:@app/data/db.sql`.
|
||||
*
|
||||
* @see charset
|
||||
@ -174,7 +174,7 @@ class Connection extends Component
|
||||
/**
|
||||
* @var array PDO attributes (name => value) that should be set when calling [[open()]]
|
||||
* to establish a DB connection. Please refer to the
|
||||
* [PHP manual](https://secure.php.net/manual/en/pdo.setattribute.php) for
|
||||
* [PHP manual](https://www.php.net/manual/en/pdo.setattribute.php) for
|
||||
* details about available attributes.
|
||||
*/
|
||||
public $attributes;
|
||||
@ -923,7 +923,7 @@ class Connection extends Component
|
||||
* Returns the ID of the last inserted row or sequence value.
|
||||
* @param string $sequenceName name of the sequence object (required by some DBMS)
|
||||
* @return string the row ID of the last row inserted, or the last value retrieved from the sequence object
|
||||
* @see https://secure.php.net/manual/en/pdo.lastinsertid.php
|
||||
* @see https://www.php.net/manual/en/pdo.lastinsertid.php
|
||||
*/
|
||||
public function getLastInsertID($sequenceName = '')
|
||||
{
|
||||
@ -935,7 +935,7 @@ class Connection extends Component
|
||||
* Note that if the parameter is not a string, it will be returned without change.
|
||||
* @param string $value string to be quoted
|
||||
* @return string the properly quoted string
|
||||
* @see https://secure.php.net/manual/en/pdo.quote.php
|
||||
* @see https://www.php.net/manual/en/pdo.quote.php
|
||||
*/
|
||||
public function quoteValue($value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user