1 | <?php |
||
20 | class MongoGridFSCursor extends MongoCursor implements Countable |
||
21 | { |
||
22 | /** |
||
23 | * @static |
||
24 | * @var $slaveOkay |
||
25 | */ |
||
26 | public static $slaveOkay; |
||
27 | |||
28 | /** |
||
29 | * @link http://php.net/manual/en/class.mongogridfscursor.php#mongogridfscursor.props.gridfs |
||
30 | * @var $gridfs |
||
31 | */ |
||
32 | protected $gridfs; |
||
33 | |||
34 | /** |
||
35 | * Create a new cursor |
||
36 | * |
||
37 | * @link http://php.net/manual/en/mongogridfscursor.construct.php |
||
38 | * @param MongoGridFS $gridfs Related GridFS collection |
||
39 | * @param MongoClient $connection Database connection |
||
40 | * @param string $ns Full name of database and collection |
||
41 | * @param array $query Database query |
||
42 | * @param array $fields Fields to return |
||
43 | */ |
||
44 | public function __construct(MongoGridFS $gridfs, MongoClient $connection, $ns, array $query = array(), array $fields = array()) |
||
49 | |||
50 | /** |
||
51 | * Returns the current file |
||
52 | * |
||
53 | * @link http://php.net/manual/en/mongogridfscursor.current.php |
||
54 | * @return MongoGridFSFile The current file |
||
55 | */ |
||
56 | public function current() |
||
61 | |||
62 | /** |
||
63 | * Returns the current result's filename |
||
64 | * |
||
65 | * @link http://php.net/manual/en/mongogridfscursor.key.php |
||
66 | * @return string The current results filename |
||
67 | */ |
||
68 | public function key() |
||
73 | } |
||
74 |