li3

NewsDocumentationVersionsPresentationsCommunityDevelopment
  • Documentation
  • Framework API (2.0.x)
  • lithium
  • data
  • source
  • MongoDb
  • disconnect()

Contents

  • ../

lithium\data\source\MongoDb::disconnect()

Implements lithium\data\Source::disconnect()
public method

Disconnect from the Mongo server.

Returns

boolean

Returns true.

Source

	public function disconnect() {
		unset($this->manager);
		$this->_isConnected = false;
		return true;
	}
GitHub / Twitter / Reddit / Stack Overflow
Testimonial Image

I think it's time you started
writing better code.

Pretty much everything is (c) 2009-2025 and beyond, the Union of RAD.