Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
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
sinan
mongo-php-library
Commits
c0f2c162
Commit
c0f2c162
authored
Jun 16, 2015
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused Collection constants and methods
parent
9b4d0ef2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
27 deletions
+0
-27
Collection.php
src/Collection.php
+0
-27
No files found.
src/Collection.php
View file @
c0f2c162
...
@@ -43,9 +43,6 @@ class Collection
...
@@ -43,9 +43,6 @@ class Collection
//self::QUERY_FLAG_TAILABLE_CURSOR | self::QUERY_FLAG_AWAIT_DATA;
//self::QUERY_FLAG_TAILABLE_CURSOR | self::QUERY_FLAG_AWAIT_DATA;
const
CURSOR_TYPE_TAILABLE_AWAIT
=
0x22
;
const
CURSOR_TYPE_TAILABLE_AWAIT
=
0x22
;
const
FIND_ONE_AND_RETURN_BEFORE
=
0x01
;
const
FIND_ONE_AND_RETURN_AFTER
=
0x02
;
protected
$manager
;
protected
$manager
;
protected
$ns
;
protected
$ns
;
protected
$wc
;
protected
$wc
;
...
@@ -838,19 +835,6 @@ class Collection
...
@@ -838,19 +835,6 @@ class Collection
return
$this
->
manager
->
executeBulkWrite
(
$this
->
ns
,
$bulk
,
$this
->
wc
);
return
$this
->
manager
->
executeBulkWrite
(
$this
->
ns
,
$bulk
,
$this
->
wc
);
}
}
/**
* Internal helper for throwing an exception with error message
* @internal
*/
final
protected
function
_generateCommandException
(
$doc
)
{
if
(
$doc
[
"errmsg"
])
{
return
new
RuntimeException
(
$doc
[
"errmsg"
]);
}
var_dump
(
$doc
);
return
new
RuntimeException
(
"FIXME: Unknown error"
);
}
/**
/**
* Constructs the Query Wire Protocol field 'flags' based on $options
* Constructs the Query Wire Protocol field 'flags' based on $options
* provided to other helpers
* provided to other helpers
...
@@ -871,17 +855,6 @@ class Collection
...
@@ -871,17 +855,6 @@ class Collection
return
$flags
;
return
$flags
;
}
}
/**
* Internal helper for running a command
* @internal
*/
final
protected
function
_runCommand
(
$dbname
,
array
$cmd
,
ReadPreference
$rp
=
null
)
{
//var_dump(\BSON\toJSON(\BSON\fromArray($cmd)));
$command
=
new
Command
(
$cmd
);
return
$this
->
manager
->
executeCommand
(
$dbname
,
$command
,
$rp
);
}
/**
/**
* Internal helper for replacing/updating one/many documents
* Internal helper for replacing/updating one/many documents
* @internal
* @internal
...
...
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