Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a0b9aedb
Commit
a0b9aedb
authored
Dec 06, 2013
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc comments at "\yii\mongo\Connection" fixed.
parent
7c56e6e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Connection.php
extensions/mongo/Connection.php
+4
-2
No files found.
extensions/mongo/Connection.php
View file @
a0b9aedb
...
...
@@ -84,13 +84,15 @@ class Connection extends Component
/**
* @var array connection options.
* for example:
*
* ~~~
* [
* 'persist' => true, // use persistent connection
* 'socketTimeoutMS' => 1000, // how long a send or receive on a socket can take before timing out
* 'journal' => true // block write operations until the journal be flushed the to disk
* ]
* ~~~
*
* @see http://www.php.net/manual/en/mongoclient.construct.php
*/
public
$options
=
[];
/**
...
...
@@ -111,7 +113,7 @@ class Connection extends Component
/**
* Returns the Mongo collection with the given name.
* @param string|null $name collection name, if null default one will be used.
* @param boolean $refresh whether to re
load the table schema
even if it is found in the cache.
* @param boolean $refresh whether to re
establish the database connection
even if it is found in the cache.
* @return Database database instance.
*/
public
function
getDatabase
(
$name
=
null
,
$refresh
=
false
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment