コード例 #1
0
 /**
  * Sets the default Cassandra connection to use.
  *
  * You will usually call it once during boostrapping so you wouldn't need
  * to set it again every time in constructor or the static methods.
  *
  * @param Cassandra $connection Connection to use by default
  */
 public static function setDefaultConnection(Cassandra $connection)
 {
     self::$_defaultConnection = $connection;
 }