public function find($collectionName, array $criteria = [], array $fields = []) {
		$collection = $this->getCollection($collectionName);
		
		if ($this->_profilerEnabled) {
			$message = 'db.' . $collectionName . '.find(';

			if (empty($criteria)) {
				$message .= ');';
			} else {
				$message .= json_encode($criteria) . ');';
			}

			$event = $this->getProfiler()->startRead($message);
		}

		$cursor = $collection->find($criteria, $fields);

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		return $cursor;
	}
public function find($collectionName, array $criteria = [], array $fields = []) {
		$collection = $this->getCollection($collectionName);
		
		if ($this->_profilerEnabled) {
			$message = 'db.' . $collectionName . '.find(';

			if (empty($criteria)) {
				$message .= ');';
			} else {
				$message .= json_encode($criteria) . ');';
			}

			$event = $this->getProfiler()->startRead($message);
		}

		$cursor = $collection->find($criteria, $fields);

		if ($this->_profilerEnabled) {
			$event->stopSuccess();
		}

		return $cursor;
	}
public function find ( $ collectionName , array $ criteria = [ ] , array $ fields = [ ] ) { $ collection = $ this -> getCollection ( $ collectionName ) ; if ( $ this -> _profilerEnabled ) { $ message = 'db.' . $ collectionName . '.find(' ; if ( empty ( $ criteria ) ) { $ message .= ');' ; } else { $ message .= json_encode ( $ criteria ) . ');' ; } $ event = $ this -> getProfiler ( ) -> startRead ( $ message ) ; } $ cursor = $ collection -> find ( $ criteria , $ fields ) ; if ( $ this -> _profilerEnabled ) { $ event -> stopSuccess ( ) ; } return $ cursor ; }
Find the data from the collection

@param  string $collectionName
@param  array  $criteria
@param  array  $fields
@return MongoCursor
Find the data from the collection